CN112948904A - Furniture layout determining method and device, electronic equipment and storage medium - Google Patents

Furniture layout determining method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112948904A
CN112948904A CN201911262027.7A CN201911262027A CN112948904A CN 112948904 A CN112948904 A CN 112948904A CN 201911262027 A CN201911262027 A CN 201911262027A CN 112948904 A CN112948904 A CN 112948904A
Authority
CN
China
Prior art keywords
furniture
preset
combination
area
determining
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.)
Pending
Application number
CN201911262027.7A
Other languages
Chinese (zh)
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201911262027.7A priority Critical patent/CN112948904A/en
Publication of CN112948904A publication Critical patent/CN112948904A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Geometry (AREA)
  • Pure & Applied Mathematics (AREA)
  • Mathematical Optimization (AREA)
  • Mathematical Analysis (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Computational Mathematics (AREA)
  • Computer Graphics (AREA)
  • Software Systems (AREA)
  • Instructional Devices (AREA)

Abstract

The embodiment of the disclosure discloses a furniture layout determining method, a furniture layout determining device, electronic equipment and a storage medium, wherein the method comprises the following steps: determining a plurality of candidate positions of a preset furniture combination to be placed in a target room; when the preset furniture combination is placed at the candidate position, determining the intersection of a support area of the preset furniture combination close to a placed wall and an area where the preset furniture combination is located; wherein the support area is an area close to the wall in the target room, and the nearest projection points of the points in the support area are all located on the wall; and determining the target placing position of the preset furniture combination from the plurality of candidate positions according to the intersection. The technical scheme can select the optimal position which enables the preset furniture combination to be close to the wall to the maximum extent and does not shield facilities such as windows and doors except the wall from a plurality of candidate positions.

Description

Furniture layout determining method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a furniture layout determining method and apparatus, an electronic device, and a storage medium.
Background
The whole house soft package is characterized in that on the basis of the given empty house type and the furniture in the sample plate, the furniture is placed in the empty house type according to the spatial characteristics of the house type and the geometric dimension information of the furniture. All the newly placed furniture and the room form a whole-house soft-package scene together and can be displayed in a 3D form. The soft clothes in the market are mainly designed manually by designers by using a design tool, and the design of a set of soft clothes scene needs 1-2 days very often, so that the efficiency of soft clothes output is greatly limited. Therefore, how to automatically generate the soft layout is one of the main problems to be solved in the related field, such as VR roaming or scene furniture shopping guide.
Disclosure of Invention
The embodiment of the disclosure provides a furniture layout determining method and device, electronic equipment and a computer readable storage medium.
In a first aspect, an embodiment of the present disclosure provides a furniture layout determining method, including:
determining a plurality of candidate positions of a preset furniture combination to be placed in a target room;
when the preset furniture combination is placed at the candidate position, determining the intersection of a support area of the preset furniture combination close to the placed wall and an area where the preset furniture combination is located; the supporting area is an area close to a wall in the target room, and the nearest projection points of points in the supporting area are all located on the wall;
and determining the target placing position of the preset furniture combination from the plurality of candidate positions according to the intersection.
Further, determining a plurality of candidate positions of the preset furniture combination to be placed in the target room comprises:
and determining the area center point of the selectable placing area of the preset furniture combination as a candidate position.
Further, when the preset furniture combination is multiple, determining multiple candidate positions of the preset furniture combination to be placed in the target room, including:
determining a plurality of combinations formed by selectable positions of a plurality of preset furniture combinations in a target room;
removing a combination which enables at least two preset furniture combinations to be placed in an overlapping mode from the multiple combinations, and determining the remaining combinations as candidate position combinations; the candidate position combination comprises candidate positions of a plurality of preset furniture combinations.
Further, determining a plurality of combinations of selectable positions of the preset furniture combinations in the target room comprises:
and when at least two of the preset furniture combinations have relative position relation, determining a plurality of combinations according to the relative position relation and the selectable positions of the preset furniture combinations in the target room.
Further, still include:
moving a door and/or window of the target room into the room from an original position within a planar floor plan including the target room, such that the moved door and/or window extends a preset distance into the target room relative to the wall;
determining a nearest projection point of points within the target room;
an area formed by points where the closest projection points are located on the wall in the target room is determined as a support area of the corresponding wall.
Further, determining a target placing position of the preset furniture combination from the plurality of candidate positions according to the intersection comprises:
and determining the target placement position from the candidate positions according to the ratio of the first area of the intersection to the second area of the area where the preset furniture combination is located.
Further, still include:
acquiring furniture information to be placed in a target room and presetting a fixed matching mode;
and according to the preset fixed matching mode and the furniture information, performing grouping matching on the furniture to obtain the preset furniture combination.
In a second aspect, an embodiment of the present disclosure provides a furniture layout determining method, including:
determining a plurality of candidate positions of a preset furniture combination to be placed in a target room;
when the preset furniture combination is placed at the candidate position, determining the fitness between the preset furniture combination and the candidate position according to the support area of the preset furniture combination close to the placed wall; the fitness is positively correlated with the intersection between the area where the preset furniture combination is placed at the candidate position and the supporting area, the supporting area is an area close to a wall in the target room, and the nearest projection points of the points in the supporting area are all located on the wall;
and determining the target placing position of the preset furniture combination from the plurality of candidate positions according to the fitness.
Further, determining fitness between the preset furniture combination and the candidate position according to a support area of the preset furniture combination close to the placed wall includes:
determining the intersection of the support area and the area where the preset furniture combination is placed at the candidate position;
and determining the fitness according to the ratio of the first area of the intersection to the second area of the area where the preset furniture combination is located.
Further, determining a target placing position of the preset furniture combination from a plurality of candidate positions according to the fitness comprises:
and determining the candidate position corresponding to the maximum fitness as the target placing position.
Further, determining a plurality of candidate positions of the preset furniture combination to be placed in the target room comprises:
and determining the area center point of the selectable placing area of the preset furniture combination as a candidate position.
Further, when the preset furniture combination is multiple, determining multiple candidate positions of the preset furniture combination to be placed in the target room, including:
determining a plurality of combinations formed by selectable positions of a plurality of preset furniture combinations in a target room;
removing a combination which enables at least two preset furniture combinations to be placed in an overlapping mode from the multiple combinations, and determining the remaining combinations as candidate position combinations; the candidate position combination comprises candidate positions of a plurality of preset furniture combinations.
Further, determining a plurality of combinations of selectable positions of the preset furniture combinations in the target room comprises:
and when at least two of the preset furniture combinations have relative position relation, determining a plurality of combinations according to the relative position relation and the selectable positions of the preset furniture combinations in the target room.
Further, still include:
moving a door and/or window of the target room into the room from an original position within a planar floor plan including the target room, such that the moved door and/or window extends a preset distance into the target room relative to the wall;
determining a nearest projection point of points within the target room;
the area formed by the points where the closest projection point is located on the wall in the target room is determined as the support area for placing the preset furniture combination close to the wall.
Further, still include:
acquiring furniture information to be placed in a target room and presetting a fixed matching mode;
and according to the preset fixed matching mode and the furniture information, performing grouping matching on the furniture to obtain the preset furniture combination.
In a third aspect, an embodiment of the present disclosure provides a furniture layout method, including:
determining a target placing position of a preset furniture combination in a planar household graph comprising a target room; wherein the target placement position is determined using the method of the first aspect and/or the second aspect;
obtaining a furniture layout display diagram in which preset furniture combinations are placed at the target placing position according to the plane house type diagram and the target placing position;
and outputting a furniture layout display diagram.
In a fourth aspect, an embodiment of the present disclosure provides a furniture layout method, including:
receiving a planar floor plan including a target room and furniture information from a client; the furniture information comprises furniture to be placed in a target room and size information of the furniture;
grouping and matching the furniture according to the preset fixed matching mode and the size information of the furniture to obtain at least one preset furniture combination;
determining a target placing position of a preset furniture combination in a planar household graph comprising a target room;
obtaining a furniture layout display diagram in which preset furniture combinations are placed at the target placing position according to the plane house type diagram and the target placing position;
and returning the furniture layout display diagram to the client.
Further, determining a target placement location of a preset furniture combination within a planar floor plan including a target room, comprises:
determining a target pose location using the method of the first and/or second aspects.
In a fifth aspect, an embodiment of the present disclosure provides a furniture layout determining apparatus, including:
a first determination module configured to determine a plurality of candidate positions of a preset furniture combination to be placed in a target room;
the second determining module is configured to determine the intersection of a supporting area of the preset furniture combination close to a placed wall and an area where the preset furniture combination is located when the preset furniture combination is placed at the candidate position; the supporting area is an area close to a wall in the target room, and the nearest projection points of points in the supporting area are all located on the wall;
and the third determination module is configured to determine the target placing position of the preset furniture combination from the plurality of candidate positions according to the intersection.
Further, the first determining module includes:
and the position determining submodule is configured to determine the area center point of the selectable placing area of the preset furniture combination as the candidate position.
Further, when the preset furniture combination is multiple, the first determining module includes:
a first determining sub-module configured to determine a plurality of combinations of selectable positions of a plurality of preset furniture combinations in the target room;
a second determination sub-module configured to remove a combination that makes at least two preset furniture combinations put in an overlapping manner from the plurality of combinations and determine the remaining combinations as candidate position combinations; the candidate position combination comprises candidate positions of a plurality of preset furniture combinations.
Further, the first determination submodule includes:
and the third determining sub-module is configured to determine a plurality of combinations according to the relative position relation and the selectable positions of the preset furniture combinations in the target room when at least two preset furniture combinations have the relative position relation.
Further, still include:
a first moving module configured to move a door and/or window on a wall of a target room into the room from an original position within a planar floor plan including the target room such that the moved door and/or window extends a preset distance into the target room relative to the wall;
a fourth determination module configured to determine a nearest projection point of points within the target room;
a fifth determination module configured to determine an area formed by points at which the most recently projected point is located on a wall within the target room as a support area of the corresponding wall.
Further, a third determining module includes:
and the fourth determination submodule is configured to determine the target placement position from the candidate positions according to the ratio of the first area of the intersection to the second area of the area where the preset furniture combination is located.
Further, still include:
the first acquisition module is configured to acquire furniture information to be placed in a target room and a preset fixed matching mode;
the first grouping module is configured to group and match the furniture according to a preset fixed matching mode and the furniture information to obtain a preset furniture combination.
In a sixth aspect, an embodiment of the present disclosure provides a furniture layout determining apparatus, including:
a sixth determining module configured to determine a plurality of candidate positions of a preset furniture combination to be placed in the target room;
a seventh determining module configured to determine a fitness between the preset furniture combination and the candidate position according to a support area of the preset furniture combination near the placed wall when the preset furniture combination is placed at the candidate position; the fitness is positively correlated with the intersection between the area where the preset furniture combination is placed at the candidate position and the supporting area, the supporting area is an area close to a wall in the target room, and the nearest projection points of the points in the supporting area are all located on the wall;
and the eighth determining module is configured to determine the target placing position of the preset furniture combination from the plurality of candidate positions according to the fitness.
Further, a seventh determining module includes:
a fifth determining submodule configured to determine an intersection between the support area and an area where the preset furniture combination is placed at the candidate position;
a sixth determining submodule configured to determine the fitness according to a ratio of the first area of the intersection to a second area of an area in which the preset furniture combination is located.
Further, an eighth determining module includes:
a seventh determining sub-module configured to determine the candidate position corresponding to the maximum fitness as the target pose position.
Further, a sixth determining module includes:
and the eighth determining submodule is configured to determine the area center point of the selectable placing area of the preset furniture combination as the candidate position.
Further, when the preset furniture combination is multiple, the sixth determining module includes:
a ninth determining sub-module configured to determine a plurality of combinations of the plurality of preset furniture combinations at selectable positions in the target room;
a tenth determination submodule configured to remove a combination which makes at least two preset furniture combinations overlap from the plurality of combinations and determine the remaining combinations as candidate position combinations; the candidate position combination comprises candidate positions of a plurality of preset furniture combinations.
Further, a ninth determination sub-module includes:
an eleventh determining sub-module configured to determine a plurality of combinations according to the relative positional relationship and the selectable positions of the plurality of preset furniture combinations in the target room when at least two of the plurality of preset furniture combinations have a relative positional relationship therebetween.
Further, still include:
a second moving module configured to move a door and/or window of a target room into the room from an original position within a planar floor plan including the target room such that the moved door and/or window extends a preset distance into the target room relative to a wall;
a ninth determination module configured to determine a nearest projection point of points within the target room;
a tenth determination module configured to determine an area formed by points at which the closest projection point is located on a wall in the target room as a support area for placing the preset furniture combination close to the wall.
Further, still include:
the second acquisition module is configured to acquire furniture information to be placed in a target room and a preset fixed matching mode;
and the second grouping module is configured to group and match the furniture according to the preset fixed matching mode and the furniture information to obtain a preset furniture combination.
In a seventh aspect, an embodiment of the present disclosure provides a furniture layout apparatus, including:
an eleventh determining module configured to determine a target placement location of a preset furniture combination within a planar floor plan comprising a target room; wherein the target pose location is determined using the apparatus of the fifth and/or sixth aspects;
the third acquisition module is configured to acquire a furniture layout display diagram in which preset furniture combinations are placed at the target placement position according to the planar household-type diagram and the target placement position;
an output module configured to output the furniture layout display diagram.
In an eighth aspect, an embodiment of the present disclosure provides a furniture layout apparatus, including:
a receiving module configured to receive a floor plan including a target room and furniture information from a client; the furniture information comprises furniture to be placed in a target room and size information of the furniture;
the third grouping module is configured to group and match the furniture according to the preset fixed matching mode and the size information of the furniture, and obtain at least one preset furniture combination;
a twelfth determination module configured to determine a target placement location of a preset furniture combination within a planar floor plan including a target room;
the fourth acquisition module is configured to acquire a furniture layout display diagram in which preset furniture combinations are placed at the target placement position according to the planar household-type diagram and the target placement position;
a returning module configured to return the furniture layout display diagram to the client.
Further, a twelfth determining module includes:
a twelfth determination sub-module configured to determine the target pose location using the apparatus of the fifth aspect and/or the sixth aspect.
The functions may be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-described functions.
In one possible design, the furniture layout determining apparatus includes a memory configured to store one or more computer instructions that support the furniture layout determining apparatus to perform any of the methods described above and a processor configured to execute the computer instructions stored in the memory. The furniture layout determining apparatus may further comprise a communication interface for the furniture layout determining apparatus to communicate with other devices or a communication network.
In a ninth aspect, an embodiment of the present disclosure provides an electronic device, including a memory and a processor; wherein the memory is configured to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement any of the methods described above.
In a tenth aspect, the present disclosure provides a computer-readable storage medium for storing computer instructions for use by any one of the above apparatuses, which includes computer instructions for performing any one of the above methods.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
when the furniture layout is determined, a plurality of candidate positions of the preset furniture combination in a target room are determined, then when the preset furniture combination is placed at the candidate positions, the intersection of a supporting area of the preset furniture combination close to a placed wall and an area where the preset furniture combination is located is determined, and the target placing position is selected from the candidate positions according to the intersection for placing the preset furniture combination; the support area of the preset furniture combination close to the placed wall is an area close to the wall in the target room, and the support area comprises an area formed by points of the nearest projection point on the target wall. In this way, the region formed by the closest projection point of the point on the floor in the target room on the wall can be determined as the support region of the wall, and the optimal position, which brings the preset furniture combination to the maximum extent close to the wall and does not block the facilities such as windows, doors and the like other than the wall, can be selected from the plurality of candidate positions according to the intersection of the support region and the region where the preset furniture combination is placed after the candidate positions.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
Other features, objects, and advantages of the present disclosure will become more apparent from the following detailed description of non-limiting embodiments when taken in conjunction with the accompanying drawings. In the drawings:
FIG. 1 shows a flow diagram of a furniture layout determination method according to an embodiment of the present disclosure;
FIG. 2 illustrates an empty dwelling size plan vector diagram for a sample room according to an embodiment of the present disclosure;
FIG. 3 illustrates a schematic diagram of determining a nearest proxel according to the embodiment shown in FIG. 1;
FIG. 4 shows a flowchart of step S101 according to the embodiment shown in FIG. 1;
FIG. 5 illustrates a flow chart for determining a support area for a wall according to an embodiment of the present disclosure;
FIGS. 6(a) and 6(b) are schematic views showing the original effect of the restaurant in the vector plane layout of FIG. 2 and the effect of moving the door a distance into the room, respectively;
FIG. 7 shows a schematic view of the support areas for the walls and doors in the target room shown in FIG. 6 (b);
FIG. 8 illustrates a flow chart of a method of determining preset furniture composite sections according to the embodiment shown in FIG. 1;
FIG. 9 shows a flow chart of a furniture layout determination method according to another embodiment of the present disclosure;
fig. 10 shows a flowchart of step S902 according to the embodiment shown in fig. 9;
fig. 11 shows a flowchart of step S901 according to the embodiment shown in fig. 9;
FIG. 12 illustrates a flow chart for determining a support area for a wall according to the embodiment illustrated in FIG. 9;
FIG. 13 illustrates a flow chart of a method of determining preset furniture composite sections according to the embodiment illustrated in FIG. 9;
FIG. 14 shows a flow chart of a furniture layout method according to an embodiment of the present disclosure;
FIG. 15 shows a flow chart of a furniture layout method according to another embodiment of the present disclosure;
FIG. 16 shows a schematic diagram of a user interaction with a furniture layout system, according to an embodiment of the present disclosure;
FIG. 17 illustrates an application scenario diagram of a furniture layout system according to an embodiment of the present disclosure;
FIG. 18 illustrates a perspective view display of furniture in the flat floor view of FIG. 2, according to an embodiment of the present disclosure;
fig. 19 is a block diagram showing a configuration of a furniture layout determining apparatus according to an embodiment of the present disclosure;
fig. 20 is a block diagram showing a configuration of a furniture layout determining apparatus according to another embodiment of the present disclosure;
FIG. 21 shows a block diagram of a furniture layout apparatus according to an embodiment of the present disclosure;
FIG. 22 shows a block diagram of a furniture layout apparatus according to another embodiment of the present disclosure;
fig. 23 is a schematic structural diagram of an electronic device suitable for implementing a furniture layout determination method and/or a furniture layout method according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings so that those skilled in the art can easily implement them. Also, for the sake of clarity, parts not relevant to the description of the exemplary embodiments are omitted in the drawings.
In the present disclosure, it is to be understood that terms such as "including" or "having," etc., are intended to indicate the presence of the disclosed features, numbers, steps, behaviors, components, parts, or combinations thereof, and are not intended to preclude the possibility that one or more other features, numbers, steps, behaviors, components, parts, or combinations thereof may be present or added.
It should be further noted that the embodiments and features of the embodiments in the present disclosure may be combined with each other without conflict. The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
The whole house soft-mounting process comprises the step of placing each piece of furniture into an empty house type according to the spatial characteristics of the house type and the geometric dimension information of the furniture on the basis of the empty house type of a given room and the furniture in a sample plate. In the related art, a user can automatically place main furniture to be placed in a given room at a corresponding position in an empty-room type drawing in a manner similar to one-click through a function provided by a client, so that a soft-loading scheme of the given room is obtained. However, in the soft package scheme obtained in this way, due to the unreasonable placement position of the furniture, the phenomena of door blocking, window blocking, channel blocking and the like occur in the furniture such as a sofa, a television, a dining table and the like, so that the soft package scheme obtained by the related technology cannot be applied to the actual soft package process.
Therefore, the embodiment of the present disclosure provides a furniture layout determining method. When the furniture layout is carried out, a plurality of candidate positions of the preset furniture combination in a target room are determined, then when the preset furniture combination is placed at the candidate positions, the intersection of a supporting area of the preset furniture combination close to a placed wall and an area where the preset furniture combination is located is determined, and the target placing position is selected from the candidate positions according to the intersection for placing the preset furniture combination; the support area of the preset furniture combination close to the placed wall is an area close to the wall on the ground inside the target room, and the support area comprises an area formed by points of the nearest projection point on the target wall. In this way, the support area of the preset furniture combination close to the wall on which it is placed can be determined by the closest projection point of a point on the floor in the target room on the wall, and the best position, which brings the preset furniture combination to the greatest extent close to the wall and does not block facilities other than the wall, such as windows, doors, etc., is selected from a plurality of candidate positions according to the intersection of this support area with the area in which the preset furniture combination is located.
Fig. 1 shows a flow chart of a furniture layout determination method according to an embodiment of the present disclosure. As shown in fig. 1, the furniture layout determining method includes the steps of:
in step S101, determining a plurality of candidate positions of a preset furniture combination to be placed in a target room;
in step S102, when the preset furniture combination is placed at the candidate position, determining an intersection of a support area of the preset furniture combination close to the placed wall and an area where the preset furniture combination is located; the supporting area is an area close to a wall in the target room, and the nearest projection points of points in the supporting area are located on the corresponding wall;
in step S103, a target placement position of the preset furniture combination is determined from the plurality of candidate positions according to the intersection.
In this embodiment, the furniture layout determining method may be executed at a server side of a furniture layout system, and the furniture layout system may perform furniture layout for a sample house to be soft decorated. The furniture to be placed can be automatically matched from an existing furniture list by the system according to the house type characteristics of the sample house and the like, or can be configured by the user according to the self requirements, for example, the user selects the furniture type through an interface provided by a client of the furniture layout system and inputs the furniture size and the like, and the configuration can be specifically carried out according to the actual situation, namely the specific scene of room soft-loading, and is not limited herein.
In the present embodiment, in the process of determining the furniture layout, the vector planar layout input by the user through the client to the server of the furniture layout system may be a vector planar layout of a template house, that is, in the present embodiment, when the furniture layout is performed, the required planar layout of the template house is a two-dimensional vector diagram which can be identified by the computer software and has geometric features, and the computer software may identify the geometric features, such as shape, area, length, and the like, in the template house through the vector planar layout. The vector plane house type graph can comprise information such as a room outline, a door and a window of each room in the sample board room, the room outline is represented by a polygon formed by end-to-end points, the door and the window are formed by four end-to-end points, and the walls, the doors and the windows are similar in display form in the vector plane house type graph and are formed by points and lines. Wherein the room outline corresponds to the wall of the room, and the door and the window can be arranged along the wall.
Fig. 2 illustrates an empty house type plan vector diagram of a sample house according to an embodiment of the present disclosure. As shown in fig. 2, the thick lines indicate the polygonal outline of each room in the sample room, the thin lines indicate the outline of the door, and the dotted lines indicate the outline of the window.
The empty house type of the sample house can be expressed as follows:
Figure BDA0002311837510000121
wherein H represents a vacant house type, the vacant house type H comprises n rooms, RiIndicating the location of the ith room, i 1, …,n represents. DijRepresents a room RiInner jth door, WikRepresents a room RiThe kth window in.
The pre-set furniture assembly may comprise one or a group of furniture fixedly arranged in the same area of a room, for example a furniture assembly consisting of a sofa and a tea table. When configuring preset furniture combinations to be placed in a target room, a user may input furniture information to be placed in each room, where the furniture information includes, but is not limited to, furniture name, category, size information, and the like.
The server side of the furniture layout system may divide the furniture information input by the user into a plurality of preset furniture combinations according to the functions of the furniture, and determine area information such as the shape and size of an area where the preset furniture combination is placed for each preset furniture combination, for example, the area is rectangular, and the size includes length and width.
For example, furniture in a guest restaurant can be divided into three preset furniture combinations of a sofa, a television and a dining table according to different functions of seating, seeing and hearing, dining and the like. Sofa assemblies may include, but are not limited to, love sofas, majeans, teapoy, corner tables, side tables, furniture decorations placed on these furniture, and the like; a television set may include, but is not limited to, a television cabinet, etc.; the table assembly may include, but is not limited to, tables, dining chairs, and the like. The furniture in the bedroom can be divided into three preset furniture combinations such as a bed, a television and a wardrobe. Bed combinations may include, but are not limited to, twin beds, bedside tables, ornaments, and the like; the television combination can include but is not limited to a television, a television cabinet, a decoration and the like; the wardrobe combination comprises a wardrobe, furniture in the wardrobe and the like. It is understood that the preset furniture combination may also comprise only one piece of furniture, such as a sideboard, a cupboard, a greenery, a mural, etc.
When determining the target placement position of the preset furniture combination in the target room, for the vector plane user-type diagram including the target room, candidate positions where the preset furniture combination can be placed may be determined first, and then the most suitable target placement position may be selected from the candidate positions. The candidate position of the preset furniture combination can be a candidate position of a certain point on the preset furniture combination, and can also be a candidate position area occupied by the whole preset furniture combination. The target placing position of the preset furniture combination is the position which is finally selected from the candidate positions and is most suitable for placing the preset furniture combination, and when the preset furniture combination is placed at the target placing position, the preset furniture combination can be close to a wall to the greatest extent and can not block indoor facilities such as windows and doors except the wall.
In an alternative implementation of the present disclosure, for convenience of calculation, the candidate position may be a candidate position of a center point of a region of the preset furniture combination. The central point of the area can be the position of the center of the preset furniture combination to be placed. In some embodiments, the region center point may be the center point of a circumscribed rectangular region surrounding each furniture in the preset combination of furniture. The candidate position of the area center point may be any position in the target room, or may be a position in a partial area divided in advance. For example, for a guest restaurant, a living room area and a restaurant area may be pre-divided, the candidate position of the area center point of the sofa combination is selected in the guest area, and the candidate position of the area center point of the table combination is selected in the restaurant area, which may be specifically set according to actual needs, and is not limited herein.
The walls in the target room may be the vector plane floor plan after the portions of the target room outline where the doors and windows are located have been removed. Each wall in the target room has a corresponding support area. The disclosed embodiments divide the ground in the target room for walls, doors, windows, etc. such that the walls, doors, windows, etc. all correspond to a portion of the support area of the ground inside the target room. The support area of the wall of the target room is the area within and near the wall of the target room, which can be determined by the closest projection point of the point within the target room on the wall. The support area of a wall in the target room comprises the area formed by the points of the closest projection point in the target room on the wall, i.e. the closest projection point of all points in the support area of a wall is on the wall, and all points of the closest projection point on the wall constitute the support area of the wall.
The closest projection point of the point in the target room on the wall can be obtained by projecting the point in the target room on the surrounding wall in a vector plane floor-type graph, and the point with the closest projection distance is the closest projection point.
As shown in fig. 3, if the point a is a point in the target room, and the straight lines ab, bc, cd and da respectively represent four walls in the target room, then by vertically projecting the point a onto the four walls, it can be obtained that the projection distance from the point a to the wall corresponding to ad is the shortest, that is, the projection point a1 from the point a to the wall corresponding to ad is the closest projection point.
The support areas for the various walls within the target room may be predetermined according to the methods described above.
When the furniture layout is carried out, for the vector plane floor plan comprising the target room, the intersection between the support area of the preset furniture combination close to the placed wall and the area where the preset furniture combination is placed at the moment can be determined after the area central point of the preset furniture combination is arranged on the current candidate position. The selection standard of the target placement position in the embodiment of the disclosure is to place the preset furniture combination close to the wall in a maximally limited manner without shielding facilities in a room such as a door and a window. Since the support area of the wall is determined by whether the closest projection point of the point inside the target room is on the wall, the size of the intersection between the support area and the area where the preset furniture combination is located can be used to measure the proximity to the wall without obstructing the facilities in the room, such as doors and windows, when the preset furniture combination is at the candidate location. A larger intersection indicates that the candidate location is closer to the selection criterion, i.e. the preset furniture combination is placed at the candidate location closer to the wall without obstructing the facilities in the room, such as doors, windows, etc.
In this embodiment, after the preset furniture combination is placed at the candidate position, the wall where the preset furniture combination is placed close to may be a wall with the largest intersection between the corresponding support area and the area where the preset furniture combination is located, that is, the wall with the largest intersection may be taken as the wall where the preset furniture combination is placed close to by determining the intersection between the support area of each wall in the target room and the area where the preset furniture combination is located.
After determining the corresponding intersection from the plurality of candidate positions, a target placement position may be determined from the intersection, such that the preset furniture combination is placed at the target placement position in the finally determined furniture layout scheme. The most reasonable target placement position is that the preset furniture combination is enabled to lean against the wall as much as possible, and the preset furniture combination is placed at the target placement position so as not to shield facilities such as doors and windows in a target room and not to interfere with placement of other preset furniture combinations. To achieve this, the embodiments of the present disclosure select a target placement location that meets the above-mentioned objective from a plurality of candidate locations by presetting an intersection between an area where the furniture combination is located and a support area of a wall on which the furniture combination is to be rested.
Since the supporting area of the inner wall of the target room is usually an area formed by extending from the wall outwards, the larger the intersection between the supporting area and the area where the preset furniture combination is located, the closer the area where the preset furniture combination is located to the wall corresponding to the supporting area can be shown, and since the preset furniture combination is usually placed against the wall, the area with the largest intersection (that is, the candidate position with the largest intersection is determined as the target placement position) can be selected in this way to place the preset furniture combination, so that the preset furniture combination can be placed at the position closest to one of the walls, and the probability that the window of the preset furniture combination blocks the door is small (since the position where the preset furniture combination is located at the largest intersection is usually the wall, and other facilities such as a door and a window do not exist).
When the furniture layout is determined, a plurality of candidate positions of the preset furniture combination in a target room are determined, then when the preset furniture combination is placed at the candidate positions, the intersection of a supporting area of the preset furniture combination close to a placed wall and an area where the preset furniture combination is located is determined, and the target placing position is selected from the candidate positions according to the intersection for placing the preset furniture combination; the support area of the preset furniture combination close to the placed wall is an area close to the wall in the target room, and the support area comprises an area formed by points of the nearest projection point on the target wall. In this way, the region formed by the closest projection point of the point on the floor in the target room on the wall can be determined as the support region of the wall, and the optimal position, which brings the preset furniture combination to the maximum extent close to the wall and does not block the facilities such as windows, doors and the like other than the wall, can be selected from the plurality of candidate positions according to the intersection of the support region and the region where the preset furniture combination is placed after the candidate positions.
In an optional implementation manner of this embodiment, the step S101 of determining a plurality of candidate positions of the preset furniture combination to be placed in the target room further includes the following steps:
and determining the area center point of the selectable placing area of the preset furniture combination as a candidate position.
In this alternative implementation, for convenience of calculation, the candidate position may be a candidate position of a center point of a region of the preset furniture combination. The area center point may be a position of an area center of the selectable placement area of the preset furniture combination. In some embodiments, the region center point may be the center point of a circumscribed rectangular region surrounding each furniture in the preset combination of furniture. The candidate position of the area center point may be any position in the target room, or may be a position in a partial area divided in advance. For example, for a guest restaurant, a living room area and a restaurant area may be pre-divided, the candidate position of the area center point of the sofa combination is selected in the guest area, and the candidate position of the area center point of the table combination is selected in the restaurant area, which may be specifically set according to actual needs, and is not limited herein.
In an optional implementation manner of this embodiment, as shown in fig. 4, when the preset furniture combination is multiple, step S101, that is, the step of determining multiple candidate positions of the preset furniture combination to be placed in the target room, further includes the following steps:
in step S401, determining a plurality of combinations formed by a plurality of preset furniture combinations at selectable positions in a target room;
in step S402, a combination that causes at least two preset furniture combinations to be laid out in an overlapping manner is removed from the plurality of combinations, and the remaining combinations are determined as candidate position combinations; the candidate position combination comprises candidate positions of a plurality of preset furniture combinations.
In this optional implementation, when a plurality of preset furniture combinations need to be arranged in the target room, for example, a sofa combination, a television combination, and a table combination need to be arranged in a guest restaurant, all points may be traversed in the target room first, each traversal determines a candidate position of an area center point for each preset furniture combination, the candidate positions form a combination, each combination includes respective candidate positions of the plurality of preset furniture combinations, and the candidate positions in each combination are different. In this way, all possible combinations of zone center points for a plurality of preset furniture combinations in the target room can be quickly and accurately traversed.
Because the preset furniture combinations cannot be overlapped when actually placed, the combination which can enable at least two preset furniture combinations to be overlapped and placed can be removed from the obtained multiple combinations, namely after the area center points of the preset furniture combinations are arranged at the corresponding candidate positions in each combination, if the areas where the two preset furniture combinations are located are overlapped, the combination is removed from the multiple combinations. In this way, the finally remaining combinations can be determined as candidate position combinations, and each candidate position combination includes candidate positions corresponding to a plurality of preset furniture combinations, that is, each candidate position combination corresponds to a position arrangement mode of the plurality of preset furniture combinations.
In an optional implementation manner of this embodiment, the step S401 of determining a plurality of combinations formed by selectable positions of a plurality of preset furniture combinations in the target room further includes the following steps:
and when at least two of the preset furniture combinations have relative position relation, determining a plurality of combinations according to the relative position relation and the selectable positions of the preset furniture combinations in the target room.
In this alternative implementation, the relative position relationship between the two preset furniture assemblies may be preset according to the functions of the preset furniture assemblies, for example, the television assembly and the sofa assembly have a relative position relationship, that is, the television assembly needs to be placed opposite to the sofa assembly. Therefore, when determining the candidate position combination corresponding to the area central point of the preset furniture combinations, whether a relative position relationship exists between the preset furniture combinations to be placed in the target room can be considered.
The selectable position of the area central point of each preset furniture combination in the target room can be any point in the target room, but under each arrangement scene, a plurality of preset furniture combinations cannot be overlapped. In addition, when at least two preset furniture combinations have a relative position relationship therebetween, in the process of traversing all points in the target room to determine a combination formed by the selectable positions of the area center points of the preset furniture combinations, the candidate position of the area center point of one of the at least two preset furniture combinations is determined, and then the candidate position of the area center point of the other preset furniture combination is determined according to the relative position relationship and the selectable position in the target room. In this way, combinations with non-matching relative positional relationships can be excluded, and the resulting combinations can be made more reasonable.
In an optional implementation manner of this embodiment, as shown in fig. 5, the method further includes the following steps:
in step S501, in a planar floor plan including a target room, a door and/or a window of the target room is moved into the room from an original position, so that the moved door and/or window extends a preset distance into the target room relative to a wall;
in step S502, the nearest projection point of the points within the target room is determined;
in step S503, an area formed by points at which the most recently projected point is located on the wall in the target room is determined as a support area of the corresponding wall.
In this alternative implementation, the door and window of each room in the vector plane floor plan of the input empty floor plan can be pre-processed. During pretreatment, the doors and windows on the four walls in the target room may be moved a distance into the room such that the moved doors and windows protrude relative to the walls. Fig. 6(a) and 6(b) are schematic views showing the original effect of the restaurant in the vector plane house type diagram of fig. 2 and the effect after the door is moved a distance into the room, respectively. The outline of the door and window of the preprocessed target room protrudes into the target room relative to the original target room.
For the target room after the preprocessing, the nearest projection point of each point in the target room can be determined. It will be appreciated that the projection points of the various points in the target room may be on the wall, the door, or the window. After determining the closest projection point for each point in the target room, the support area for each wall in the target room may be determined based on the closest projection point. For each wall in the target room, the area formed by the point of the closest projection point on the wall is the support area of the wall, and fig. 7 shows the support areas of each wall and door in the target room shown in fig. 6(b), wherein the gray area is the support area corresponding to the wall, and the white area is the support area corresponding to the door.
As can be seen from fig. 7, after the pretreatment, since the door protrudes inward into the room, the support area of the wall is in a regular trapezoid shape with the edge of the wall as the long side, and the support area of the door is in an inverted trapezoid shape with the edge of the door as the short side, it can be seen that after the pretreatment, the intersection with the support area of the wall is larger the closer the pre-set furniture combination is to the wall; the closer the pre-existing furniture assembly is to the door or window, the smaller its intersection with the supporting area of the wall will be. In this way, the probability of presetting the furniture combination shutter or shutter can thus be further reduced.
In an optional implementation manner of this embodiment, the step S103 of determining the target placement position of the preset furniture combination from the plurality of candidate positions according to the intersection further includes the following steps:
and determining the target placement position from the candidate positions according to the ratio of the first area of the intersection to the second area of the area where the preset furniture combination is located.
In this alternative implementation, during the layout of the furniture, the closer the pre-set furniture assembly is to the wall, and the further away from the door and window, the more the requirement for reasonable layout of the furniture is met. Because the preset furniture combination has more candidate positions in the target room and the size of each wall in one room is different, the target placing position can be determined by the ratio of the first area of the intersection between the preset furniture combination and the supporting area where the candidate position is located to the second area occupied by the preset furniture combination.
In some embodiments, the candidate position with the largest ratio may be selected as the target placement position of the preset furniture combination. In the case of a plurality of preset furniture combinations, the target placement positions of one or more preset furniture combinations which do not have a relative positional relationship and one of the preset furniture combinations which have a relative positional relationship may be determined according to the above ratio, and then the target placement positions of other preset furniture combinations may be determined according to the relative positional relationship. By the method, the finally obtained preset furniture combination at the target placing position can be close to the wall to the maximum extent, and facilities in rooms such as doors and windows can not be shielded.
In an optional implementation manner of this embodiment, as shown in fig. 8, the method further includes the following steps:
in step S801, acquiring furniture information to be placed in a target room and presetting a fixed collocation manner;
in step S802, furniture is grouped and collocated according to a preset fixed collocation manner and furniture information to obtain a preset furniture combination.
In this alternative implementation, the user may input a plurality of furniture information to be placed in the target room. The furniture information includes, but is not limited to, furniture identification, detail category, size information, and the like. The preset fixing and matching manner may include, but is not limited to, a plurality of pieces of furniture to be fixed and matched together for placement, relative positions between the pieces of furniture, and intervals between the pieces of furniture. For example, the sofa and the tea table need to be collocated and placed in the same area. The preset fixed collocation manner may be specified by a user, or preset in the furniture layout system, and may be specifically determined according to an actual situation, which is not limited herein. In some embodiments, the preset fixed collocation manner may also consider the layout of lot (internet of things) devices, and the layout of loT devices may be considered from different functions loT, so as to preset a principle of selecting an optimal location for placing loT devices, for example, a wifi router is suitable for being placed at a middle position in a room, so that the wireless routing range of the wifi router can cover each corner of the room; the intelligent sound box is suitable for being placed at a position close to the leisure of a user, for example, the television cabinet and the sofa can be combined into a preset fixed furniture combination to be placed together, so that the intelligent sound box can be placed on the television cabinet of a living room, and the user can conveniently interact with the intelligent sound box.
After obtaining the furniture information and presetting the fixed collocation manner, the server side of the furniture layout system can group and collocate the furniture to be placed in the target room, for example, the sofas and tea tables in the dining room can be grouped into one group, the televisions and the television cabinets can be grouped into one group, and the dining tables and dining chairs can be grouped into one group. In addition, the preset furniture combination can be obtained according to the final matching of the relative position, the distance and the like between the appointed furniture in the preset fixed matching mode. Through the method, the preset furniture combination can be obtained according to the preset fixed matching mode, and then the target placing position can be determined by taking the preset furniture combination as a unit, so that the furniture layout efficiency can be improved, and the furniture layout rationality can be improved.
Fig. 9 shows a flow chart of a furniture layout determination method according to another embodiment of the present disclosure. As shown in fig. 9, the furniture layout determining method includes the steps of:
in step S901, a plurality of candidate positions of a preset furniture combination to be placed in a target room are determined;
in step S902, when the preset furniture combination is placed at the candidate location, determining a fitness between the preset furniture combination and the candidate location according to a support area of the preset furniture combination near the placed wall; the fitness and the intersection between the area where the preset furniture combination is placed in the candidate position and the supporting area are positively correlated, the supporting area is an area close to the wall in the target room, and the nearest projection points of the points in the supporting area are located on the wall;
in step S903, a target placement position of the preset furniture combination is determined from the candidate positions according to the fitness.
In this embodiment, the furniture layout determining method may be executed at a server side of a furniture layout system, and the furniture layout system may perform furniture layout for a sample house to be soft decorated. The furniture to be placed can be automatically matched from an existing furniture list by the system according to the house type characteristics of the sample house and the like, or can be configured by the user according to the self requirements, for example, the user selects the furniture type through an interface provided by a client of the furniture layout system and inputs the furniture size and the like, and the configuration can be specifically carried out according to the actual situation, namely the specific scene of room soft-loading, and is not limited herein.
In the present embodiment, in the process of determining the furniture layout, the vector planar layout input by the user through the client to the server of the furniture layout system may be a vector planar layout of a template house, that is, in the present embodiment, when the furniture layout is performed, the required vector planar layout of the template house is a two-dimensional vector diagram which can be identified by the computer software and has geometric features, and the computer software may identify the geometric features, such as shape, area, length, and the like, in the template house through the vector planar layout. The vector plane house type graph can comprise information such as a room outline, a door and a window of each room in the sample board room, the room outline is represented by a polygon formed by end-to-end points, the door and the window are formed by four end-to-end points, and the walls, the doors and the windows are similar in display form in the vector plane house type graph and are formed by points and lines. Wherein the room outline corresponds to the wall of the room, and the door and the window can be arranged along the wall.
The pre-set furniture assembly may comprise one or a group of furniture fixedly arranged in the same area of a room, for example a furniture assembly consisting of a sofa and a tea table. When configuring preset furniture combinations to be placed in a target room, a user may input furniture information to be placed in each room, where the furniture information includes, but is not limited to, furniture name, category, size information, and the like.
The server side of the furniture layout system may divide the furniture information input by the user into a plurality of preset furniture combinations according to the functions of the furniture, and determine area information such as the shape and size of an area where the preset furniture combination is placed for each preset furniture combination, for example, the area is rectangular, and the size includes length and width.
For example, furniture in a guest restaurant can be divided into three preset furniture combinations of a sofa, a television and a dining table according to different functions of seating, seeing and hearing, dining and the like. Sofa assemblies may include, but are not limited to, love sofas, majeans, teapoy, corner tables, side tables, furniture decorations placed on these furniture, and the like; a television set may include, but is not limited to, a television cabinet, etc.; the table assembly may include, but is not limited to, tables, dining chairs, and the like. The furniture in the bedroom can be divided into three preset furniture combinations such as a bed, a television and a wardrobe. Bed combinations may include, but are not limited to, twin beds, bedside tables, ornaments, and the like; the television combination can include but is not limited to a television, a television cabinet, a decoration and the like; the wardrobe combination comprises a wardrobe, furniture in the wardrobe and the like. It is understood that the preset furniture combination may also comprise only one piece of furniture, such as a sideboard, a cupboard, a greenery, a mural, etc.
When determining the target placement position of the preset furniture combination in the target room, for the vector plane user-type diagram including the target room, candidate positions where the preset furniture combination can be placed may be determined first, and then the most suitable target placement position may be selected from the candidate positions. The candidate position of the preset furniture combination can be a candidate position of a certain point on the preset furniture combination, and can also be a candidate position area occupied by the whole preset furniture combination. The target placing position of the preset furniture combination is the position which is finally selected from the candidate positions and is most suitable for placing the preset furniture combination, and when the preset furniture combination is placed at the target placing position, the preset furniture combination can be close to a wall to the greatest extent and can not block indoor facilities such as windows and doors except the wall.
In an alternative implementation of the present disclosure, for convenience of calculation, the candidate position may be a candidate position of a center point of a region of the preset furniture combination. The central point of the area can be the position of the center of the preset furniture combination to be placed. In some embodiments, the region center point may be the center point of a circumscribed rectangular region surrounding each furniture in the preset combination of furniture. The candidate position of the area center point may be any position in the target room, or may be a position in a partial area divided in advance. For example, for a guest restaurant, a living room area and a restaurant area may be pre-divided, the candidate position of the area center point of the sofa combination is selected in the guest area, and the candidate position of the area center point of the table combination is selected in the restaurant area, which may be specifically set according to actual needs, and is not limited herein.
The walls in the target room may be the vector plane floor plan after the portion of the room outline where the doors and windows are located has been removed. Each wall in the target room has a corresponding support area. The disclosed embodiments divide the ground in the target room for walls, doors, windows, etc. such that the walls, doors, windows, etc. all correspond to a portion of the support area of the ground inside the target room. The support area of the wall of the target room is the area within and near the wall of the target room, which can be determined by the closest projection point of the point within the target room on the wall. The support area of a wall in the target room comprises the area formed by the points of the closest projection point in the target room on the wall, i.e. the closest projection point of all points in the support area of a wall is on the wall, and all points of the closest projection point on the wall constitute the support area of the wall.
The closest projection point of the point in the target room on the wall can be obtained by projecting the point in the target room on the surrounding wall in a vector plane floor-type graph, and the point with the closest projection distance is the closest projection point.
The support areas for the various walls within the target room may be predetermined according to the methods described above.
When the furniture layout is carried out, aiming at the vector plane user-type graph comprising the target room, the furniture combination can be preset to be placed at the candidate position in a mode that the area center point of the preset furniture combination is arranged at the current candidate position. After placing the preset furniture combination at the candidate position, the fitness between the preset furniture combination and the candidate position can be determined through the supporting area of the inner wall of the target room. The fitness may be understood as characterizing how well a preset furniture combination is placed at the candidate position. The selection standard of the target placement position in the embodiment of the disclosure is to place the preset furniture combination close to the wall in a maximally limited manner without shielding facilities in a room such as a door and a window. Thus, since the support area of a wall is determined by whether the closest projected point of a point inside the target room is on the wall, the fitness may also be understood as a composite indicator characterizing the extent to which the pre-set furniture combination, when in a candidate position, obscures the in-room facilities such as doors, windows, etc. and approaches the wall. A higher fitness indicates that the candidate location is closer to the selection criterion, i.e. the preset furniture combination is placed at the candidate location closer to the wall without obstructing the facilities in the room, such as doors, windows, etc.
In this embodiment, after the preset furniture combination is placed at the candidate position, the wall where the preset furniture combination is placed close to may be a wall with the largest intersection between the corresponding support area and the area where the preset furniture combination is located, that is, the wall with the largest intersection may be taken as the wall where the preset furniture combination is placed close to by determining the intersection between the support area of each wall in the target room and the area where the preset furniture combination is located.
After determining the fitness corresponding to the preset furniture combination according to the plurality of candidate positions, a target placing position may be determined according to the fitness, so that the preset furniture combination is placed at the target placing position in the finally determined furniture layout scheme. The most reasonable target placement position is that the preset furniture combination is enabled to lean against the wall as much as possible, and the preset furniture combination is placed at the target placement position so as not to shield facilities such as doors and windows in a target room and not to interfere with placement of other preset furniture combinations. In order to achieve the purpose, the embodiment of the disclosure selects the target placement position meeting the target from the multiple candidate positions by presetting the fitness between the area where the furniture combination is located and the candidate positions.
When the furniture layout is determined, a plurality of candidate positions of the preset furniture combination in a target room are determined, then when the preset furniture combination is placed at the candidate positions, the fitness between the preset furniture combination and the candidate positions is determined according to the support area of the preset furniture combination close to a placed wall, and the target placing position is selected from the candidate positions according to the fitness and is used for placing the preset furniture combination; the support area of the preset furniture combination close to the placed wall is an area close to the wall in the target room, and the support area comprises an area formed by points of the nearest projection point on the target wall. In this way, the degree of adaptability between the preset furniture combination and the candidate position can be determined through the support area of the wall determined by the closest projection point of the point on the ground in the target room on the wall, so that the target placing position which enables the preset furniture combination to be close to the wall to the maximum extent and does not block facilities such as windows and doors except the wall is selected from the plurality of candidate positions according to the degree of adaptability.
In an alternative implementation manner of this embodiment, as shown in fig. 10, the step S902 of determining the fitness between the preset furniture combination and the candidate location according to the support area of the preset furniture combination near the placed wall further includes the following steps:
in step S1001, an intersection between areas where the support area and the preset furniture combination are placed at the candidate position is determined;
in step S1002, a fitness is determined according to a ratio of the first area of the intersection to the second area of the area where the preset furniture combination is located.
In this optional implementation, the fitness between the preset furniture combination and the candidate position after being placed at the candidate position is positively correlated with the intersection between the area where the preset furniture combination is located and the support area of the wall where the preset furniture combination is placed close to. Since the support area of the wall is determined by whether the closest projected point of the point in the target room is on the wall, the area size of the support area of the wall is related to the area size of the wall, and thus the fitness can be determined by the ratio of the first area of the intersection to the second area of the area where the preset furniture combination is located. The higher the ratio is, the higher the fitness is, and the more likely the candidate position corresponding to the fitness becomes the target placement position.
In some embodiments, the candidate position with the largest ratio may be selected as the target placement position of the preset furniture combination. In the case of a plurality of preset furniture combinations, the target placement positions of one or more preset furniture combinations which do not have a relative positional relationship and one of the preset furniture combinations which have a relative positional relationship may be determined according to the above ratio, and then the target placement positions of other preset furniture combinations may be determined according to the relative positional relationship. By the method, the finally obtained preset furniture combination at the target placing position can be close to the wall to the maximum extent, and facilities in rooms such as doors and windows can not be shielded.
In an optional implementation manner of this embodiment, the step of determining the target placement position of the preset furniture combination from the plurality of candidate positions according to the fitness further includes the following steps:
and determining the candidate position corresponding to the maximum fitness as the target placing position.
In this alternative implementation, since the support area of the wall is determined by whether the closest projection point of the point inside the target room is on the wall, and the fitness between the preset furniture combination and the candidate location is determined by the support area of the preset furniture combination close to the wall where the preset furniture combination is placed, the fitness can be understood as a comprehensive index representing the degree of the preset furniture combination shielding the door, window, etc. inside the room and close to the wall when the preset furniture combination is at the candidate location. A higher fitness indicates that the candidate location is closer to the selection criterion, i.e. the preset furniture combination is placed at the candidate location closer to the wall without obstructing the facilities in the room, such as doors, windows, etc. Therefore, the candidate position corresponding to the maximum fitness is determined as the target placing position, and the preset furniture combination is placed at the target placing position, so that the preset furniture combination can be close to a wall to the maximum extent under the condition that facilities such as doors, windows and the like are not shielded, and the placing mode of the preset furniture combination can be maximally rationalized.
In an optional implementation manner of this embodiment, the step S901 of determining a plurality of candidate positions of the preset furniture combination to be placed in the target room further includes the following steps:
and determining the area center point of the selectable placing area of the preset furniture combination as the candidate position.
In this alternative implementation, for convenience of calculation, the candidate position may be a candidate position of a center point of a region of the preset furniture combination. The area center point may be a position of an area center of the selectable placement area of the preset furniture combination. In some embodiments, the region center point may be the center point of a circumscribed rectangular region surrounding each furniture in the preset combination of furniture. The candidate position of the area center point may be any position in the target room, or may be a position in a partial area divided in advance. For example, for a guest restaurant, a living room area and a restaurant area may be pre-divided, the candidate position of the area center point of the sofa combination is selected in the guest area, and the candidate position of the area center point of the table combination is selected in the restaurant area, which may be specifically set according to actual needs, and is not limited herein.
In an optional implementation manner of this embodiment, as shown in fig. 11, when the preset furniture combination is multiple, the step S901 of determining multiple candidate positions of the preset furniture combination to be placed in the target room further includes the following steps:
in step S1101, a plurality of combinations formed by a plurality of preset furniture combinations at selectable positions in the target room are determined;
in step S1102, a combination that makes at least two of the preset furniture combinations overlap is removed from the plurality of combinations, and the remaining combinations are determined as candidate position combinations; wherein, the candidate position combination comprises a plurality of candidate positions of the preset furniture combination.
In this optional implementation, when a plurality of preset furniture combinations need to be arranged in the target room, for example, a sofa combination, a television combination, and a table combination need to be arranged in a guest restaurant, all points may be traversed in the target room first, each traversal determines a candidate position of an area center point for each preset furniture combination, the candidate positions form a combination, each combination includes respective candidate positions of the plurality of preset furniture combinations, and the candidate positions in each combination are different. In this way, all possible combinations of zone center points for a plurality of preset furniture combinations in the target room can be quickly and accurately traversed.
Because the preset furniture combinations cannot be overlapped when actually placed, the combination which can enable at least two preset furniture combinations to be overlapped and placed can be removed from the obtained multiple combinations, namely after the area center points of the preset furniture combinations are arranged at the corresponding candidate positions in each combination, if the areas where the two preset furniture combinations are located are overlapped, the combination is removed from the multiple combinations. In this way, the finally remaining combinations can be determined as candidate position combinations, and each candidate position combination includes candidate positions corresponding to a plurality of preset furniture combinations, that is, each candidate position combination corresponds to a position arrangement mode of the plurality of preset furniture combinations.
In an optional implementation manner of this embodiment, the step S1101, namely the step of determining a plurality of combinations formed by the selectable positions of the preset furniture combinations in the target room, further includes the following steps:
when at least two of the preset furniture combinations have relative position relation, the multiple combinations are determined according to the relative position relation and the selectable positions of the preset furniture combinations in the target room.
In this alternative implementation, the relative position relationship between the two preset furniture assemblies may be preset according to the functions of the preset furniture assemblies, for example, the television assembly and the sofa assembly have a relative position relationship, that is, the television assembly needs to be placed opposite to the sofa assembly. Therefore, when determining the candidate position combination corresponding to the area central point of the preset furniture combinations, whether a relative position relationship exists between the preset furniture combinations to be placed in the target room can be considered.
The selectable position of the area central point of each preset furniture combination in the target room can be any point in the target room, but under each arrangement scene, a plurality of preset furniture combinations cannot be overlapped. In addition, when at least two preset furniture combinations have a relative position relationship therebetween, in the process of traversing all points in the target room to determine a combination formed by the selectable positions of the area center points of the preset furniture combinations, the candidate position of the area center point of one of the at least two preset furniture combinations is determined, and then the candidate position of the area center point of the other preset furniture combination is determined according to the relative position relationship and the selectable position in the target room. In this way, combinations with non-matching relative positional relationships can be excluded, and the resulting combinations can be made more reasonable.
In an optional implementation manner of this embodiment, as shown in fig. 12, the method further includes the following steps:
in step S1201, in a planar floor plan including the target room, moving a door and/or window of the target room into the room from an original position, so that the moved door and/or window extends a preset distance into the target room relative to a wall;
in step S1202, the nearest projection point of the points in the target room is determined;
in step S1203, an area formed by points at which the most recently projected point is located on the wall in the target room is determined as a support area of the corresponding wall.
In this alternative implementation, pre-processing may be performed for the doors and windows of each room in the input vector plane floor plan. During pretreatment, the doors and windows on the four walls in the target room may be moved a distance into the room such that the moved doors and windows protrude relative to the walls. Fig. 6(a) and 6(b) are schematic views showing the original effect of the restaurant in the vector plane house type diagram of fig. 2 and the effect after the door is moved a distance into the room, respectively. The contour at the door and window position of the preprocessed target room relative to the original target room protrudes into the target room.
For the target room after the preprocessing, the nearest projection point of each point in the target room can be determined. It will be appreciated that the projection points of the various points in the target room may be on the wall, the door, or the window. After determining the closest projection point for each point in the target room, the support area for each wall in the target room may be determined based on the closest projection point. For each wall in the target room, the area formed by the point of the closest projection point on the wall is the support area of the wall, and fig. 7 shows the support areas of each wall and door in the target room shown in fig. 6(b), wherein the gray area is the support area corresponding to the wall, and the white area is the support area corresponding to the door.
As can be seen from fig. 7, after the pretreatment, since the door protrudes inward into the room, the support area of the wall is in a regular trapezoid shape with the edge of the wall as the long side, and the support area of the door is in an inverted trapezoid shape with the edge of the door as the short side, it can be seen that after the pretreatment, the intersection with the support area of the wall is larger the closer the pre-set furniture combination is to the wall; the closer the pre-existing furniture assembly is to the door or window, the smaller its intersection with the supporting area of the wall will be. In this way, the probability of presetting the furniture combination shutter or shutter can thus be further reduced.
In an optional implementation manner of this embodiment, as shown in fig. 13, the method further includes the following steps:
in step S1301, acquiring furniture information to be placed in the target room and presetting a fixed collocation manner;
in step S1302, furniture is grouped and collocated according to a preset fixed collocation manner and the furniture information, so as to obtain the preset furniture combination.
In this alternative implementation, the user may input a plurality of furniture information to be placed in the target room. The furniture information includes, but is not limited to, furniture identification, detail category, size information, and the like. The preset fixing and matching manner may include, but is not limited to, a plurality of pieces of furniture to be fixed and matched together for placement, relative positions between the pieces of furniture, and intervals between the pieces of furniture. For example, the sofa and the tea table need to be collocated and placed in the same area. The preset fixed collocation manner may be specified by a user, or preset in the furniture layout system, and may be specifically determined according to an actual situation, which is not limited herein.
After obtaining the furniture information and presetting the fixed collocation manner, the server side of the furniture layout system can group and collocate the furniture to be placed in the target room, for example, the sofas and tea tables in the dining room can be grouped into one group, the televisions and the television cabinets can be grouped into one group, and the dining tables and dining chairs can be grouped into one group. In addition, the preset furniture combination can be obtained according to the final matching of the relative position, the distance and the like between the appointed furniture in the preset fixed matching mode. Through the method, the preset furniture combination can be obtained according to the preset fixed matching mode, and then the target placing position can be determined by taking the preset furniture combination as a unit, so that the furniture layout efficiency can be improved, and the furniture layout rationality can be improved.
FIG. 14 shows a flow chart of a furniture layout method according to an embodiment of the present disclosure. As shown in fig. 14, the furniture layout method includes the steps of:
in step S1401, a target placement position of a preset furniture combination within a planar floor plan including a target room is determined; wherein, the target placing position is determined by the furniture layout determining method;
in step S1402, a furniture layout display diagram with preset furniture assemblies placed at the target placement position is obtained according to the planar house type diagram and the target placement position;
in step S1403, a furniture layout display diagram is output.
In this embodiment, the furniture layout method may be executed at a server side of the furniture layout system, and the furniture layout system may perform furniture layout for a sample house to be soft-decorated.
For details of determining the target placement position, reference may be made to the description of the furniture layout determining method in the embodiment and the related embodiment shown in fig. 1 and the embodiment and the related embodiment shown in fig. 9, which is not described herein again.
After the target placing position of the preset furniture combination is determined, a furniture layout display diagram with the corresponding preset furniture combination placed at the target placing position in the target room can be obtained through a plane household type diagram comprising the target room and a graph corresponding to the preset furniture combination, and the furniture layout display diagram is output to a client of a user so as to be displayed to the user. The furniture layout display diagram may be obtained by setting a graphic of a preset furniture combination at a target placement position on the basis of a planar household diagram including a target room, or may be a furniture layout display diagram formed after placing a graphic of a preset furniture combination having a three-dimensional effect at a corresponding target placement position in a three-dimensional household diagram including a target room, and may be specifically set according to actual needs, without limitation. By the aid of the method, furniture to be placed in the target room can be automatically placed at a proper position according to requirements of a user, the placed effect schematic diagram is displayed to the user finally, the user can intuitively judge whether the furniture layout mode meets the requirements of the user according to the effect display diagram, in the furniture layout process, the user only needs to provide a plane user-type diagram comprising the target room and furniture information needing to be placed in the target room, and the furniture layout system can automatically generate a furniture layout scheme for the user to refer to.
Fig. 15 shows a flow chart of a furniture layout method according to another embodiment of the present disclosure. As shown in fig. 15, the furniture layout method includes the steps of:
in step S1501, receiving a floor plan including a target room and furniture information from a client; the furniture information comprises furniture to be placed in a target room and size information of the furniture;
in step S1502, furniture is grouped and collocated according to a preset fixed collocation manner and size information of the furniture, and at least one preset furniture combination is obtained;
in step S1503, determining a target placement position of a preset furniture combination in a planar floor plan including a target room;
in step S1504, a furniture layout display diagram with preset furniture assemblies placed at the target placement positions is obtained according to the planar house type diagram and the target placement positions;
in step S1505, the furniture layout display diagram is returned to the client.
In this embodiment, the furniture layout method may be executed at a server side of the furniture layout system, and the furniture layout system may perform furniture layout for a sample house to be soft-decorated.
The user can upload or generate the empty house type vector plane graph of the furniture to be placed through an interface provided by the furniture layout system on the client. The null house type vector plan may be a plan view of a target room including a presentation of furniture. The vector plane house type graph can comprise information of a room outline, a door, a window and the like of each room, the room outline is represented by a polygon formed by end-to-end points, the door and the window are formed by four end-to-end points, and the walls, the doors and the windows are similar in display form in the vector plane house type graph and are formed by points and lines. Wherein the room outline corresponds to the wall of the room, and the door and the window can be arranged along the wall.
The user may also provide furniture information placed in the target room through an interface provided by the furniture layout system at the client. The furniture information may include, but is not limited to, furniture and furniture size information, such as furniture identification, type, size, etc. The client can upload the empty house type vector plane graph and the furniture information provided by the user to the server, and the server can firstly carry out grouping and collocation on the furniture to be placed in each target room according to some preset fixed collocation modes to obtain a preset furniture combination. For example, a couch, a tea table, etc. may be grouped together in a dining room, a television cabinet, etc. may be grouped together in a table, and a dining chair. In addition, the preset furniture combination can be obtained according to the final matching of the relative position, the distance and the like between the appointed furniture in the preset fixed matching mode. Through the method, the preset furniture combination can be obtained according to the preset fixed matching mode, and then the target placing position can be determined by taking the preset furniture combination as a unit, so that the furniture layout efficiency can be improved, and the furniture layout rationality can be improved.
The preset fixing and matching manner may include, but is not limited to, a plurality of pieces of furniture to be fixed and matched together for placement, relative positions between the pieces of furniture, and intervals between the pieces of furniture. For example, the sofa and the tea table need to be collocated and placed in the same area. The preset fixed collocation manner may be specified by a user, or preset in the furniture layout system, and may be specifically determined according to an actual situation, which is not limited herein.
After the preset furniture combination is determined, the target placing position of each preset furniture combination in the target room can be determined according to the planar floor plan provided by the user.
After the target placing position of the preset furniture combination is determined, a furniture layout display diagram with the corresponding preset furniture combination placed at the target placing position in the target room can be obtained through a plane household type diagram comprising the target room and a graph corresponding to the preset furniture combination, and the furniture layout display diagram is output to a client of a user so as to be displayed to the user. The furniture layout display diagram may be obtained by setting a graphic of a preset furniture combination at a target placement position on the basis of a planar house-type diagram including a target room, or may be a furniture layout display diagram formed after placing a graphic of a preset furniture combination having a three-dimensional effect at a corresponding target placement position in a three-dimensional house-type diagram including a target room, and may be specifically set according to actual needs, which is not limited herein. By the aid of the method, furniture to be placed in the target room can be automatically placed at a proper position according to requirements of a user, the placed effect schematic diagram is displayed to the user finally, the user can visually judge whether the furniture layout mode meets the requirements of the user according to the effect display diagram, in the furniture layout process, the user only needs to provide an empty house type plan diagram of the target room and furniture information needing to be placed in the target room, and the furniture layout system can automatically generate a furniture layout scheme for the user to refer to.
In an optional implementation manner of this embodiment, the step S1503 of determining the target placement position of the preset furniture combination in the planar floor plan including the target room further includes the following steps:
and determining the target placing position by using the furniture layout determining method.
In this optional implementation manner, for details of determining the target placement position, reference may be made to the description of the furniture layout determining method in the embodiment and the related embodiment shown in fig. 1 and the embodiment and the related embodiment shown in fig. 9, and details are not described here again.
FIG. 16 shows a schematic diagram of a user interaction with a furniture layout system, according to an embodiment of the present disclosure. As shown in fig. 16, a user 1601 may log in a client of a furniture layout system through a user device 1602 such as a mobile phone, and upload or generate a flat house type diagram for furniture layout on line through the client, and the user 1601 may further configure, through the client, a piece of furniture to be placed in the flat house type diagram; and the user 1601 obtains the perspective effect diagram 1603 of placing furniture in the flat user-type figure by means of one-click.
Fig. 17 shows a schematic view of an application scenario of a furniture layout system according to an embodiment of the present disclosure. As shown in fig. 17, the furniture layout system includes a client terminal 1701 and a server terminal 1702; the client 1701 may provide a user interface through which a user may upload or generate online a plan view for furniture layout, which may be a null plan vector diagram, and the user may set information such as dimensions of various parts in the plan view, for example, length, width, height, and area in a room.
The user can also configure the furniture information to be placed in each room in the planar user-type diagram through the user interface. The configuration process of the furniture information can be that the user configures the furniture information by selecting the furniture category such as sofa, the specific type of furniture such as corner sofa, the size and the like from the existing furniture information provided by the furniture layout system. Some fixing and matching modes of furniture, such as a fixing and matching mode between a sofa and a tea table, a fixing and matching mode between a dining table and a dining chair and the like, can be preset in the furniture layout system. It can be understood that these preset fixed matching modes can also be adjusted by the user according to the actual requirements of the user.
After the user provides the flat house type graph and the furniture information through the client 1701, the client 1701 may upload the flat house type graph and the furniture information provided by the user to the server 1702, and the server 1702 groups and collocates the furniture according to the furniture information and the preset fixed collocating manner to obtain a preset furniture combination, such as a sofa and a tea table combination, a television and a television cabinet combination, a dining table and a dining chair combination, and the like. The server 1702 may also pre-process each room according to the plan, extend doors, windows, and the like in the plan from the original position to the inside of the room for a distance, for example, several tens of centimeters, and obtain the pre-processed plan. The flat house type figure is characterized in that the outlines of the door, the window and the like are not in a straight line with the outline of the wall, and the outlines of the door, the window and the like are protruded towards the interior of a room relative to the wall.
After the floor plan is preprocessed, the server 1702 may determine the support areas for the walls, doors, windows, etc. in the room. The process of determining the support area can be understood as a process of dividing the area inside the room and is divided by the closest projection point of the point inside the room, which is on the wall, then the point is located within the support area of the wall, which is on the door or window, then the point is located within the support area of the door or window.
The server 1702 determines the fitness of each candidate position according to the preset furniture combination through the support area of each wall in the room, selects a target placement position from each candidate position according to the fitness, and places the preset furniture combination close to the wall to the greatest extent under the condition that facilities such as doors and windows are not shielded according to the standard of selecting the target placement position from each candidate position. After the server 1702 selects the target placement position, a furniture layout display diagram with preset furniture assemblies placed at the target placement positions in the room can be automatically generated according to the planar house type diagram and the target placement positions of the preset furniture assemblies. The furniture layout display can be a perspective schematic view. After generating the furniture layout display diagram, the server 1702 pushes the furniture layout display diagram to the client 1701, and displays the furniture layout display diagram to the user on the client 1701. Fig. 18 is a perspective view of furniture, such as a sofa, a tea table, a dining chair, a television cabinet, a bed, a wardrobe, and a bedside table, placed in the flat house type view of fig. 2 according to an embodiment of the present disclosure. By the method, the user can realize the application scene of one-key quick furniture layout through the client.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods.
Fig. 19 shows a block diagram of a furniture layout determining apparatus according to an embodiment of the present disclosure, which may be implemented as part or all of an electronic device by software, hardware, or a combination of both. As shown in fig. 19, the furniture layout determining apparatus includes:
a first determining module 1901 configured to determine a plurality of candidate locations of a preset furniture combination to be placed in a target room;
a second determining module 1902, configured to determine, when the preset furniture combination is placed at the candidate position, an intersection of a support area of the preset furniture combination close to the placed wall and an area where the preset furniture combination is located; the supporting area is an area close to a wall in the target room, and the nearest projection points of points in the supporting area are all located on the wall;
a third determining module 1903 configured to determine a target placement location of the preset furniture combination from the plurality of candidate locations according to the intersection.
In this embodiment, the furniture layout determining apparatus may operate on a server side of a furniture layout system, and the furniture layout system may perform furniture layout for a sample house to be soft decorated. The furniture to be placed can be automatically matched from an existing furniture list by the system according to the house type characteristics of the sample house and the like, or can be configured by the user according to the self requirements, for example, the user selects the furniture type through an interface provided by a client of the furniture layout system and inputs the furniture size and the like, and the configuration can be specifically carried out according to the actual situation, namely the specific scene of room soft-loading, and is not limited herein.
In the present embodiment, in the process of determining the furniture layout, the vector planar layout input by the user through the client to the server of the furniture layout system may be a vector planar layout of a template house, that is, in the present embodiment, when the furniture layout is performed, the required planar layout of the template house is a two-dimensional vector diagram which can be identified by the computer software and has geometric features, and the computer software may identify the geometric features, such as shape, area, length, and the like, in the template house through the vector planar layout. The vector plane house type graph can comprise information such as a room outline, a door and a window of each room in the sample board room, the room outline is represented by a polygon formed by end-to-end points, the door and the window are formed by four end-to-end points, and the walls, the doors and the windows are similar in display form in the vector plane house type graph and are formed by points and lines. Wherein the room outline corresponds to the wall of the room, and the door and the window can be arranged along the wall.
Fig. 2 illustrates an empty house type plan vector diagram of a sample house according to an embodiment of the present disclosure. As shown in fig. 2, the thick lines indicate the polygonal outline of each room in the sample room, the thin lines indicate the outline of the door, and the dotted lines indicate the outline of the window.
The empty house type of the sample house can be expressed as follows:
Figure BDA0002311837510000321
wherein H represents a vacant house type, the vacant house type H comprises n rooms, RiDenotes the ith room, i is 1, …, and n denotes. DijRepresents a room RiInner jth door, WikRepresents a room RiThe k-th one ofAnd a window.
The pre-set furniture assembly may comprise one or a group of furniture fixedly arranged in the same area of a room, for example a furniture assembly consisting of a sofa and a tea table. When configuring preset furniture combinations to be placed in a target room, a user may input furniture information to be placed in each room, where the furniture information includes, but is not limited to, furniture name, category, size information, and the like.
The server side of the furniture layout system may divide the furniture information input by the user into a plurality of preset furniture combinations according to the functions of the furniture, and determine area information such as the shape and size of an area where the preset furniture combination is placed for each preset furniture combination, for example, the area is rectangular, and the size includes length and width.
For example, furniture in a guest restaurant can be divided into three preset furniture combinations of a sofa, a television and a dining table according to different functions of seating, seeing and hearing, dining and the like. Sofa assemblies may include, but are not limited to, love sofas, majeans, teapoy, corner tables, side tables, furniture decorations placed on these furniture, and the like; a television set may include, but is not limited to, a television cabinet, etc.; the table assembly may include, but is not limited to, tables, dining chairs, and the like. The furniture in the bedroom can be divided into three preset furniture combinations such as a bed, a television and a wardrobe. Bed combinations may include, but are not limited to, twin beds, bedside tables, ornaments, and the like; the television combination can include but is not limited to a television, a television cabinet, a decoration and the like; the wardrobe combination comprises a wardrobe, furniture in the wardrobe and the like. It is understood that the preset furniture combination may also comprise only one piece of furniture, such as a sideboard, a cupboard, a greenery, a mural, etc.
When determining the target placement position of the preset furniture combination in the target room, for the vector plane user-type diagram including the target room, candidate positions where the preset furniture combination can be placed may be determined first, and then the most suitable target placement position may be selected from the candidate positions. The candidate position of the preset furniture combination can be a candidate position of a certain point on the preset furniture combination, and can also be a candidate position area occupied by the whole preset furniture combination. The target placing position of the preset furniture combination is the position which is finally selected from the candidate positions and is most suitable for placing the preset furniture combination, and when the preset furniture combination is placed at the target placing position, the preset furniture combination can be close to a wall to the greatest extent and can not block indoor facilities such as windows and doors except the wall.
In an alternative implementation of the present disclosure, for convenience of calculation, the candidate position may be a candidate position of a center point of a region of the preset furniture combination. The central point of the area can be the position of the center of the preset furniture combination to be placed. In some embodiments, the region center point may be the center point of a circumscribed rectangular region surrounding each furniture in the preset combination of furniture. The candidate position of the area center point may be any position in the target room, or may be a position in a partial area divided in advance. For example, for a guest restaurant, a living room area and a restaurant area may be pre-divided, the candidate position of the area center point of the sofa combination is selected in the guest area, and the candidate position of the area center point of the table combination is selected in the restaurant area, which may be specifically set according to actual needs, and is not limited herein.
The walls in the target room may be the vector plane floor plan after the portions of the target room outline where the doors and windows are located have been removed. Each wall in the target room has a corresponding support area. The disclosed embodiments divide the ground in the target room for walls, doors, windows, etc. such that the walls, doors, windows, etc. all correspond to a portion of the support area of the ground inside the target room. The support area of the wall of the target room is the area within and near the wall of the target room, which can be determined by the closest projection point of the point within the target room on the wall. The support area of a wall in the target room comprises the area formed by the points of the closest projection point in the target room on the wall, i.e. the closest projection point of all points in the support area of a wall is on the wall, and all points of the closest projection point on the wall constitute the support area of the wall.
The closest projection point of the point in the target room on the wall can be obtained by projecting the point in the target room on the surrounding wall in a vector plane floor-type graph, and the point with the closest projection distance is the closest projection point.
As shown in fig. 3, if the point a is a point in the target room, and the straight lines ab, bc, cd and da respectively represent four walls in the target room, then by vertically projecting the point a onto the four walls, it can be obtained that the projection distance from the point a to the wall corresponding to ad is the shortest, that is, the projection point a1 from the point a to the wall corresponding to ad is the closest projection point.
The support areas for the various walls within the target room may be predetermined according to the methods described above.
When the furniture layout is carried out, for the vector plane floor plan comprising the target room, the intersection between the support area of the preset furniture combination close to the placed wall and the area where the preset furniture combination is placed at the moment can be determined after the area central point of the preset furniture combination is arranged on the current candidate position. The selection standard of the target placement position in the embodiment of the disclosure is to place the preset furniture combination close to the wall in a maximally limited manner without shielding facilities in a room such as a door and a window. Since the support area of the wall is determined by whether the closest projection point of the point inside the target room is on the wall, the size of the intersection between the support area and the area where the preset furniture combination is located can be used to measure the proximity to the wall without obstructing the facilities in the room, such as doors and windows, when the preset furniture combination is at the candidate location. A larger intersection indicates that the candidate location is closer to the selection criterion, i.e. the preset furniture combination is placed at the candidate location closer to the wall without obstructing the facilities in the room, such as doors, windows, etc.
In this embodiment, after the preset furniture combination is placed at the candidate position, the wall where the preset furniture combination is placed close to may be a wall with the largest intersection between the corresponding support area and the area where the preset furniture combination is located, that is, the wall with the largest intersection may be taken as the wall where the preset furniture combination is placed close to by determining the intersection between the support area of each wall in the target room and the area where the preset furniture combination is located.
After determining the corresponding intersection from the plurality of candidate positions, a target placement position may be determined from the intersection, such that the preset furniture combination is placed at the target placement position in the finally determined furniture layout scheme. The most reasonable target placement position is that the preset furniture combination is enabled to lean against the wall as much as possible, and the preset furniture combination is placed at the target placement position so as not to shield facilities such as doors and windows in a target room and not to interfere with placement of other preset furniture combinations. To achieve this, the embodiments of the present disclosure select a target placement location that meets the above-mentioned objective from a plurality of candidate locations by presetting an intersection between an area where the furniture combination is located and a support area of a wall on which the furniture combination is to be rested.
Since the supporting area of the inner wall of the target room is usually an area formed by extending from the wall outwards, the larger the intersection between the supporting area and the area where the preset furniture combination is located, the closer the area where the preset furniture combination is located to the wall corresponding to the supporting area can be shown, and since the preset furniture combination is usually placed against the wall, the area with the largest intersection (that is, the candidate position with the largest intersection is determined as the target placement position) can be selected in this way to place the preset furniture combination, so that the preset furniture combination can be placed at the position closest to one of the walls, and the probability that the window of the preset furniture combination blocks the door is small (since the position where the preset furniture combination is located at the largest intersection is usually the wall, and other facilities such as a door and a window do not exist).
When the furniture layout is determined, a plurality of candidate positions of the preset furniture combination in a target room are determined, then when the preset furniture combination is placed at the candidate positions, the intersection of a supporting area of the preset furniture combination close to a placed wall and an area where the preset furniture combination is located is determined, and the target placing position is selected from the candidate positions according to the intersection for placing the preset furniture combination; the support area of the preset furniture combination close to the placed wall is an area close to the wall in the target room, and the support area comprises an area formed by points of the nearest projection point on the target wall. In this way, the region formed by the closest projection point of the point on the floor in the target room on the wall can be determined as the support region of the wall, and the optimal position, which brings the preset furniture combination to the maximum extent close to the wall and does not block the facilities such as windows, doors and the like other than the wall, can be selected from the plurality of candidate positions according to the intersection of the support region and the region where the preset furniture combination is placed after the candidate positions.
In an optional implementation manner of this embodiment, the first determining module includes:
and the position determining submodule is configured to determine the area center point of the selectable placing area of the preset furniture combination as the candidate position.
In an optional implementation manner of this embodiment, when the preset furniture is combined into a plurality of combinations, the first determining module includes:
a first determining sub-module configured to determine a plurality of combinations of selectable positions of a plurality of preset furniture combinations in the target room;
a second determination sub-module configured to remove a combination that makes at least two preset furniture combinations put in an overlapping manner from the plurality of combinations and determine the remaining combinations as candidate position combinations; the candidate position combination comprises candidate positions of a plurality of preset furniture combinations.
In an optional implementation manner of this embodiment, the first determining sub-module includes:
and the third determining sub-module is configured to determine a plurality of combinations according to the relative position relation and the selectable positions of the preset furniture combinations in the target room when at least two preset furniture combinations have the relative position relation.
In an optional implementation manner of this embodiment, the method further includes:
a first moving module configured to move a door and/or window on a wall of a target room into the room from an original position within a planar floor plan including the target room such that the moved door and/or window extends a preset distance into the target room relative to the wall;
a fourth determination module configured to determine a nearest projection point of points within the target room;
a fifth determination module configured to determine an area formed by points at which the most recently projected point is located on a wall within the target room as a support area of the corresponding wall.
In an optional implementation manner of this embodiment, the third determining module includes:
and the fourth determination submodule is configured to determine the target placement position from the candidate positions according to the ratio of the first area of the intersection to the second area of the area where the preset furniture combination is located.
In an optional implementation manner of this embodiment, the method further includes:
the first acquisition module is configured to acquire furniture information to be placed in a target room and a preset fixed matching mode;
the first grouping module is configured to group and match the furniture according to a preset fixed matching mode and the furniture information to obtain a preset furniture combination.
The furniture layout determining apparatus in this embodiment corresponds to and is consistent with the furniture layout determining method in the embodiment shown in fig. 1 and the related embodiments, and specific details can be referred to the description of the furniture layout determining method in the embodiment shown in fig. 1 and the related embodiments, which is not limited herein.
Fig. 20 shows a block diagram of a furniture layout determining apparatus according to another embodiment of the present disclosure, which may be implemented as part or all of an electronic device by software, hardware, or a combination of both. As shown in fig. 20, the furniture layout determining apparatus includes:
a sixth determining module 2001 configured to determine a plurality of candidate positions of a preset furniture combination to be placed in the target room;
a seventh determining module 2002 configured to determine, when the preset furniture combination is placed at the candidate location, a fitness between the preset furniture combination and the candidate location according to a support area of the preset furniture combination near the placed wall; the fitness is positively correlated with the intersection between the area where the preset furniture combination is placed at the candidate position and the supporting area, the supporting area is an area close to a wall in the target room, and the nearest projection points of the points in the supporting area are all located on the wall;
an eighth determining module 2003 configured to determine the target placing position of the preset furniture combination from the plurality of candidate positions according to the fitness.
In this embodiment, the furniture layout determining apparatus may operate on a server side of a furniture layout system, and the furniture layout system may perform furniture layout for a sample house to be soft decorated. The furniture to be placed can be automatically matched from an existing furniture list by the system according to the house type characteristics of the sample house and the like, or can be configured by the user according to the self requirements, for example, the user selects the furniture type through an interface provided by a client of the furniture layout system and inputs the furniture size and the like, and the configuration can be specifically carried out according to the actual situation, namely the specific scene of room soft-loading, and is not limited herein.
In the present embodiment, in the process of determining the furniture layout, the vector planar layout input by the user through the client to the server of the furniture layout system may be a vector planar layout of a template house, that is, in the present embodiment, when the furniture layout is performed, the required vector planar layout of the template house is a two-dimensional vector diagram which can be identified by the computer software and has geometric features, and the computer software may identify the geometric features, such as shape, area, length, and the like, in the template house through the vector planar layout. The vector plane house type graph can comprise information such as a room outline, a door and a window of each room in the sample board room, the room outline is represented by a polygon formed by end-to-end points, the door and the window are formed by four end-to-end points, and the walls, the doors and the windows are similar in display form in the vector plane house type graph and are formed by points and lines. Wherein the room outline corresponds to the wall of the room, and the door and the window can be arranged along the wall.
The pre-set furniture assembly may comprise one or a group of furniture fixedly arranged in the same area of a room, for example a furniture assembly consisting of a sofa and a tea table. When configuring preset furniture combinations to be placed in a target room, a user may input furniture information to be placed in each room, where the furniture information includes, but is not limited to, furniture name, category, size information, and the like.
The server side of the furniture layout system may divide the furniture information input by the user into a plurality of preset furniture combinations according to the functions of the furniture, and determine area information such as the shape and size of an area where the preset furniture combination is placed for each preset furniture combination, for example, the area is rectangular, and the size includes length and width.
For example, furniture in a guest restaurant can be divided into three preset furniture combinations of a sofa, a television and a dining table according to different functions of seating, seeing and hearing, dining and the like. Sofa assemblies may include, but are not limited to, love sofas, majeans, teapoy, corner tables, side tables, furniture decorations placed on these furniture, and the like; a television set may include, but is not limited to, a television cabinet, etc.; the table assembly may include, but is not limited to, tables, dining chairs, and the like. The furniture in the bedroom can be divided into three preset furniture combinations such as a bed, a television and a wardrobe. Bed combinations may include, but are not limited to, twin beds, bedside tables, ornaments, and the like; the television combination can include but is not limited to a television, a television cabinet, a decoration and the like; the wardrobe combination comprises a wardrobe, furniture in the wardrobe and the like. It is understood that the preset furniture combination may also comprise only one piece of furniture, such as a sideboard, a cupboard, a greenery, a mural, etc.
When determining the target placement position of the preset furniture combination in the target room, for the vector plane user-type diagram including the target room, candidate positions where the preset furniture combination can be placed may be determined first, and then the most suitable target placement position may be selected from the candidate positions. The candidate position of the preset furniture combination can be a candidate position of a certain point on the preset furniture combination, and can also be a candidate position area occupied by the whole preset furniture combination. The target placing position of the preset furniture combination is the position which is finally selected from the candidate positions and is most suitable for placing the preset furniture combination, and when the preset furniture combination is placed at the target placing position, the preset furniture combination can be close to a wall to the greatest extent and can not block indoor facilities such as windows and doors except the wall.
In an alternative implementation of the present disclosure, for convenience of calculation, the candidate position may be a candidate position of a center point of a region of the preset furniture combination. The central point of the area can be the position of the center of the preset furniture combination to be placed. In some embodiments, the region center point may be the center point of a circumscribed rectangular region surrounding each furniture in the preset combination of furniture. The candidate position of the area center point may be any position in the target room, or may be a position in a partial area divided in advance. For example, for a guest restaurant, a living room area and a restaurant area may be pre-divided, the candidate position of the area center point of the sofa combination is selected in the guest area, and the candidate position of the area center point of the table combination is selected in the restaurant area, which may be specifically set according to actual needs, and is not limited herein.
The walls in the target room may be the vector plane floor plan after the portion of the room outline where the doors and windows are located has been removed. Each wall in the target room has a corresponding support area. The disclosed embodiments divide the ground in the target room for walls, doors, windows, etc. such that the walls, doors, windows, etc. all correspond to a portion of the support area of the ground inside the target room. The support area of the wall of the target room is the area within and near the wall of the target room, which can be determined by the closest projection point of the point within the target room on the wall. The support area of a wall in the target room comprises the area formed by the points of the closest projection point in the target room on the wall, i.e. the closest projection point of all points in the support area of a wall is on the wall, and all points of the closest projection point on the wall constitute the support area of the wall.
The closest projection point of the point in the target room on the wall can be obtained by projecting the point in the target room on the surrounding wall in a vector plane floor-type graph, and the point with the closest projection distance is the closest projection point.
The support areas for the various walls within the target room may be predetermined according to the methods described above.
When the furniture layout is carried out, aiming at the vector plane user-type graph comprising the target room, the furniture combination can be preset to be placed at the candidate position in a mode that the area center point of the preset furniture combination is arranged at the current candidate position. After placing the preset furniture combination at the candidate position, the fitness between the preset furniture combination and the candidate position can be determined through the supporting area of the inner wall of the target room. The fitness may be understood as characterizing how well a preset furniture combination is placed at the candidate position. The selection standard of the target placement position in the embodiment of the disclosure is to place the preset furniture combination close to the wall in a maximally limited manner without shielding facilities in a room such as a door and a window. Thus, since the support area of a wall is determined by whether the closest projected point of a point inside the target room is on the wall, the fitness may also be understood as a composite indicator characterizing the extent to which the pre-set furniture combination, when in a candidate position, obscures the in-room facilities such as doors, windows, etc. and approaches the wall. A higher fitness indicates that the candidate location is closer to the selection criterion, i.e. the preset furniture combination is placed at the candidate location closer to the wall without obstructing the facilities in the room, such as doors, windows, etc.
In this embodiment, after the preset furniture combination is placed at the candidate position, the wall where the preset furniture combination is placed close to may be a wall with the largest intersection between the corresponding support area and the area where the preset furniture combination is located, that is, the wall with the largest intersection may be taken as the wall where the preset furniture combination is placed close to by determining the intersection between the support area of each wall in the target room and the area where the preset furniture combination is located.
After determining the fitness corresponding to the preset furniture combination according to the plurality of candidate positions, a target placing position may be determined according to the fitness, so that the preset furniture combination is placed at the target placing position in the finally determined furniture layout scheme. The most reasonable target placement position is that the preset furniture combination is enabled to lean against the wall as much as possible, and the preset furniture combination is placed at the target placement position so as not to shield facilities such as doors and windows in a target room and not to interfere with placement of other preset furniture combinations. In order to achieve the purpose, the embodiment of the disclosure selects the target placement position meeting the target from the multiple candidate positions by presetting the fitness between the area where the furniture combination is located and the candidate positions.
When the furniture layout is determined, a plurality of candidate positions of the preset furniture combination in a target room are determined, then when the preset furniture combination is placed at the candidate positions, the fitness between the preset furniture combination and the candidate positions is determined according to the support area of the preset furniture combination close to a placed wall, and the target placing position is selected from the candidate positions according to the fitness and is used for placing the preset furniture combination; the support area of the preset furniture combination close to the placed wall is an area close to the wall in the target room, and the support area comprises an area formed by points of the nearest projection point on the target wall. In this way, the degree of adaptability between the preset furniture combination and the candidate position can be determined through the support area of the wall determined by the closest projection point of the point on the ground in the target room on the wall, so that the target placing position which enables the preset furniture combination to be close to the wall to the maximum extent and does not block facilities such as windows and doors except the wall is selected from the plurality of candidate positions according to the degree of adaptability.
In an optional implementation manner of this embodiment, the seventh determining module includes:
a fifth determining submodule configured to determine an intersection between the support area and an area where the preset furniture combination is placed at the candidate position;
a sixth determining submodule configured to determine the fitness according to a ratio of the first area of the intersection to a second area of an area in which the preset furniture combination is located.
In an optional implementation manner of this embodiment, the eighth determining module includes:
a seventh determining sub-module configured to determine the candidate position corresponding to the maximum fitness as the target pose position.
In an optional implementation manner of this embodiment, the sixth determining module includes:
and the eighth determining submodule is configured to determine the area center point of the selectable placing area of the preset furniture combination as the candidate position.
In an optional implementation manner of this embodiment, when the preset furniture is combined into a plurality of combinations, the sixth determining module includes:
a ninth determining sub-module configured to determine a plurality of combinations of the plurality of preset furniture combinations at selectable positions in the target room;
a tenth determination submodule configured to remove a combination which makes at least two preset furniture combinations overlap from the plurality of combinations and determine the remaining combinations as candidate position combinations; the candidate position combination comprises candidate positions of a plurality of preset furniture combinations.
In an optional implementation manner of this embodiment, the ninth determining sub-module includes:
an eleventh determining sub-module configured to determine a plurality of combinations according to the relative positional relationship and the selectable positions of the plurality of preset furniture combinations in the target room when at least two of the plurality of preset furniture combinations have a relative positional relationship therebetween.
In an optional implementation manner of this embodiment, the method further includes:
a second moving module configured to move a door and/or window of a target room into the room from an original position within a planar floor plan including the target room such that the moved door and/or window extends a preset distance into the target room relative to a wall;
a ninth determination module configured to determine a nearest projection point of points within the target room;
a tenth determination module configured to determine an area formed by points at which the closest projection point is located on a wall in the target room as a support area for placing the preset furniture combination close to the wall.
In an optional implementation manner of this embodiment, the method further includes:
the second acquisition module is configured to acquire furniture information to be placed in a target room and a preset fixed matching mode;
and the second grouping module is configured to group and match the furniture according to the preset fixed matching mode and the furniture information to obtain a preset furniture combination.
The furniture layout determining apparatus in this embodiment corresponds to and is consistent with the furniture layout determining method in the embodiment shown in fig. 9 and the related embodiments, and specific details can be referred to the description of the furniture layout determining method in the embodiment shown in fig. 9 and the related embodiments, which is not limited herein.
Fig. 21 shows a block diagram of a furniture layout device according to an embodiment of the present disclosure, which may be implemented as part or all of an electronic device by software, hardware, or a combination of both. As shown in fig. 21, the furniture layout device includes:
an eleventh determining module 2101 configured to determine a target pose location of a preset furniture combination within a planar floor plan comprising a target room; wherein, the target placing position is determined by any furniture layout determining device;
a third obtaining module 2102 configured to obtain a furniture layout display diagram with preset furniture combinations placed at the target placement positions according to the planar floor plan and the target placement positions;
an output module 2103 configured to output a furniture layout presentation.
In this embodiment, the furniture layout method may be executed at a server side of the furniture layout system, and the furniture layout system may perform furniture layout for a sample house to be soft-decorated.
For details of determining the target placement position, reference may be made to the description of the furniture layout determining device in the embodiment and the related embodiment shown in fig. 19 and the embodiment and the related embodiment shown in fig. 20, and details are not repeated here.
After the target placing position of the preset furniture combination is determined, a furniture layout display diagram with the corresponding preset furniture combination placed at the target placing position in the target room can be obtained through a plane household type diagram comprising the target room and a graph corresponding to the preset furniture combination, and the furniture layout display diagram is output to a client of a user so as to be displayed to the user. The furniture layout display diagram may be obtained by setting a graphic of a preset furniture combination at a target placement position on the basis of a planar household diagram including a target room, or may be a furniture layout display diagram formed after placing a graphic of a preset furniture combination having a three-dimensional effect at a corresponding target placement position in a three-dimensional household diagram including a target room, and may be specifically set according to actual needs, without limitation. By the aid of the method, furniture to be placed in the target room can be automatically placed at a proper position according to requirements of a user, the placed effect schematic diagram is displayed to the user finally, the user can intuitively judge whether the furniture layout mode meets the requirements of the user according to the effect display diagram, in the furniture layout process, the user only needs to provide a plane user-type diagram comprising the target room and furniture information needing to be placed in the target room, and the furniture layout system can automatically generate a furniture layout scheme for the user to refer to.
Fig. 22 shows a block diagram of a furniture layout apparatus according to another embodiment of the present disclosure, which may be implemented as part or all of an electronic device by software, hardware, or a combination of both. As shown in fig. 22, the furniture layout device includes:
a receiving module 2201 configured to receive a planar floor plan including a target room and furniture information from a client; the furniture information comprises furniture to be placed in a target room and size information of the furniture;
a third grouping module 2202 configured to group and arrange the furniture according to a preset fixed arrangement manner and size information of the furniture, and obtain at least one preset furniture combination;
a twelfth determination module 2203 configured to determine a target placement position of the preset furniture combination within the planar floor plan including the target room;
a fourth obtaining module 2204, configured to obtain a furniture layout display diagram with preset furniture combinations placed at the target placement positions according to the planar floor plan and the target placement positions;
a returning module 2205 configured to return the furniture layout display diagram to the client.
In this embodiment, the furniture layout device may operate at a server side of the furniture layout system, and the furniture layout system may perform furniture layout for a sample house to be soft-decorated.
The user can upload or generate the empty house type vector plane graph of the furniture to be placed through an interface provided by the furniture layout system on the client. The null house type vector plan may be a plan view of a target room including a presentation of furniture. The vector plane house type graph can comprise information of a room outline, a door, a window and the like of each room, the room outline is represented by a polygon formed by end-to-end points, the door and the window are formed by four end-to-end points, and the walls, the doors and the windows are similar in display form in the vector plane house type graph and are formed by points and lines. Wherein the room outline corresponds to the wall of the room, and the door and the window can be arranged according to the wall.
The user may also provide furniture information placed in the target room through an interface provided by the furniture layout system at the client. The furniture information may include, but is not limited to, furniture and furniture size information, such as furniture identification, type, size, etc. The client can upload the empty house type vector plane graph and the furniture information provided by the user to the server, and the server can firstly carry out grouping and collocation on the furniture to be placed in each target room according to some preset fixed collocation modes to obtain a preset furniture combination. For example, a couch, a tea table, etc. may be grouped together in a dining room, a television cabinet, etc. may be grouped together in a table, and a dining chair. In addition, the preset furniture combination can be obtained according to the final matching of the relative position, the distance and the like between the appointed furniture in the preset fixed matching mode. Through the method, the preset furniture combination can be obtained according to the preset fixed matching mode, and then the target placing position can be determined by taking the preset furniture combination as a unit, so that the furniture layout efficiency can be improved, and the furniture layout rationality can be improved.
The preset fixing and matching manner may include, but is not limited to, a plurality of pieces of furniture to be fixed and matched together for placement, relative positions between the pieces of furniture, and intervals between the pieces of furniture. For example, the sofa and the tea table need to be collocated and placed in the same area. The preset fixed collocation manner may be specified by a user, or preset in the furniture layout system, and may be specifically determined according to an actual situation, which is not limited herein.
After the preset furniture combination is determined, the target placing position of each preset furniture combination in the target room can be determined according to the planar floor plan provided by the user.
After the target placing position of the preset furniture combination is determined, a furniture layout display diagram with the corresponding preset furniture combination placed at the target placing position in the target room can be obtained through a plane household type diagram comprising the target room and a graph corresponding to the preset furniture combination, and the furniture layout display diagram is output to a client of a user so as to be displayed to the user. The furniture layout display diagram may be obtained by setting a graphic of a preset furniture combination at a target placement position on the basis of a planar house-type diagram including a target room, or may be a furniture layout display diagram formed after placing a graphic of a preset furniture combination having a three-dimensional effect at a corresponding target placement position in a three-dimensional house-type diagram including a target room, and may be specifically set according to actual needs, which is not limited herein. By the aid of the method, furniture to be placed in the target room can be automatically placed at a proper position according to requirements of a user, the placed effect schematic diagram is displayed to the user finally, the user can visually judge whether the furniture layout mode meets the requirements of the user according to the effect display diagram, in the furniture layout process, the user only needs to provide an empty house type plan diagram of the target room and furniture information needing to be placed in the target room, and the furniture layout system can automatically generate a furniture layout scheme for the user to refer to.
In an optional implementation manner of this embodiment, the twelfth determining module includes:
a twelfth determining submodule configured to determine the target placement position using any of the furniture layout determining apparatuses described above.
The furniture layout device in this embodiment corresponds to the furniture layout method in the embodiment shown in fig. 15 and the related embodiment, and specific details can be referred to the description of the furniture layout method in the embodiment shown in fig. 15 and the related embodiment, which is not limited herein.
Fig. 23 is a schematic structural diagram of an electronic device suitable for implementing a furniture layout determination method and/or a furniture layout method according to an embodiment of the present disclosure.
As shown in fig. 23, the electronic device 2300 includes a Central Processing Unit (CPU)2301, which can execute various processes in the embodiments of the above-described method of the present disclosure according to a program stored in a Read Only Memory (ROM)2302 or a program loaded from a storage section 2308 into a Random Access Memory (RAM) 2303. In the RAM2303, various programs and data necessary for the operation of the electronic apparatus 2300 are also stored. The CPU2301, ROM2302, and RAM2303 are connected to each other through a bus 2304. An input/output (I/O) interface 2305 is also connected to bus 2304.
The following components are connected to the I/O interface 2305: an input portion 2306 including a keyboard, a mouse, and the like; an output portion 2307 including a display device such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and a speaker; a storage portion 2308 including a hard disk and the like; and a communication section 2309 including a network interface card such as a LAN card, a modem, or the like. The communication section 2309 performs communication processing via a network such as the internet. The driver 2310 is also connected to the I/O interface 2305 as needed. A removable medium 2311 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 2310 as necessary, so that a computer program read out therefrom is mounted in the storage section 2308 as necessary.
In particular, according to embodiments of the present disclosure, the methods in the embodiments above with reference to the present disclosure may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a medium readable thereby, the computer program comprising program code for performing the methods of the embodiments of the present disclosure. In such an embodiment, the computer program may be downloaded and installed from a network via the communication section 2309, and/or installed from the removable medium 2311.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowcharts or block diagrams may represent a module, a program segment, or a portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units or modules described in the embodiments of the present disclosure may be implemented by software or hardware. The units or modules described may also be provided in a processor, and the names of the units or modules do not in some cases constitute a limitation of the units or modules themselves.
As another aspect, the present disclosure also provides a computer-readable storage medium, which may be the computer-readable storage medium included in the apparatuses of the above embodiments; or it may be a separate computer readable storage medium not incorporated into the device. The computer readable storage medium stores one or more programs for use by one or more processors in performing the methods described in the present disclosure.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is possible without departing from the inventive concept. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.

Claims (38)

1. A furniture layout determination method, comprising:
determining a plurality of candidate positions of a preset furniture combination to be placed in a target room;
when the preset furniture combination is placed at the candidate position, determining the intersection of a support area of the preset furniture combination close to a placed wall and an area where the preset furniture combination is located; wherein the support area is an area close to the wall in the target room, and the nearest projection points of the points in the support area are all located on the wall;
and determining the target placing position of the preset furniture combination from the plurality of candidate positions according to the intersection.
2. The method of claim 1, wherein determining a plurality of candidate locations of a preset combination of furniture to be placed in the target room comprises:
and determining the area center point of the selectable placing area of the preset furniture combination as the candidate position.
3. The method of claim 1 or 2, wherein determining a plurality of candidate locations of the preset furniture combination to be placed in the target room when the preset furniture combination is plural comprises:
determining a plurality of combinations formed by selectable positions of a plurality of preset furniture combinations in a target room;
removing a combination which enables at least two preset furniture combinations to be placed in an overlapping mode from the plurality of combinations, and determining the remaining combinations as candidate position combinations; wherein the candidate position combination comprises respective candidate positions of a plurality of preset furniture combinations.
4. The method of claim 3, wherein determining a plurality of combinations of selectable positions of a plurality of said preset furniture combinations in the target room comprises:
and when at least two of the preset furniture combinations have relative position relations, determining the multiple combinations according to the relative position relations and the selectable positions of the preset furniture combinations in the target room.
5. The method of any of claims 1-2, 4, further comprising:
moving a door and/or window of the target room into the room from an original position in a plane floor plan comprising the target room, so that the moved door and/or window extends a preset distance into the target room relative to a wall;
determining a nearest projection point of points within the target room;
and determining an area formed by points of which the nearest projection points are positioned on the wall in the target room as a support area of the corresponding wall.
6. The method of any of claims 1-2, 4, wherein determining the target pose location of the preset combination of furniture from the plurality of candidate locations based on the intersection comprises:
and determining the target placement position from the candidate positions according to the ratio of the first area of the intersection to the second area of the area where the preset furniture combination is located.
7. The method of any of claims 1-2, 4, further comprising:
acquiring furniture information to be placed in the target room and presetting a fixed matching mode;
and according to a preset fixed matching mode and the furniture information, grouping and matching furniture to obtain the preset furniture combination.
8. A furniture layout determination method, comprising:
determining a plurality of candidate positions of a preset furniture combination to be placed in a target room;
when the preset furniture combination is placed at the candidate position, determining the fitness between the preset furniture combination and the candidate position according to a support area of the preset furniture combination close to a placed wall; the fitness and the intersection between the area where the preset furniture combination is placed at the candidate position and the support area are positively correlated, the support area is an area close to the wall in the target room, and the nearest projection points of the points in the support area are located on the wall;
and determining the target placing position of the preset furniture combination from a plurality of candidate positions according to the fitness.
9. The method of claim 8, wherein determining a fitness between the preset furniture combination and the candidate location based on a support area of the preset furniture combination proximate to a lying wall comprises:
determining the intersection between the support area and the area where the preset furniture combination is placed at the candidate position;
and determining the fitness according to the ratio of the first area of the intersection to the second area of the area where the preset furniture combination is located.
10. The method of claim 8 or 9, wherein determining the target pose location of the preset furniture combination from the plurality of candidate locations according to the fitness comprises:
determining the candidate position corresponding to the maximum fitness as the target placement position.
11. The method of claim 8 or 9, wherein determining a plurality of candidate locations of a preset combination of furniture to be placed in the target room comprises:
and determining the area center point of the selectable placing area of the preset furniture combination as the candidate position.
12. The method of claim 8 or 9, wherein determining a plurality of candidate locations of the preset furniture combination to be placed in the target room when the preset furniture combination is plural comprises:
determining a plurality of combinations formed by selectable positions of a plurality of preset furniture combinations in a target room;
removing a combination which enables at least two preset furniture combinations to be placed in an overlapping mode from the plurality of combinations, and determining the remaining combinations as candidate position combinations; wherein the candidate position combination comprises respective candidate positions of a plurality of preset furniture combinations.
13. The method of claim 12, wherein determining a plurality of combinations of selectable positions of a plurality of preset furniture combinations in a target room comprises:
and when at least two of the preset furniture combinations have relative position relations, determining the multiple combinations according to the relative position relations and the selectable positions of the preset furniture combinations in the target room.
14. The method of any one of claims 8-9, 13, further comprising:
moving a door and/or window of the target room into the room from an original position in a plane floor plan comprising the target room, so that the moved door and/or window extends a preset distance into the target room relative to a wall;
determining a nearest projection point of points within the target room;
and determining an area formed by the points of which the nearest projection points are positioned on the wall in the target room as a support area for placing the preset furniture combination close to the wall.
15. The method of any one of claims 8-9, 13, further comprising:
acquiring furniture information to be placed in the target room and presetting a fixed matching mode;
and according to a preset fixed matching mode and the furniture information, grouping and matching furniture to obtain the preset furniture combination.
16. A furniture layout method, comprising:
determining a target placing position of a preset furniture combination in a planar household graph comprising a target room; wherein the target pose location is determined using the method of any one of claims 1-15;
obtaining a furniture layout display diagram in which the preset furniture combination is placed at the target placing position according to the plane house type diagram and the target placing position;
and outputting the furniture layout display diagram.
17. A furniture layout method, comprising:
receiving a planar floor plan including a target room and furniture information from a client; wherein the furniture information includes furniture to be placed in the target room and size information of the furniture;
grouping and matching the furniture according to the preset fixed matching mode of the furniture and the size information to obtain at least one preset furniture combination;
determining a target placement location of the preset furniture combination within a planar floor plan comprising the target room;
obtaining a furniture layout display diagram in which the preset furniture combination is placed at the target placing position according to the plane house type diagram and the target placing position;
and returning the furniture layout display diagram to the client.
18. The method of claim 17, wherein determining a target pose location of the preset furniture combination within a planar floor plan including the target room comprises:
determining the target pose location using the method of any one of claims 1-15.
19. A furniture layout determining apparatus, comprising:
a first determination module configured to determine a plurality of candidate positions of a preset furniture combination to be placed in a target room;
the second determining module is configured to determine an intersection of a supporting area of the preset furniture combination close to a placed wall and an area where the preset furniture combination is located when the preset furniture combination is placed at the candidate position; wherein the support area is an area close to the wall in the target room, and the nearest projection points of the points in the support area are all located on the wall;
a third determination module configured to determine a target placement location of the preset furniture combination from a plurality of the candidate locations according to the intersection.
20. The apparatus of claim 19, wherein the first determining module comprises:
a position determination submodule configured to determine an area center point of a selectable put-out area of the preset furniture combination as the candidate position.
21. The apparatus according to claim 19 or 20, wherein when the preset furniture combination is plural, the first determining module comprises:
a first determining sub-module configured to determine a plurality of combinations of selectable positions of a plurality of preset furniture combinations in a target room;
a second determination sub-module configured to remove a combination that causes at least two of the preset furniture combinations to be laid out in an overlapping manner from the plurality of combinations and determine the remaining combinations as candidate position combinations; wherein the candidate position combination comprises respective candidate positions of a plurality of preset furniture combinations.
22. The apparatus of claim 21, wherein the first determining submodule comprises:
a third determining sub-module configured to determine the plurality of combinations according to the relative position relationship and the selectable positions of the plurality of preset furniture combinations in the target room when at least two of the plurality of preset furniture combinations have the relative position relationship therebetween.
23. The apparatus of any one of claims 19-20, 22, further comprising:
a first moving module configured to move a door and/or window on a wall of the target room from an original position into the room within a planar floor plan including the target room, such that the moved door and/or window extends a preset distance into the target room relative to the wall;
a fourth determination module configured to determine a nearest projection point of points within the target room;
a fifth determination module configured to determine an area formed by points at which a closest projection point is located on a wall within the target room as a support area of the corresponding wall.
24. The apparatus according to any of claims 19-20, 22, wherein the third determining module comprises:
a fourth determining submodule configured to determine the target placement position from the candidate positions according to a ratio of a first area of the intersection to a second area of an area where the preset furniture combination is located.
25. The apparatus of any one of claims 19-20, 22, further comprising:
the first acquisition module is configured to acquire furniture information to be placed in the target room and a preset fixed matching mode;
and the first grouping module is configured to group and match the furniture according to a preset fixed matching mode and the furniture information to obtain the preset furniture combination.
26. A furniture layout determining apparatus, comprising:
a sixth determining module configured to determine a plurality of candidate positions of a preset furniture combination to be placed in the target room;
a seventh determining module configured to determine, when the preset furniture combination is placed at the candidate location, a fitness between the preset furniture combination and the candidate location according to a support area of the preset furniture combination near a placed wall; the fitness and the intersection between the area where the preset furniture combination is placed at the candidate position and the support area are positively correlated, the support area is an area close to the wall in the target room, and the nearest projection points of the points in the support area are located on the wall;
an eighth determining module configured to determine a target placement position of the preset furniture combination from a plurality of the candidate positions according to the fitness.
27. The apparatus of claim 26, wherein the seventh determining module comprises:
a fifth determination submodule configured to determine the intersection between the support area and the area where the preset furniture combination is placed in the candidate position;
a sixth determining submodule configured to determine the fitness according to a ratio of the first area of the intersection to a second area of an area in which the preset furniture combination is located.
28. The apparatus according to claim 26 or 27, wherein the eighth determining module comprises:
a seventh determining sub-module configured to determine the candidate position corresponding to the maximum fitness as the target pose position.
29. The apparatus according to claim 26 or 27, wherein the sixth determining module comprises:
an eighth determining submodule configured to determine an area center point of a selectable putting area of the preset furniture combination as the candidate position.
30. The apparatus according to claim 26 or 27, wherein when the preset furniture combination is plural, the sixth determining module comprises:
a ninth determining sub-module configured to determine a plurality of combinations of selectable positions of the preset furniture combinations in the target room;
a tenth determination submodule configured to remove a combination which makes at least two of the preset furniture combinations overlap from the plurality of combinations, and determine the remaining combinations as candidate position combinations; wherein the candidate position combination comprises respective candidate positions of a plurality of preset furniture combinations.
31. The apparatus of claim 30, wherein the ninth determination submodule comprises:
an eleventh determining sub-module configured to determine the plurality of combinations according to the relative positional relationship and selectable positions of the plurality of preset furniture combinations in the target room when at least two of the plurality of preset furniture combinations have a relative positional relationship therebetween.
32. The apparatus of any one of claims 26-27, 31, further comprising:
a second moving module configured to move a door and/or window of the target room into the room from an original position within a planar floor plan including the target room, such that the moved door and/or window extends a preset distance into the target room relative to a wall;
a ninth determination module configured to determine a nearest projection point of points within the target room;
a tenth determination module configured to determine an area formed by points of which the closest projection points are located on a wall in the target room as a support area for placing the preset furniture combination close to the wall.
33. The apparatus of any one of claims 26-27, 31, further comprising:
the second acquisition module is configured to acquire furniture information to be placed in the target room and a preset fixed matching mode;
and the second grouping module is configured to group and match the furniture according to a preset fixed matching mode and the furniture information to obtain the preset furniture combination.
34. A furniture arrangement, comprising:
an eleventh determining module configured to determine a target placement location of a preset furniture combination within a planar floor plan comprising a target room; wherein the target pose location is determined using the apparatus of any one of claims 19-33;
a third obtaining module, configured to obtain a furniture layout display diagram in which the preset furniture combination is placed at the target placement position according to the planar house type diagram and the target placement position;
an output module configured to output the furniture layout display.
35. A furniture arrangement, comprising:
a receiving module configured to receive a floor plan including a target room and furniture information from a client; wherein the furniture information includes furniture to be placed in the target room and size information of the furniture;
the third grouping module is configured to group and match the furniture according to a preset fixed matching mode of the furniture and the size information, and obtain at least one preset furniture combination;
a twelfth determination module configured to determine a target pose location of the preset furniture combination within a planar floor plan including the target room;
a fourth obtaining module, configured to obtain a furniture layout display diagram in which the preset furniture combination is placed at the target placement position according to the planar house type diagram and the target placement position;
a return module configured to return the furniture layout display diagram to the client.
36. The apparatus of claim 35, wherein the twelfth determining module comprises:
a twelfth determination sub-module configured to determine the target pose location using the apparatus of any one of claims 19-33.
37. An electronic device comprising a memory and a processor; wherein the content of the first and second substances,
the memory is to store one or more computer instructions, wherein the one or more computer instructions are to be executed by the processor to implement the method of any one of claims 1-18.
38. A computer-readable storage medium having computer instructions stored thereon, wherein the computer instructions, when executed by a processor, implement the method of any one of claims 1-18.
CN201911262027.7A 2019-12-10 2019-12-10 Furniture layout determining method and device, electronic equipment and storage medium Pending CN112948904A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911262027.7A CN112948904A (en) 2019-12-10 2019-12-10 Furniture layout determining method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911262027.7A CN112948904A (en) 2019-12-10 2019-12-10 Furniture layout determining method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112948904A true CN112948904A (en) 2021-06-11

Family

ID=76226069

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911262027.7A Pending CN112948904A (en) 2019-12-10 2019-12-10 Furniture layout determining method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112948904A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110191706A1 (en) * 2004-08-17 2011-08-04 Dirtt Environmental Solutions Ltd. Automatically creating and modifying furniture layouts in design software
CN103778538A (en) * 2012-10-17 2014-05-07 李兴斌 Furniture simulation layout method and furniture simulation layout system
US20170076016A1 (en) * 2015-09-10 2017-03-16 Maysam MIR AHMADI Automated layout generation
CN107240151A (en) * 2017-07-05 2017-10-10 常州赞云软件科技有限公司 A kind of scene layout based on parent-child constraint preserves and reproducting method
CN107368911A (en) * 2017-06-11 2017-11-21 杭州巨梦科技有限公司 A kind of furniture layout method based on placement regulation
US20180085927A1 (en) * 2016-09-28 2018-03-29 International Business Machines Corporation Optimizing a layout of objects in a space
CN110442952A (en) * 2019-07-30 2019-11-12 佛山市小云科技有限公司 A kind of method of rule Virtual Space furniture intelligent distribution

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110191706A1 (en) * 2004-08-17 2011-08-04 Dirtt Environmental Solutions Ltd. Automatically creating and modifying furniture layouts in design software
CN103778538A (en) * 2012-10-17 2014-05-07 李兴斌 Furniture simulation layout method and furniture simulation layout system
US20170076016A1 (en) * 2015-09-10 2017-03-16 Maysam MIR AHMADI Automated layout generation
US20180085927A1 (en) * 2016-09-28 2018-03-29 International Business Machines Corporation Optimizing a layout of objects in a space
CN107368911A (en) * 2017-06-11 2017-11-21 杭州巨梦科技有限公司 A kind of furniture layout method based on placement regulation
CN107240151A (en) * 2017-07-05 2017-10-10 常州赞云软件科技有限公司 A kind of scene layout based on parent-child constraint preserves and reproducting method
CN110442952A (en) * 2019-07-30 2019-11-12 佛山市小云科技有限公司 A kind of method of rule Virtual Space furniture intelligent distribution

Similar Documents

Publication Publication Date Title
US20230153475A1 (en) Method for replacing 3d objects in 2d environment
AU2020315029B2 (en) Artificial intelligence systems and methods for interior design
CN110710852B (en) Meal delivery method, system, medium and intelligent device based on meal delivery robot
US10467810B1 (en) Systems and methods for navigating a user in a virtual reality model
CN106096153A (en) Indoor decoration outdoor scene is experienced scene and is provided method and system
CN112001997B (en) Furniture display method and device
KR20150076119A (en) Diminished reality
US10430525B2 (en) Reconfigurable spaces
CN109670262A (en) A kind of area of computer aided domestic layout optimization method and system
CN110569563B (en) Method and system for personalized soft package layout
US20140278274A1 (en) Automatic optimization of scene configuration
CN109657387B (en) Household model positioning and placing method based on mixed reality scene
CN113609557B (en) Home decoration layout method, apparatus and storage medium
US20190304006A1 (en) System and method for web-based map generation
CN112948904A (en) Furniture layout determining method and device, electronic equipment and storage medium
JP7287509B2 (en) Method and apparatus for displaying item information in current space and media
CN110750825B (en) Indoor household arrangement method and device, electronic equipment and storage medium
US20170364994A1 (en) Retail Space Management
CA3132551A1 (en) Systems and methods of predicting architectural materials within a space
CN115291714A (en) First device request method and device, storage medium and electronic device
KR102492699B1 (en) Apparatus and method for recommending object on adjacent trunk line based on data structure of trunk line connection generated from big data of interior service
CN108804534A (en) A kind of method and system of information recommendation
CN114463083A (en) Household article recommendation method, device, equipment and storage medium
KR102129256B1 (en) Real estate searching method and device
KR20220054230A (en) Apparatus and method for monitoring eating

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