CN110136244A - Three-dimensional house type model generating method, device, equipment and storage medium - Google Patents
Three-dimensional house type model generating method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN110136244A CN110136244A CN201910292776.8A CN201910292776A CN110136244A CN 110136244 A CN110136244 A CN 110136244A CN 201910292776 A CN201910292776 A CN 201910292776A CN 110136244 A CN110136244 A CN 110136244A
- Authority
- CN
- China
- Prior art keywords
- house type
- dimensional
- wall
- type model
- floor plan
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 67
- 230000000717 retained effect Effects 0.000 claims abstract description 10
- 238000011084 recovery Methods 0.000 claims description 8
- 239000007787 solid Substances 0.000 claims description 7
- 238000006243 chemical reaction Methods 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 8
- 230000008569 process Effects 0.000 description 7
- 238000004891 communication Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 3
- 230000003321 amplification Effects 0.000 description 2
- 238000013528 artificial neural network Methods 0.000 description 2
- 230000005611 electricity Effects 0.000 description 2
- 238000003199 nucleic acid amplification method Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 238000005034 decoration Methods 0.000 description 1
- 238000013135 deep learning Methods 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000004744 fabric Substances 0.000 description 1
- 235000012054 meals Nutrition 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000009423 ventilation Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/08—Projecting images onto non-planar surfaces, e.g. geodetic screens
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T17/00—Three dimensional [3D] modelling, e.g. data description of 3D objects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T19/00—Manipulating 3D models or images for computer graphics
- G06T19/20—Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2219/00—Indexing scheme for manipulating 3D models or images for computer graphics
- G06T2219/012—Dimensioning, tolerancing
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Graphics (AREA)
- Software Systems (AREA)
- Architecture (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Geometry (AREA)
- Processing Or Creating Images (AREA)
Abstract
The present invention relates to image modeling technical field, a kind of three-dimensional house type model generating method, device, equipment and storage medium are provided, the described method comprises the following steps: when receiving two-dimentional floor plan, determining the house type component in the two-dimentional floor plan;Obtain the corresponding three-dimensional house type component of the house type component;The house type component is wiped, is retained the two-dimentional floor plan of wall, only to obtain the wall;According to the corresponding size marking information of the two dimension floor plan, the wall is stretched as three-dimensional wall;According to the three-dimensional wall and the three-dimensional house type component, three-dimensional house type model is generated.The present invention is by first identifying the house type component in two-dimentional floor plan, it will identify that the house type component erasing come again, to obtain wall, three-dimensional house type model is finally generated according to the corresponding three-dimensional wall of wall and the corresponding three-dimensional house type component of house type component, the conversion of two-dimentional floor plan to three-dimensional house type model is realized, the detailed understanding house type of client is facilitated.
Description
Technical field
The present invention relates to image modeling technical field more particularly to a kind of three-dimensional house type model generating methods, device, equipment
And computer readable storage medium.
Background technique
In real estate industry, client is not in the case where going to scene to check, it is desirable to when understanding house type, generally by pin
Personnel's two-dimentional house type drawing of granting is sold, or viewing design specialist uses mold in kind, the three-dimensional house type mould built by manpower
Type.The former is due to being in the plane, direct feel spatially cannot to be brought to client;The latter due to technical threshold height,
Output is small.In similar patent, such as 201710673386.6 users gradually determine group in house type by clicking in drawing
Part position, this mode still need manpower to participate in, hence it is evident that and it is intelligent not enough, and 201510156080.4 are to pass through tradition
Graphics process means, which handle photo, although saving manpower can not obtain accurate location, thus market it is universal with
Using.Therefore, it is badly in need of one kind at present and had not only saved expert's manpower, but also the method that can quick and precisely obtain house type threedimensional model, in turn
Spread to the pain spot demand that market solves client.
Summary of the invention
The main purpose of the present invention is to provide a kind of three-dimensional house type model generating method, device, equipment and computers can
Read storage medium, it is intended to it is more complicated to solve existing three-dimensional house type model foundation, and establishes slow-footed technical problem.
To achieve the above object, the present invention provides a kind of three-dimensional house type model generating method, and the three-dimensional house type model is raw
At method the following steps are included:
When receiving two-dimentional floor plan, the house type component in the two-dimentional floor plan is determined;
Obtain the corresponding three-dimensional house type component of the house type component;
The house type component is wiped, is retained the two-dimentional floor plan of wall, only to obtain the wall;
According to the corresponding size marking information of the two dimension floor plan, the wall is stretched as three-dimensional wall;
According to the three-dimensional wall and the three-dimensional house type component, three-dimensional house type model is generated.
Optionally, described the step of obtaining the house type component corresponding three-dimensional house type component, includes:
The house type component is identified, determines the corresponding identification information of the house type component;
Three-dimensional house type component corresponding with the identification information is obtained from default three-dimensional house type Component Gallery.
Optionally, described according to the three-dimensional wall and the three-dimensional house type component, the step of generating three-dimensional house type model
Include:
It carries out frame based on the three-dimensional wall to build, to generate initial three-dimensional house type model;
The corresponding position and direction of the house type component are obtained based on the two-dimentional floor plan;
Based on the three-dimensional house type component and the position and direction, the three-dimensional house type component is added to described first
Begin to generate three-dimensional house type model in three-dimensional house type model.
Optionally, described according to the corresponding size marking information of the two dimension floor plan, the wall is stretched as three-dimensional
The step of wall includes:
It identifies the wall, determines the window ID in the wall;
According to the window ID, corresponding the window's position is determined;
According to the corresponding size marking information of the two dimension floor plan, the wall is stretched as three-dimensional wall;
Window is opened up on corresponding three-dimensional wall according to described the window's position based on the three-dimensional wall.
Optionally, the wall includes multiple, described according to the corresponding size marking information of the two dimension floor plan, by institute
Stating the step of wall is stretched as three-dimensional wall includes:
The wall is successively traversed, and determines the wall generic currently traversed, the generic includes load bearing wall
And non-load bearing wall;
If it is determined that the wall currently traversed is load bearing wall, then according to the corresponding size marking information of the two-dimentional floor plan,
The load bearing wall is stretched as three dimensional solid wall;
If it is determined that the wall currently traversed is non-load bearing wall, then believed according to the corresponding size marking of the two dimension floor plan
Breath, is stretched as three-dimensional hollow wall for the non-load bearing wall.
Optionally, the three-dimensional house type model generating method further include:
When receiving the removal instruction based on the non-load bearing wall, instruct corresponding non-load bearing wall in institute the removal
It states and is removed in three-dimensional house type model, obtain modified three-dimensional house type model;
When receiving the recovery instruction based on the modified three-dimensional house type model, the recovery is instructed corresponding
Non-load bearing wall is restored to original position.
Optionally, the three-dimensional house type model generating method further include:
The three-dimensional house type model is shown in corresponding display interface;
It when receiving the scaling instruction based on the display interface, is instructed according to the scaling, to the three-dimensional house type
Model carries out scaling.
In addition, to achieve the above object, the present invention also provides a kind of three-dimensional house type model generating means, the three-dimensional house type
Model generating means include:
Determining module, for when receiving two-dimentional floor plan, determining the house type component in the two-dimentional floor plan;
Module is obtained, for obtaining the corresponding three-dimensional house type component of the house type component;
Module is wiped, for wiping the house type component, is only retained the two-dimentional floor plan of wall, described in obtaining
Wall;
Stretching module, for according to the corresponding size marking information of the two dimension floor plan, the wall to be stretched as three
Tie up wall;
Generation module, for generating three-dimensional house type model according to the three-dimensional wall and the three-dimensional house type component.
In addition, to achieve the above object, the present invention also provides a kind of three-dimensional house type model generation device, the three-dimensional house type
Model generation device includes processor, memory and is stored in can be executed on the memory and by the processor three
House type model generator is tieed up, wherein realizing when the three-dimensional house type model generator is executed by the processor as above-mentioned
Three-dimensional house type model generating method the step of.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium
Three-dimensional house type model generator is stored on storage medium, wherein the three-dimensional house type model generator is executed by processor
When, it realizes such as the step of above-mentioned three-dimensional house type model generating method.
The present invention provides a kind of three-dimensional house type model generating method and determines the two dimension when receiving two-dimentional floor plan
House type component in floor plan;Obtain the corresponding three-dimensional house type component of the house type component;The house type component is wiped, is obtained
Retain the two-dimentional floor plan of wall, only to obtain the wall;It, will according to the corresponding size marking information of the two dimension floor plan
The wall is stretched as three-dimensional wall;According to the three-dimensional wall and the three-dimensional house type component, three-dimensional house type model is generated.This
Invention passes through the house type component first identified in two-dimentional floor plan, and obtain correspondence since wall does not have apparent identification feature
Three-dimensional house type component, then will identify that the house type component erasing come, to obtain wall, to stretch wall, obtain three-dimensional wall
Body finally generates three-dimensional house type model according to three-dimensional wall and three-dimensional house type component, realizes two-dimentional floor plan to three-dimensional house type
The conversion of model facilitates the detailed understanding house type of client.
Detailed description of the invention
Fig. 1 is the hardware structural diagram of three-dimensional house type model generation device involved in the embodiment of the present invention;
Fig. 2 is the flow diagram of the three-dimensional house type model generating method first embodiment of the present invention;
Fig. 3 is the flow diagram of the three-dimensional house type model generating method second embodiment of the present invention;
Fig. 4 is the flow diagram of the three-dimensional house type model generating method 3rd embodiment of the present invention;
Fig. 5 is the flow diagram of the three-dimensional house type model generating method fourth embodiment of the present invention;
Fig. 6 is the functional block diagram of the three-dimensional house type model generating means first embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present embodiments relate to three-dimensional house type model generating method be mainly used in three-dimensional house type model generation device,
The three-dimensional house type model generation device can be the equipment that PC, portable computer, mobile terminal etc. have display and processing function.
Referring to Fig.1, Fig. 1 is that the hardware configuration of three-dimensional house type model generation device involved in the embodiment of the present invention shows
It is intended to.In the embodiment of the present invention, three-dimensional house type model generation device may include processor 1001 (such as CPU), communication bus
1002, user interface 1003, network interface 1004, memory 1005.Wherein, communication bus 1002 for realizing these components it
Between connection communication;User interface 1003 may include display screen (Display), input unit such as keyboard (Keyboard);
Network interface 1004 optionally may include standard wireline interface and wireless interface (such as WI-FI interface);Memory 1005 can be with
It is high speed RAM memory, is also possible to stable memory (non-volatile memory), such as magnetic disk storage, stores
Device 1005 optionally can also be the storage device independently of aforementioned processor 1001.
Three-dimensional house type model is generated it will be understood by those skilled in the art that hardware configuration shown in Fig. 1 is not constituted
The restriction of equipment may include perhaps combining certain components or different component cloth than illustrating more or fewer components
It sets.
With continued reference to Fig. 1, the memory 1005 in Fig. 1 as a kind of computer readable storage medium may include operation system
System, network communication module and three-dimensional house type model generator.
In Fig. 1, network communication module is mainly used for connecting server, carries out data communication with server;And processor
1001 can call the three-dimensional house type model generator stored in memory 1005, and execute provided in an embodiment of the present invention three
Tie up house type model generating method.
The embodiment of the invention provides a kind of three-dimensional house type model generating methods.
It is the flow diagram of the three-dimensional house type model generating method first embodiment of the present invention referring to Fig. 2, Fig. 2.
In the present embodiment, it is described three-dimensional house type model generating method the following steps are included:
Step S10 determines the house type component in the two-dimentional floor plan when receiving two-dimentional floor plan;
Step S20 obtains the corresponding three-dimensional house type component of the house type component;
The house type component is wiped, is retained the two-dimentional floor plan of wall, only to obtain the wall by step S30;
The wall is stretched as three-dimensional wall according to the corresponding size marking information of the two dimension floor plan by step S40
Body;
Step S50 generates three-dimensional house type model according to the three-dimensional wall and the three-dimensional house type component.
The present embodiment so passing through identification house type component, and takes side to identify since wall does not have apparent identification feature
The mode of side erasing, the house type component in two-dimentional floor plan is wiped, remaining part is wall, thus according to house type component
With the respective threedimensional model of wall, two-dimentional floor plan is generated into three-dimensional house type model.
Each step will be described in detail below:
Step S10 determines the house type component in the two-dimentional floor plan when receiving two-dimentional floor plan.
In the present embodiment, equipment, such as mobile phone is can be used in client, is scanned shooting to two-dimentional floor plan, or receive
The two-dimentional floor plan that another terminal transmission comes locates the two dimension floor plan when equipment receives two-dimentional floor plan in advance
Reason, wherein if the two dimension floor plan is the two-dimentional floor plan of scanning shoot, pretreatment includes background deletion and distortion correction
Deng, it is possible to understand that, band has powerful connections the two-dimentional floor plan of scanning shoot in most cases, and due to camera, or
It so that picture is generated distortion etc., these factors or can mostly will affect identification to two-dimentional floor plan less;If the two dimension family
Type figure is the two-dimentional floor plan that another terminal sends over, then pretreatment includes the finishing of resolution adjustment and picture size,
It should be understood that itself resolution ratio of different equipment is different, then the picture size of itself is also possible to not
The same, therefore need to pre-process two-dimentional floor plan, to obtain more clean two-dimentional floor plan, pretreated two dimension
Floor plan includes wall and house type component etc..
When equipment receives two-dimentional floor plan, it is based on neural network learning, house type group is obtained from the two dimension floor plan
Part, wherein house type component refers to the element in addition to wall and markup information, specifically includes sofa, TV, bed, dining table etc.
Soft dress.It should be understood that the dress firmly such as built-in wardrobe and lavatory also belongs to house type component, i.e. house type component includes hard dress and soft dress.
It should be noted that the house types component such as sofa, TV, bed and dining table, since its feature is obvious, it is possible in advance
Deep learning is carried out by neural network, and after study, can quickly determine the house type component in two-dimentional floor plan.
Step S20 obtains the corresponding three-dimensional house type component of the house type component.
In the present embodiment, since the classification and quantity of the house type component in two-dimentional floor plan are limited, therefore can be prior
Corresponding three-dimensional micromodule model is constructed, such as dining table is with rectangle icon representation, but actual dining table in two-dimentional floor plan
Beneath there are also table legs, so the dining table in two-dimentional floor plan can not need building meal in advance by simply stretching to obtain
The threedimensional model of table.
After determining the house type component in two-dimentional floor plan, the corresponding three-dimensional house type component of the house type component is obtained, specifically
, it identifies type belonging to current house type component, and obtain the corresponding threedimensional model of the type, such as identifies current house type group
Part is television set, then obtains the threedimensional model of television set.
Specifically, the step of obtaining the house type component corresponding three-dimensional house type component includes:
Step S21 identifies the house type component, determines the corresponding identification information of the house type component;
Step S22 obtains three-dimensional house type component corresponding with the identification information from default three-dimensional house type Component Gallery.
House type component in two-dimentional floor plan is identified, determines each corresponding identification information of house type component, such as
Sofa, bed, television set etc..According to the identification information of determining current house type component, obtained from default three-dimensional house type Component Gallery
Corresponding three-dimensional house type component, such as current house type component is sofa, then the three-dimensional of sofa is obtained according to this identification information of sofa
Model.
The house type component is wiped, is retained the two-dimentional floor plan of wall, only to obtain the wall by step S30.
In the type of the current house type component of determination, and after getting corresponding three-dimensional house type component, by the current house type group
Part is wiped in two-dimentional floor plan, is retained the two-dimentional floor plan of wall, only to directly acquire wall.Often identify one
House type component just wipes the house type component, and the house type component in two-dimentional floor plan is made to be in reduced state.When two-dimentional floor plan
In house type component be all wiped free of after, the two dimension floor plan i.e. only remaining wall.
To avoid different house type component coupled interferences, the problem for causing accuracy of identification not high, the present embodiment is identified using side
The mode of side erasing gradually rejects the house type component identified, and then improves accuracy of identification.
The wall is stretched as three-dimensional wall according to the corresponding size marking information of the two dimension floor plan by step S40
Body.
In the present embodiment, it is possible to understand that, include house type component and wall in two-dimentional floor plan, is wiped by house type component
Afterwards, only remaining wall in two-dimentional floor plan obtains initial three-dimensional house type model at this point, wall is stretched as three-dimensional wall, for
It is subsequent that three-dimensional micromodule is added in the corresponding position of initial three-dimensional house type model, wherein the height and width of stretching are by two dimension
The corresponding size marking information of floor plan determines.
Step S50 generates three-dimensional house type model according to the three-dimensional wall and the three-dimensional house type component.
In the present embodiment, according to the three-dimensional wall of stretching, and the three-dimensional house type component obtained, build three-dimensional house type mould
Type.
Specifically, step S50 includes:
Step S51 carries out frame based on the three-dimensional wall and builds, to generate initial three-dimensional house type model;
In the present embodiment, initial three-dimensional house type model is generated according to three-dimensional wall and builds three that is, based on three-dimensional wall
Tie up the frame of house type model.
Step S52 obtains the corresponding position and direction of the house type component based on the two-dimentional floor plan;
Obtain the corresponding position and direction of house type component based on two-dimentional floor plan, it is possible to understand that, to house type component into
During row identification, in addition to the corresponding type of identification house type component, and the corresponding three-dimensional house type component of the house type component is obtained
Except, while the position and direction of the house type component in two-dimentional floor plan are also recorded, to add by three-dimensional house type component
When adding in initial three-dimensional house type model, three-dimensional house type component can be accurately placed at correspondence according to the position and direction of record
Place.
Specifically, using the key point in the lower left corner as origin, establishing right angle seat based on the edge contour of two-dimentional floor plan
Mark system, using the corresponding size marking information of two-dimentional floor plan as size, respectively each house type component assigns a seat
Mark, the position of each house type component is determined by coordinate.
And the direction of house type component is then according to multiple model joint-detections as a result, corroborating each other to obtain house type component
Direction, specifically, such as television set, after having identified wall and television set, on the basis of four side of television set, respectively toward up and down
A pixel is taken, judges the ownership of each pixel, such as a certain pixel is wall, then it is assumed that the opposite direction of the direction is electricity
Depending on the placement direction of machine;Alternatively, through determining current house type component at a distance from other house type components of surrounding or wall, and root
According to house type component generic, the placement direction of the house type component is determined, when being placed in living room such as sofa, by determining electricity
Depending on the placement direction of machine, determine that sofa should be placed towards television set direction.
Step S53 is added the three-dimensional house type component based on the three-dimensional house type component and the position and direction
Into in the initial three-dimensional house type model, three-dimensional house type model is generated.
Based on three-dimensional house type component and corresponding position and direction, three-dimensional house type component is added in frame, thus
So that initial three-dimensional house type model is enriched, generates three-dimensional house type model.Herein, initial three-dimensional house type model is equivalent to blank
Room, and three-dimensional house type component is then equivalent to all kinds of furniture decorations, and all kinds of furniture devices are added in rough house, can be obtained one
A complete house house type.
The present embodiment provides a kind of three-dimensional house type model generating methods, i.e., when receiving two-dimentional floor plan, described in determination
House type component in two-dimentional floor plan;Obtain the corresponding three-dimensional house type component of the house type component;The house type component is wiped,
Retained the two-dimentional floor plan of wall, only to obtain the wall;According to the corresponding size marking letter of the two dimension floor plan
Breath, is stretched as three-dimensional wall for the wall;According to the three-dimensional wall and the three-dimensional house type component, three-dimensional house type mould is generated
Type.The present invention passes through the house type component first identified in two-dimentional floor plan, and obtain since wall does not have apparent identification feature
Corresponding three-dimensional house type component, then will identify that the house type component erasing come, to obtain wall, to stretch wall, obtain three
Wall is tieed up, three-dimensional house type model is finally generated according to three-dimensional wall and three-dimensional house type component, realizes two-dimentional floor plan to three-dimensional
The conversion of house type model facilitates the detailed understanding house type of client.
Further, the second embodiment of the three-dimensional house type model generating method of the present invention is proposed based on first embodiment.Three
The difference for tieing up the second embodiment and the first embodiment of three-dimensional house type model generating method of house type model generating method is, joins
According to Fig. 3, the step S40 includes:
Step S41 identifies the wall, determines the window ID in the wall;
Step S42 determines corresponding the window's position according to the window ID;
The wall is stretched as three-dimensional wall according to the corresponding size marking information of the two dimension floor plan by step S43
Body;
Step S44 opens up window on corresponding three-dimensional wall according to described the window's position based on the three-dimensional wall.
In the present embodiment, it is possible to understand that, a normal house type may be to have existing for window on certain walls, such as
All walls are only stretched as stereo structure, then certainly will will appear during wall is generated three-dimensional wall by fruit
There is no the case where window, the judgement for situations such as client is to the house type daylighting and ventilation can be seriously affected.Therefore in the present embodiment, lead to
It crosses and judges whether wall has window, if there is window, which is generated into the three-dimensional wall with window.
Each step will be described in detail below:
Step S41 identifies the wall, determines the window ID in the wall.
In the present embodiment, representation of the window in two-dimentional floor plan are as follows: the three-wire connection in wall.By to two dimension
Wall in floor plan is identified, determines the window ID in wall.
Step S42 determines corresponding the window's position according to the window ID.
According to determining window ID, the position of window is determined, window ID is had on which wall specifically, determining,
It can determine and offer window on which wall.
The wall is stretched as three-dimensional wall according to the corresponding size marking information of the two dimension floor plan by step S43
Body.
Wall all in two-dimentional floor plan is stretched as three-dimensional wall, the height and width of stretching have two-dimentional floor plan pair
The size marking information answered determines.Wall at this time is all not open up window.
Step S44 opens up window on corresponding three-dimensional wall according to described the window's position based on the three-dimensional wall.
According to predetermined the window's position, window is opened up on the corresponding three-dimensional wall stretched.
It should be understood that not there is the wall of window ID, it is normally stretched as three-dimensional wall.
By judging current wall, whether band window will work as the present embodiment in the case where determination current wall band window
Preceding wall generates the three-dimensional wall with window, keeps the three-dimensional house type model being subsequently generated more vivid, improves three-dimensional house type
The intelligence of model generating method, the case where making client more and will appreciate that current house type.
Further, it is based on first embodiment and second embodiment, proposes the three-dimensional house type model generating method of the present invention
3rd embodiment.The first embodiment of the 3rd embodiment of three-dimensional house type model generating method and three-dimensional house type model generating method
Difference with second embodiment is, referring to Fig. 4, the wall include it is multiple, the step S40 includes:
Step S45 successively traverses the wall, and determines the wall generic currently traversed, the generic packet
Include load bearing wall and non-load bearing wall;
Step S46, however, it is determined that the wall currently traversed is load bearing wall, then according to the corresponding size mark of the two dimension floor plan
Information is infused, the load bearing wall is stretched as three dimensional solid wall;
Step S47, however, it is determined that the wall currently traversed is non-load bearing wall, then according to the corresponding size of the two dimension floor plan
The non-load bearing wall is stretched as three-dimensional hollow wall by markup information.
It should be understood that client during buying house, other than wanting to understand house type size and structure, is being unsatisfied with
In the case where existing house type pattern, it is also possible to wonder which wall is demountable non-load bearing wall in current house type, with
Just client in the case where not influencing house collapsing, punches or dismantles from chief commander's wall, expand house type face in subsequent finishing
Product, or change the pattern of house type.Therefore in the present embodiment, before wall is stretched as three-dimensional wall, first determine that wall is
Belong to load bearing wall or non-load bearing wall, and after determining the generic of wall, respectively by wall be stretched as three-dimensional load bearing wall and
Three-dimensional non-load bearing wall.
Each step will be described in detail below:
Step S45 successively traverses the wall, and determines the wall generic currently traversed, the generic packet
Include load bearing wall and non-load bearing wall.
In the present embodiment, before stretching wall, current wall generic is first determined, wherein generic includes
Load bearing wall and non-load bearing wall.Specifically, the black line segment that the present embodiment load bearing wall indicates in two-dimentional floor plan is thicker, non-bearing
The black line segment that wall indicates in two-dimentional floor plan is thinner.Therefore, can by judge represent wall black line segment thick line come
It determines current wall generic, by the way of successively traversing, determines the wall generic currently traversed one by one.
Step S46, however, it is determined that the wall currently traversed is load bearing wall, then according to the corresponding size mark of the two dimension floor plan
Information is infused, the load bearing wall is stretched as three dimensional solid wall.
Step S47, however, it is determined that the wall currently traversed is non-load bearing wall, then according to the corresponding size of the two dimension floor plan
The non-load bearing wall is stretched as three-dimensional hollow wall by markup information.
In the present embodiment, however, it is determined that the wall currently traversed is load bearing wall, then the wall currently traversed is stretched as three-dimensional
Solid wall;If it is determined that the wall currently traversed is non-load bearing wall, then the wall currently traversed is stretched as three-dimensional hollow wall,
Specific height and the width of stretching is determined by the corresponding size marking information of two-dimentional floor plan.
It should be understood that non-load bearing wall can be removed, therefore when non-load bearing wall is stretched as wall, with three-dimensional hollow
Wall indicates, is non-load bearing wall so that client can tell current wall at a glance, can remove.
Further, the three-dimensional house type model generating method further include:
Removals is instructed corresponding non-hold when receiving the removal instruction based on the non-load bearing wall by step S60
Weight wall removes in the three-dimensional house type model, obtains modified three-dimensional house type model;
It, will when receiving the removal instruction based on non-load bearing wall after wall is stretched as load bearing wall and non-load bearing wall
The removal instructs corresponding non-load bearing wall to remove in three-dimensional house type model, obtains modified being three-dimensional house type model, specifically
It is such as shown after display interface by three-dimensional house type model, user can carry out on the corresponding non-load bearing wall to be removed of display interface
Long press operation, and by dragging the non-load bearing wall to be removed, which is removed, thus obtain removing this to
Remove the three-dimensional house type model of non-load bearing wall.
Step S70 refers to when receiving the recovery instruction based on the modified three-dimensional house type model by described
Corresponding non-load bearing wall is enabled to be restored to original position.
On the basis of three-dimensional house type model after the modification, when receiving recovery instruction, which is instructed corresponding
Removed non-load bearing wall is restored to original position.
It should be noted that client can also add wall into three-dimensional house type model, increase instruction when receiving wall
When, wall is added to the corresponding position of three-dimensional house type model.If client thinks that room is too big, want to be separated into two cubicles,
Look at effect, instruction can be increased by assigning wall, increase wall in corresponding position, big room is separated into two houselets
Between.
In the present embodiment, in order to allow client to become more apparent upon current house type, by determining the classification of wall, and according to institute
Belong to classification, the wall in two-dimentional floor plan generated into three dimensional solid wall and three-dimensional hollow wall respectively, is that client is very clear,
More clear convenient the case where understanding house type, improve the intelligence of three-dimensional house type model generating method.
Further, it is based on first embodiment, second embodiment and 3rd embodiment, proposes the three-dimensional house type model of the present invention
The fourth embodiment of generation method.The fourth embodiment of three-dimensional house type model generating method and three-dimensional house type model generating method
The difference of first embodiment, second embodiment and 3rd embodiment is, referring to Fig. 5, the three-dimensional house type model generating method
Further include:
The three-dimensional house type model is shown in corresponding display interface by step S80;
Step S90 is instructed, to described when receiving the scaling instruction based on the display interface according to the scaling
Three-dimensional house type model carries out scaling.
In the present embodiment, after generating three-dimensional house type model, three-dimensional house type model can be shown in corresponding display circle
Face, and when receiving scaling instruction, scaling is carried out to the three-dimensional house type model, so that client will appreciate that the thin of the house type
Section.
Each step will be described in detail below:
The three-dimensional house type model is shown in corresponding display interface by step S80.
In the present embodiment, after generating three-dimensional house type model, three-dimensional house type model can be shown in display circle of this equipment
Face generates json file such as the display interface of mobile phone, or by the three-dimensional house type model, is transferred to corresponding receiving device, with
For the receiving device by the three-dimensional house type model be shown or 3d print, can also by the three-dimensional house type model projection to pair
On the screen answered.
Step S90 is instructed, to described when receiving the scaling instruction based on the display interface according to the scaling
Three-dimensional house type model carries out scaling.
In the present embodiment, in the amplification that, when display interface is shown, receivable client assigns by three-dimensional house type model, reduce
Or rotation instruction, and according to the instruction, it corresponds to and executes amplification, diminution or rotation process, client is made to will appreciate that current family
Each corner of type.
The present embodiment can receive what client assigned on the basis of the three-dimensional house type model after generating three-dimensional house type model
Scaling instruction, and the corresponding scaling that executes operates, it is raw to improve three-dimensional house type model for the current house type of the understanding for keeping client more careful
At the intelligence of method.
In addition, the embodiment of the present invention also provides a kind of three-dimensional house type model generating means.
It is the functional block diagram of the three-dimensional house type model generating means first embodiment of the present invention referring to Fig. 6, Fig. 6.
In the present embodiment, the three-dimensional house type model generating means include:
Determining module 10, for when receiving two-dimentional floor plan, determining the house type component in the two-dimentional floor plan;
Module 20 is obtained, for obtaining the corresponding three-dimensional house type component of the house type component;
Module 30 is wiped, for wiping the house type component, is retained the two-dimentional floor plan of wall, only to obtain
State wall;
Stretching module 40, for according to the corresponding size marking information of the two dimension floor plan, the wall to be stretched as
Three-dimensional wall;
Generation module 50, for generating three-dimensional house type model according to the three-dimensional wall and the three-dimensional house type component.
Further, the acquisition module 20 specifically includes:
Recognition unit determines the corresponding identification information of the house type component for identifying to the house type component;
First acquisition unit, for obtaining three-dimensional family corresponding with the identification information from default three-dimensional house type Component Gallery
Type component.
Further, the generation module 50 specifically includes:
First generation unit is built for carrying out frame based on the three-dimensional wall, to generate initial three-dimensional house type model;
Second acquisition unit, for obtaining the corresponding position and direction of the house type component based on the two-dimentional floor plan;
Second generation unit, for being based on the three-dimensional house type component and the position and direction, by the three-dimensional family
Type component is added in the initial three-dimensional house type model, generates three-dimensional house type model.
Further, the stretching module 40 specifically includes:
First determination unit, the wall, determines the window ID in the wall for identification;
Second determination unit, for determining corresponding the window's position according to the window ID;
First draw unit, for according to the corresponding size marking information of the two dimension floor plan, the wall to be stretched
For three-dimensional wall;
Windows units, for being opened up on corresponding three-dimensional wall based on the three-dimensional wall according to described the window's position
Window.
Further, the stretching module 40 specifically includes:
Third determination unit for successively traversing the wall, and determines the wall generic currently traversed, the institute
Belonging to classification includes load bearing wall and non-load bearing wall;
Second draw unit, for if it is determined that the wall currently traversed is load bearing wall, then according to the two-dimentional floor plan pair
The load bearing wall is stretched as three dimensional solid wall by the size marking information answered;If it is determined that the wall currently traversed is non-bearing
The non-load bearing wall is stretched as three-dimensional hollow wall then according to the corresponding size marking information of the two dimension floor plan by wall.
Further, the three-dimensional house type model generating means further include:
Remove module, for the removal being instructed and is corresponded to when receiving the removal instruction based on the non-load bearing wall
Non-load bearing wall removed in the three-dimensional house type model, obtain modified three-dimensional house type model;
Recovery module will be described for when receiving the recovery instruction based on the modified three-dimensional house type model
Restore that corresponding non-load bearing wall is instructed to be restored to original position.
Further, the three-dimensional house type model generating means further include:
Display module, for the three-dimensional house type model to be shown in corresponding display interface;
Scaling module is right for being instructed according to the scaling when receiving the scaling instruction based on the display interface
The three-dimensional house type model carries out scaling.
Wherein, modules and unit and above-mentioned three-dimensional house type model generation side in above-mentioned three-dimensional house type model generating means
Each step is corresponding in method embodiment, and function and realization process no longer repeat one by one here.
In addition, the embodiment of the present invention also provides a kind of computer readable storage medium.
Three-dimensional house type model generator is stored on computer readable storage medium of the present invention, wherein the three-dimensional house type
When model generator is executed by processor, realize such as the step of above-mentioned three-dimensional house type model generating method.
Wherein, three-dimensional house type model generator, which is performed realized method, can refer to three-dimensional house type model of the invention
Each embodiment of generation method, details are not described herein again.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in one as described above
In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone,
Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of three-dimensional house type model generating method, which is characterized in that the three-dimensional house type model generating method includes following step
It is rapid:
When receiving two-dimentional floor plan, the house type component in the two-dimentional floor plan is determined;
Obtain the corresponding three-dimensional house type component of the house type component;
The house type component is wiped, is retained the two-dimentional floor plan of wall, only to obtain the wall;
According to the corresponding size marking information of the two dimension floor plan, the wall is stretched as three-dimensional wall;
According to the three-dimensional wall and the three-dimensional house type component, three-dimensional house type model is generated.
2. three-dimensional house type model generating method as described in claim 1, which is characterized in that described to obtain the house type component pair
The step of three-dimensional house type component answered includes:
The house type component is identified, determines the corresponding identification information of the house type component;
Three-dimensional house type component corresponding with the identification information is obtained from default three-dimensional house type Component Gallery.
3. three-dimensional house type model generating method as claimed in claim 2, which is characterized in that it is described according to the three-dimensional wall and
The three-dimensional house type component, the step of generating three-dimensional house type model include:
It carries out frame based on the three-dimensional wall to build, to generate initial three-dimensional house type model;
The corresponding position and direction of the house type component are obtained based on the two-dimentional floor plan;
Based on the three-dimensional house type component and the position and direction, the three-dimensional house type component is added to described initial three
It ties up in house type model, generates three-dimensional house type model.
4. three-dimensional house type model generating method as described in claim 1, which is characterized in that described according to the two-dimentional floor plan
Corresponding size marking information, the step of wall is stretched as three-dimensional wall include:
It identifies the wall, determines the window ID in the wall;
According to the window ID, corresponding the window's position is determined;
According to the corresponding size marking information of the two dimension floor plan, the wall is stretched as three-dimensional wall;
Window is opened up on corresponding three-dimensional wall according to described the window's position based on the three-dimensional wall.
5. three-dimensional house type model generating method as described in claim 1, which is characterized in that the wall include it is multiple, it is described
According to the corresponding size marking information of the two-dimentional floor plan, the step of wall is stretched as three-dimensional wall, includes:
It successively traverses the wall, and determines the wall generic currently traversed, the generic includes load bearing wall and non-
Load bearing wall;
If it is determined that the wall currently traversed is load bearing wall, then according to the corresponding size marking information of the two dimension floor plan, by institute
It states load bearing wall and is stretched as three dimensional solid wall;
If it is determined that the wall currently traversed is non-load bearing wall, then it, will according to the corresponding size marking information of the two dimension floor plan
The non-load bearing wall is stretched as three-dimensional hollow wall.
6. three-dimensional house type model generating method as claimed in claim 5, which is characterized in that the three-dimensional house type model generation side
Method further include:
When receiving the removal instruction based on the non-load bearing wall, instruct corresponding non-load bearing wall described three the removal
It is removed in dimension house type model, obtains modified three-dimensional house type model;
When receiving the recovery instruction based on the modified three-dimensional house type model, recoverys is instructed into corresponding non-hold
Weight wall is restored to original position.
7. the three-dimensional house type model generating method as described in claim 1 to 6 any one, which is characterized in that the three-dimensional family
Type model generating method further include:
The three-dimensional house type model is shown in corresponding display interface;
It when receiving the scaling instruction based on the display interface, is instructed according to the scaling, to the three-dimensional house type model
Carry out scaling.
8. a kind of three-dimensional house type model generating means, which is characterized in that the three-dimensional house type model generating means include:
Determining module, for when receiving two-dimentional floor plan, determining the house type component in the two-dimentional floor plan;
Module is obtained, for obtaining the corresponding three-dimensional house type component of the house type component;
Module is wiped, for wiping the house type component, is retained the two-dimentional floor plan of wall, only to obtain the wall
Body;
Stretching module, for according to the corresponding size marking information of the two dimension floor plan, the wall to be stretched as three-dimensional wall
Body;
Generation module, for generating three-dimensional house type model according to the three-dimensional wall and the three-dimensional house type component.
9. a kind of three-dimensional house type model generation device, which is characterized in that the three-dimensional house type model generation device include processor,
Memory and it is stored in the three-dimensional house type model generator that can be executed on the memory and by the processor, wherein
When the three-dimensional house type model generator is executed by the processor, three as described in any one of claims 1 to 7 are realized
The step of tieing up house type model generating method.
10. a kind of computer readable storage medium, which is characterized in that be stored with three-dimensional family on the computer readable storage medium
Type model generator, wherein realizing such as claim 1 to 7 when the three-dimensional house type model generator is executed by processor
Any one of described in three-dimensional house type model generating method the step of.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910292776.8A CN110136244A (en) | 2019-04-12 | 2019-04-12 | Three-dimensional house type model generating method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910292776.8A CN110136244A (en) | 2019-04-12 | 2019-04-12 | Three-dimensional house type model generating method, device, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110136244A true CN110136244A (en) | 2019-08-16 |
Family
ID=67569876
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910292776.8A Pending CN110136244A (en) | 2019-04-12 | 2019-04-12 | Three-dimensional house type model generating method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110136244A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110686648A (en) * | 2019-09-06 | 2020-01-14 | 平安城市建设科技(深圳)有限公司 | Method, device and equipment for generating house type graph based on image detection and storage medium |
CN111369424A (en) * | 2020-02-10 | 2020-07-03 | 北京城市网邻信息技术有限公司 | Method, device, equipment and storage medium for generating three-dimensional space of target house |
CN111968247A (en) * | 2020-07-10 | 2020-11-20 | 北京城市网邻信息技术有限公司 | Method and device for constructing three-dimensional house space, electronic equipment and storage medium |
CN112053204A (en) * | 2020-08-21 | 2020-12-08 | 北京五八信息技术有限公司 | House resource display method and device |
CN112200916A (en) * | 2020-12-08 | 2021-01-08 | 深圳市房多多网络科技有限公司 | Method and device for generating house type graph, computing equipment and storage medium |
CN112614223A (en) * | 2020-12-23 | 2021-04-06 | 贝壳技术有限公司 | Display method and device for house type reconstruction, electronic equipment and storage medium |
CN114168024A (en) * | 2021-12-17 | 2022-03-11 | 厦门知本家科技有限公司 | System and method for adjusting house type area based on aerial view angle |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101930627A (en) * | 2010-09-10 | 2010-12-29 | 西安新视角信息科技有限公司 | Three-dimensional dwelling size modeling method based on two-dimensional dwelling size diagram |
CN104821011A (en) * | 2015-05-20 | 2015-08-05 | 郭小虎 | Method of generating 3D house type model by 2D house type model based on camera shooting |
CN106096153A (en) * | 2016-06-16 | 2016-11-09 | 上海营匠网络科技有限公司 | Indoor decoration outdoor scene is experienced scene and is provided method and system |
CN107330979A (en) * | 2017-06-30 | 2017-11-07 | 电子科技大学中山学院 | Vector diagram generation method and device for building house type and terminal |
CN108717726A (en) * | 2018-05-11 | 2018-10-30 | 北京家印互动科技有限公司 | Three-dimensional house type model generating method and device |
-
2019
- 2019-04-12 CN CN201910292776.8A patent/CN110136244A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101930627A (en) * | 2010-09-10 | 2010-12-29 | 西安新视角信息科技有限公司 | Three-dimensional dwelling size modeling method based on two-dimensional dwelling size diagram |
CN104821011A (en) * | 2015-05-20 | 2015-08-05 | 郭小虎 | Method of generating 3D house type model by 2D house type model based on camera shooting |
CN106096153A (en) * | 2016-06-16 | 2016-11-09 | 上海营匠网络科技有限公司 | Indoor decoration outdoor scene is experienced scene and is provided method and system |
CN107330979A (en) * | 2017-06-30 | 2017-11-07 | 电子科技大学中山学院 | Vector diagram generation method and device for building house type and terminal |
CN108717726A (en) * | 2018-05-11 | 2018-10-30 | 北京家印互动科技有限公司 | Three-dimensional house type model generating method and device |
Non-Patent Citations (1)
Title |
---|
朱俊芳: "基于结构构件识别的户型图三维重建方法研究", 《中国优秀硕士学位论文全文数据库》 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110686648A (en) * | 2019-09-06 | 2020-01-14 | 平安城市建设科技(深圳)有限公司 | Method, device and equipment for generating house type graph based on image detection and storage medium |
CN111369424A (en) * | 2020-02-10 | 2020-07-03 | 北京城市网邻信息技术有限公司 | Method, device, equipment and storage medium for generating three-dimensional space of target house |
CN111968247A (en) * | 2020-07-10 | 2020-11-20 | 北京城市网邻信息技术有限公司 | Method and device for constructing three-dimensional house space, electronic equipment and storage medium |
CN111968247B (en) * | 2020-07-10 | 2021-10-19 | 北京城市网邻信息技术有限公司 | Method and device for constructing three-dimensional house space, electronic equipment and storage medium |
CN112053204A (en) * | 2020-08-21 | 2020-12-08 | 北京五八信息技术有限公司 | House resource display method and device |
CN112200916A (en) * | 2020-12-08 | 2021-01-08 | 深圳市房多多网络科技有限公司 | Method and device for generating house type graph, computing equipment and storage medium |
CN112614223A (en) * | 2020-12-23 | 2021-04-06 | 贝壳技术有限公司 | Display method and device for house type reconstruction, electronic equipment and storage medium |
CN114168024A (en) * | 2021-12-17 | 2022-03-11 | 厦门知本家科技有限公司 | System and method for adjusting house type area based on aerial view angle |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110136244A (en) | Three-dimensional house type model generating method, device, equipment and storage medium | |
CN110310319B (en) | Illumination-separated single-view human body clothing geometric detail reconstruction method and device | |
CN104599284B (en) | Three-dimensional facial reconstruction method based on various visual angles mobile phone auto heterodyne image | |
US20170069124A1 (en) | Avatar generation and animations | |
CN107464217B (en) | Image processing method and device | |
CN103093437B (en) | Generate the method and device of pencil drawing style image | |
CN111476710B (en) | Video face changing method and system based on mobile platform | |
CN104899563A (en) | Two-dimensional face key feature point positioning method and system | |
CN108198130B (en) | Image processing method, image processing device, storage medium and electronic equipment | |
CN110163954A (en) | Three-dimensional house type model generating method, device, equipment and storage medium | |
CN109242834A (en) | It is a kind of based on convolutional neural networks without reference stereo image quality evaluation method | |
CN102194443A (en) | Display method and system for window of video picture in picture and video processing equipment | |
TWI415011B (en) | Facial identification method and system using thereof | |
CN103279936A (en) | Human face fake photo automatic combining and modifying method based on portrayal | |
CN109785400B (en) | Silhouette image manufacturing method and device, electronic equipment and storage medium | |
KR102353556B1 (en) | Apparatus for Generating Facial expressions and Poses Reappearance Avatar based in User Face | |
CN113191216B (en) | Multi-user real-time action recognition method and system based on posture recognition and C3D network | |
CN101354743A (en) | Image base for human face image synthesis | |
CN100487732C (en) | Method for generating cartoon portrait based on photo of human face | |
CN111652795A (en) | Face shape adjusting method, face shape adjusting device, live broadcast method, live broadcast device, electronic equipment and storage medium | |
CN108596992B (en) | Rapid real-time lip gloss makeup method | |
CN108234770B (en) | Auxiliary makeup system, auxiliary makeup method and auxiliary makeup device | |
CN109448093B (en) | Method and device for generating style image | |
CN103473807B (en) | A kind of 3D model transformation systems and method | |
CN107203961B (en) | Expression migration method and electronic equipment |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20190816 |