CN112231787B - Wall auxiliary drawing method and device applied to home decoration system - Google Patents

Wall auxiliary drawing method and device applied to home decoration system Download PDF

Info

Publication number
CN112231787B
CN112231787B CN202011109761.2A CN202011109761A CN112231787B CN 112231787 B CN112231787 B CN 112231787B CN 202011109761 A CN202011109761 A CN 202011109761A CN 112231787 B CN112231787 B CN 112231787B
Authority
CN
China
Prior art keywords
wall
wall body
input information
average value
gray average
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.)
Active
Application number
CN202011109761.2A
Other languages
Chinese (zh)
Other versions
CN112231787A (en
Inventor
周振华
郑宗恒
秦海海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Jinzhuang Technology Decoration Engineering Co ltd
Original Assignee
Shenzhen Jinzhuang Technology Decoration Engineering Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Jinzhuang Technology Decoration Engineering Co ltd filed Critical Shenzhen Jinzhuang Technology Decoration Engineering Co ltd
Priority to CN202011109761.2A priority Critical patent/CN112231787B/en
Publication of CN112231787A publication Critical patent/CN112231787A/en
Application granted granted Critical
Publication of CN112231787B publication Critical patent/CN112231787B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/12Geometric CAD characterised by design entry means specially adapted for CAD, e.g. graphical user interfaces [GUI] specially adapted for CAD
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/13Architectural design, e.g. computer-aided architectural design [CAAD] related to design of buildings, bridges, landscapes, production plants or roads

Landscapes

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

Abstract

The invention provides a wall auxiliary drawing method and device applied to a home decoration system, wherein a first wall is formed according to first input information by determining a first gray average value of pixel points of a house type picture; the indication icon moves to be close to one side of the first wall, and a second wall is formed according to the received second input information; the second wall automatically moves towards the first wall so that the first wall and the second wall are partially overlapped to form a connecting wall; forming a wall body after cutting according to the third input information; forming a cut wall body according to the clicked wall body to be cut, finally forming a drawn house type graph, and calculating a second gray average value of the pixel points; comparing the first gray average value with the second gray average value, and if the first gray average value and the second gray average value are the same, finishing drawing; otherwise, different pixel point modifications are found out to draw the house type graph. The technical scheme of the invention effectively solves the problems of high complexity and long error correction time of the existing wall drawing technology, and can achieve the purpose of rapidly checking the correctness of the drawing.

Description

Wall auxiliary drawing method and device applied to home decoration system
Technical Field
The invention relates to the field of home decoration intellectualization, in particular to a wall auxiliary drawing method and device applied to a home decoration system.
Background
In interior decoration design, draw the room type and be the basic condition of house design, the important component part of room type is the wall body, and the accuracy and the efficiency of wall body drawing instrument very big degree have decided the accuracy and the efficiency of design. In the drawing process of the wall body, the basic data information such as the size of the wall body, the shape of the wall body (horizontal and vertical walls, inclined walls and arc walls), the thickness of the wall body, the attribute of the wall body (bearing wall/non-bearing wall) and the like are required to be considered; meanwhile, the characteristics of easy operation and low cost are required to be satisfied. The existing wall drawing method is high in complexity and technical requirements, a designer is difficult to quickly get up, drawing time is long, drawing results cannot be quickly judged to be correct or not, data information cannot be checked, computer operation time is long, and downtime is easy to occur.
Disclosure of Invention
The present invention has been made in view of the above problems, and it is an object of the present invention to provide a method and apparatus for wall auxiliary drawing in a home decoration system.
In one embodiment of the present invention, there is provided a wall auxiliary drawing method applied to a home decoration system, wherein the method includes:
Step S101: fitting according to the input multiple pieces of picture information to form a house type picture, preprocessing the house type picture, and calculating a first gray average value of each pixel point;
Step S102: determining a first vertex in a preset coordinate grid as a first coordinate point of the wall body, and generating four coordinate points according to first input information to form a first wall body; the first coordinate point of the wall body can be one of an upper left vertex or an upper right vertex of the wall body or other two points, and the first input information comprises direction information, a length value, a thickness value and a height value;
Step S103: when the indication icon approaches to a certain range of the first wall, the indication icon moves to be close to one side of the first wall, a second coordinate point is determined as a starting point, four coordinate points are generated according to the received second input information, and a second wall is formed; the second input information includes direction information, a length value, a thickness value, and a height value;
step S104: when the distance between the first wall body and the second wall body is within a certain threshold value range, the second wall body automatically moves towards the first wall body, and the first wall body and the second wall body are partially overlapped to form a connecting wall body; wherein the first wall partially overlapping the second wall comprises: the coordinates of the nearest vertexes in the four vertexes of the first wall body and the second wall body coincide; or the two nearest sides of the four sides of the first wall body and the second wall body are attached;
Step S105: continuously repeating the steps S103 and S104 to generate a third wall body and a fourth wall body to form a closed room diagram;
step S106: judging whether wall truncation is carried out, if so, generating four coordinate points according to the clicked wall needing truncation and the third input information to form a wall after truncation; the third input information comprises a starting point of a cutting position, cutting direction information and a length value after cutting;
step S107: judging whether to cut off the wall body, if so, forming the cut wall body according to the clicked wall body to be cut off and fourth input information; the fourth input information comprises a starting point of a cutting position, a length value, a thickness value, a height value and direction information of a cutting wall body;
Step S108: continuing to repeat the steps S103 to S107 to form a drawn house type graph, and calculating a second gray average value of each pixel point of the drawn house type graph;
Step S109: comparing the first gray average value with the second gray average value, and if the first gray average value and the second gray average value are the same, finishing drawing; otherwise, different pixel points are found out, and the drawn house type graph is modified.
Further, in the 2D wall plan view of the canvas, the wall is identified as a line segment having a certain thickness, including four vertices, and when the wall is ordered, one of the vertices is selected as the first vertex.
Furthermore, the wall drawing processing method uses a polygon prism drawing technology.
Further, the input plurality of picture information is picture information of each room in the house type map.
Further, validity verification is performed on the first input information, the second input information, the third input information and the fourth input information.
Further, the wall body includes: direction attribute, material attribute, and morphology class;
Wherein the direction attribute includes: inclined wall, horizontal wall and vertical wall;
The material properties include: bricks, light bricks and concrete;
The morphology classes include: a straight line wall body and an arc wall body.
In another embodiment of the present invention, there is provided a wall auxiliary drawing device applied to a home decoration system, wherein the device includes:
the house type image processing module is used for fitting according to a plurality of pieces of input picture information to form a house type image, preprocessing the house type image and calculating a first gray average value of each pixel point;
The first wall generating module is used for determining a first vertex in a preset coordinate grid as a first coordinate point of the wall, generating four coordinate points according to first input information and forming the first wall; the first coordinate point of the wall body can be one of an upper left vertex or an upper right vertex of the wall body or other two points, and the first input information comprises direction information, a length value, a thickness value and a height value;
The second wall generating module is used for determining a second coordinate point as a starting point when the indication icon moves to be close to one side of the first wall within a certain range, and generating four coordinate points according to the received second input information to form a second wall; the second input information includes direction information, a length value, a thickness value, and a height value; ;
The wall body connecting module is used for automatically moving the second wall body to the first wall body when the distance between the first wall body and the second wall body is within a certain threshold range, and enabling the first wall body and the second wall body to be partially overlapped to form a connecting wall body; wherein the first wall partially overlapping the second wall comprises: the coordinates of the nearest vertexes in the four vertexes of the first wall body and the second wall body coincide; or the two nearest sides of the four sides of the first wall body and the second wall body are attached;
the room generation module is used for continuously generating a third wall body and a fourth wall body to form a closed room diagram;
The cutoff module is used for judging whether the wall body is cutoff or not, if so, generating four coordinate points according to the clicked wall body to be cutoff and third input information to form a cutoff wall body; the third input information comprises a starting point of a cutting position, cutting direction information and a length value after cutting;
The cutting module is used for judging whether to cut the wall body, if so, the cut wall body is formed according to the clicked wall body to be cut and fourth input information; the fourth input information comprises a starting point of a cutting position, a length value, a thickness value, a height value and direction information of a cutting wall body;
The house type drawing processing module is used for forming a house type drawing and calculating a second gray average value of each pixel point of the house type drawing;
The judging and processing module is used for comparing the first gray average value with the second gray average value, and if the first gray average value and the second gray average value are the same, drawing is completed; otherwise, different pixel points are found out, and the drawn house type graph is modified.
Further, the first wall generating module is further configured to, in a top view of the 2D wall of the canvas, identify the wall as a line segment having a certain thickness, including four vertices, and select one of the vertices as a first vertex when ordering the wall.
Further, the wall drawing process of the device uses a polygon prism drawing technology.
Further, the input plurality of picture information is picture information of each room in the house type map.
Further, the device also comprises a verification module for verifying the validity of the first input information, the second input information, the third input information and the fourth input information.
Further, the wall body includes: direction attribute, material attribute, and morphology class;
Wherein the direction attribute includes: inclined wall, horizontal wall and vertical wall;
The material properties include: bricks, light bricks and concrete;
The morphology classes include: a straight line wall body and an arc wall body.
The embodiment of the invention provides a wall auxiliary drawing method and device applied to a home decoration system, wherein a first wall is formed according to first input information by determining a first gray average value of pixel points of a house type picture; the indication icon moves to be close to one side of the first wall, and a second wall is formed according to the received second input information; the second wall automatically moves towards the first wall so that the first wall and the second wall are partially overlapped to form a connecting wall; forming a wall body after cutting according to the third input information; forming a cut wall body according to the clicked wall body to be cut, finally forming a drawn house type graph, and calculating a second gray average value of the pixel points; comparing the first gray average value with the second gray average value, and if the first gray average value and the second gray average value are the same, finishing drawing; otherwise, different pixel point modifications are found out to draw the house type graph. The technical scheme of the invention effectively solves the problems of high complexity and long error correction time of the existing wall drawing technology, and can achieve the purpose of rapidly checking the correctness of the drawing.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic view of a single wall according to an embodiment of the present invention;
FIG. 2 is a schematic view of a four-sided wall according to an embodiment of the present invention;
FIG. 3 is a schematic view of a wall center line according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a wall turnover according to an embodiment of the present invention;
FIG. 5 is a schematic view of a wall according to an embodiment of the present invention;
FIG. 6 is a schematic view of wall interception according to an embodiment of the present invention;
FIG. 7 is a schematic view of a wall prism according to an embodiment of the present invention;
Fig. 8 is a schematic flow chart of a wall auxiliary drawing method applied to a home decoration system according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a wall auxiliary drawing device applied to a home decoration system according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terminology used in the embodiments of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise, the "plurality" generally includes at least two, but does not exclude the case of at least one.
It should be understood that although the terms first, second, third, etc. may be used in embodiments of the present application to describe XXX, these XXX should not be limited to these terms. These terms are only used to distinguish XXX from each other. For example, a first XXX may also be referred to as a second XXX, and similarly, a second XXX may also be referred to as a first XXX, without departing from the scope of embodiments of the application.
The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to monitoring", depending on the context. Similarly, the phrase "if determined" or "if monitored (stated condition or event)" may be interpreted as "when determined" or "in response to determination" or "when monitored (stated condition or event)" or "in response to monitoring (stated condition or event), depending on the context.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a product or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such product or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a commodity or system comprising such elements.
Interpretation of technical terms:
inner/outer wire: a wall is provided with four surfaces, two groups of parallel surfaces are respectively called a length surface and a thickness surface, and the sizes of two sides of the length surface are different by defining inner lines/outer lines according to different actual scenes.
Midline: the length is defined only by the center dimension without distinguishing the two sides of the wall length face, called the center line.
And (3) turning: and controlling the sizes of the inner and outer lines in the combination process of the two walls.
Cutting: the two walls are crossed, the second wall is connected to the first wall, the first wall is cut off by the second wall, and the two walls can be crossed or T-shaped crossed.
Cutting: dividing a wall cut into a plurality of walls connected together.
Prism: the wall body at the intersection of the wall bodies in different directions is technically called a prismatic wall, and the service is called a connecting wall; meanwhile, a single wall may also be called a prism, and one pair of sides is longer than the other pair of sides in length from the top view.
The drawings 1-7 of the specification are schematic diagrams of a single wall, four-sided walls, wall midlines, wall overturning, wall cutting and wall prismatic respectively.
Example 1
The wall drawing processing method disclosed in the embodiment of the present invention is described in detail, referring to a flow chart of an auxiliary drawing method for a wall in a home decoration system shown in fig. 8, the method may be executed by a computer device, and software for home decoration design may be installed on the computer device, and mainly includes the following steps S101 to S109:
Step S101: fitting is carried out according to the input multiple pieces of picture information to form a house type picture, preprocessing is carried out on the house type picture, and a first gray average value of each pixel point is calculated.
Uploading the shot house type picture by a user, uploading a wall drawing system, and adaptively preprocessing the picture information according to the picture information content by the system: scaling the picture, simplifying the color and gray processing to obtain the processed picture information, and finally calculating to obtain a first gray average value of each pixel point.
Further, the input plurality of picture information is picture information of each room in the house type map.
Step S102: determining a first vertex in a preset coordinate grid as a first coordinate point of the wall body, and generating four coordinate points according to first input information to form a first wall body; the first coordinate point of the wall body can be one of an upper left vertex or an upper right vertex of the wall body or other two points, and the first input information comprises direction information, a length value, a thickness value and a height value.
Specifically, in the 2D wall plan view of the canvas, the wall is identified as a line segment having a certain thickness, including four vertices (each vertex corresponds to a corresponding coordinate), and when the wall is ordered, one of the vertices may be selected as a starting point (i.e., a first vertex). The selection may be made according to actual conditions, and is not limited herein.
The length and thickness of the wall body can be determined by moving a mouse, the accurate size is obtained by inputting through a keyboard, and the thickness and attribute of the wall body are switched through keys of the keyboard; meanwhile, the wall body presents a virtual effect, the wall body to be drawn is displayed in advance, and the wall body is materialized after the wall body is confirmed through a mouse.
Step S103: when the indication icon approaches to a certain range of the first wall, the indication icon moves to be close to one side of the first wall, a second coordinate point is determined as a starting point, four coordinate points are generated according to the received second input information, and a second wall is formed; the second input information includes direction information, a length value, a thickness value, and a height value;
step S104: when the distance between the first wall body and the second wall body is within a certain threshold value range, the second wall body automatically moves towards the first wall body, and the first wall body and the second wall body are partially overlapped to form a connecting wall body; wherein the first wall partially overlapping the second wall comprises: the coordinates of the nearest vertexes in the four vertexes of the first wall body and the second wall body coincide; or the two nearest sides of the four sides of the first wall body and the second wall body are attached;
After the first wall is obtained in step S102, when the indication icon approaches the first wall within a certain range, the drawing interface automatically defaults to the indication icon to be close to the first wall, the indication icon can move to be close to one side of the first wall, and various specific setting modes are available and are not repeated here;
When the distance between the first wall body and the second wall body is within a certain threshold range, the second wall body automatically moves towards the first wall body, and the coordinates of the nearest vertexes of the four vertexes of the first wall body and the second wall body coincide;
on the other hand, when the distance between the first wall body and the second wall body is within a certain threshold range, the second wall body automatically moves towards the first wall body, and two nearest edges of the four edges of the first wall body and the second wall body are attached;
After the physical wall body is completed, the continuous wall drawing state can be triggered, and the continuous wall drawing state can be automatically exited by right-clicking a mouse or until a closed room is completed.
Step S105: continuously repeating the steps S103 and S104 to generate a third wall body and a fourth wall body to form a closed room diagram;
step S106: judging whether wall truncation is carried out, if so, generating four coordinate points according to the clicked wall needing truncation and the third input information to form a wall after truncation; the third input information comprises a starting point of a cutting position, cutting direction information and a length value after cutting;
When drawing, the current indication icon position is used as a placement point, a direction arrow in four direction dimensions is generated, and if a drawn wall body exists on the arrow in a certain direction, an auxiliary line is generated on the wall body in the direction. When the wall body needs to be cut off, a user clicks a function menu, the wall body is selected to be cut off, then the wall body needing to be cut off is clicked, an auxiliary line is generated on the wall body, and scale information is arranged on the auxiliary line.
Step S107: judging whether to cut off the wall body, if so, forming the cut wall body according to the clicked wall body to be cut off and fourth input information; the fourth input information comprises a starting point of a cutting position, a length value, a thickness value, a height value and direction information of a cutting wall body.
Step S108: continuing to repeat the steps S103 to S107 to form a drawn house type graph, and calculating a second gray average value of each pixel point of the drawn house type graph;
Step S109: comparing the first gray average value with the second gray average value, and if the first gray average value and the second gray average value are the same, finishing drawing; otherwise, different pixel points are found out, and the drawn house type graph is modified.
And comparing the obtained first gray average value with the second gray average value by the wall drawing system, judging whether the first gray average value and the second gray average value are the same, if so, considering that the drawing is completely correct, and if not, finding out different pixel points to prompt a drawing person so as to enable the drawing person to know the position to be modified. The method can quickly find out the difference.
Furthermore, the wall drawing processing method uses a polygon prism drawing technology. The polygon prism drawing technique can be: drawing techniques such as quadrangular prism, hexagonal prism, and eight-prism.
In the prior art, a single line drawing tool is combined with a marking tool (CAD), and a painting tool draws one stroke by one stroke; or the multi-line drawing tool is combined with the marking tool, and the method is completed through repeated operation for a plurality of times. The two modes adopt an internal line and middle line drawing method, the external line is ignored, the concentration of multi-information processing is insufficient, more repeated actions are caused, the technical implementation difficulty is higher, and the computer computing resource consumption is more. The prior art has the following technical disadvantages:
Design pattern defect: in the process of achieving a target task, a repeated information processing process is often required to be adopted; lack of direct means of solving the problem, need to be accomplished in an indirect way;
The technical cost is high: design pattern defects result in more effort and computation to be done; the connecting wall adopts more prisms, and needs higher technical capacity and calculation capacity; the increase of the calculated amount causes large consumption of calculation resources of a computer; after the technology is difficult to realize, more testing and maintenance resources are needed.
Stability is poor: after the technical realization difficulty is high, the maintenance difficulty is increased, so that problems are solved or the technical upgrading is difficult, the time is long, and the difficulty of handing over by other people is increased.
Further, validity verification is performed on the first input information, the second input information, the third input information and the fourth input information.
The information processing system can have quite a lot of user input information at the same time, so that the accuracy of data is ensured, the processing time of a computer is further reduced, and the validity of the user input information is verified. The verification steps are as follows:
Receiving input information of a user, wherein the input information comprises data, and positioning corresponding data processing services from a remote server according to a target data source of the data, wherein the data processing services are multiple. The data has the following information: a target data source representing information related to the structured data source; of course, the addition and modification can be carried out according to the requirements of the required home decoration system; a data rule set representing processing rules with the data; and the data result item represents that the processed data is consistent with the uniformly understood data processing result.
Obtaining data stream from input information of a user, setting a sliding window with a size of M1 for the data stream, and dividing a plurality of sub-windows with a size of M2 on the sliding window;
dividing data blocks of a current sub-window according to data attributes of data to obtain an initialization population, calculating a support value of each data block in the current sub-window, judging whether the support value of each data block is larger than a threshold value, and if so, adding the data blocks into an effective set of the current sub-window;
Decomposing data processing into sub-processing requests for the data processing service according to a data rule set of data blocks in an active set, and decomposing the data rule set into a plurality of disjoint rule subsets corresponding to each of the sub-processing requests;
The sub-processing requests and the corresponding rule subsets are distributed to the corresponding data processing services, and each data processing service executes data processing tasks in parallel to respectively obtain temporary data processing results; and each data processing service correspondingly processes the one-to-one sub-processing request and the rule subset, and rapidly processes the data according to the one-to-one sub-processing request and the rule subset.
According to the requirement of the data result item of the data, assembling the temporary data processing result into a final data processing result of the current sub-window; summarizing the temporary data processing results to finally obtain final processing data uploaded by the data.
Data flow and sliding window migration, receiving new data, deleting outdated old data, and updating sliding window data to serve as a new processing starting point. And finally obtaining the accurate input information after verification through parallel calculation, wherein the incorrect input information is filtered.
Further, the wall body includes: direction attribute, material attribute, and morphology class;
Wherein the direction attribute includes: inclined wall, horizontal wall and vertical wall;
The material properties include: bricks, light bricks and concrete;
The morphology classes include: a straight line wall body and an arc wall body.
The embodiment of the invention provides a wall auxiliary drawing method applied to a home decoration system, which comprises the steps of determining a first gray average value of pixel points of a house type picture, and forming a first wall according to first input information; the indication icon moves to be close to one side of the first wall, and a second wall is formed according to the received second input information; the second wall automatically moves towards the first wall so that the first wall and the second wall are partially overlapped to form a connecting wall; forming a wall body after cutting according to the third input information; forming a cut wall body according to the clicked wall body to be cut, finally forming a drawn house type graph, and calculating a second gray average value of the pixel points; comparing the first gray average value with the second gray average value, and if the first gray average value and the second gray average value are the same, finishing drawing; otherwise, different pixel point modifications are found out to draw the house type graph. The technical scheme of the invention effectively solves the problems of high complexity and long error correction time of the existing wall drawing technology, and can achieve the purpose of rapidly checking the correctness of the drawing.
Example 2
The embodiment of the invention discloses a wall drawing device, which is described in detail, referring to a structural schematic diagram of the wall auxiliary drawing device applied to a home decoration system shown in fig. 9, the device can be installed on computer equipment, software for home decoration design can be installed on the computer equipment, and the device mainly comprises the following devices:
the house type image processing module is used for fitting according to a plurality of pieces of input picture information to form a house type image, preprocessing the house type image and calculating a first gray average value of each pixel point;
Uploading the shot house type picture by a user, uploading a wall drawing system, and adaptively preprocessing the picture information according to the picture information content by the system: scaling the picture, simplifying the color and gray processing to obtain the processed picture information, and finally calculating to obtain a first gray average value of each pixel point.
Further, the input plurality of picture information is picture information of each room in the house type map.
The first wall generating module is used for determining a first vertex in a preset coordinate grid as a first coordinate point of the wall, generating four coordinate points according to first input information and forming the first wall; the first coordinate point of the wall body can be one of an upper left vertex or an upper right vertex of the wall body or other two points, and the first input information comprises direction information, a length value, a thickness value and a height value;
specifically, in the 2D wall plan view of the canvas, the wall is identified as a line segment having a certain thickness, including four vertices (each vertex corresponds to a corresponding coordinate), and when the wall is ordered, one of the vertices may be selected as a starting point (i.e., a first vertex). The selection may be made according to actual conditions, and is not limited herein.
The length and thickness of the wall body can be determined by moving a mouse, the accurate size is obtained by inputting through a keyboard, and the thickness and attribute of the wall body are switched through keys of the keyboard; meanwhile, the wall body presents a virtual effect, the wall body to be drawn is displayed in advance, and the wall body is materialized after the wall body is confirmed through a mouse.
The second wall generating module is used for determining a second coordinate point as a starting point when the indication icon moves to be close to one side of the first wall within a certain range, and generating four coordinate points according to the received second input information to form a second wall; the second input information includes direction information, a length value, a thickness value, and a height value;
The wall body connecting module is used for automatically moving the second wall body to the first wall body when the distance between the first wall body and the second wall body is within a certain threshold range, and enabling the first wall body and the second wall body to be partially overlapped to form a connecting wall body; wherein the first wall partially overlapping the second wall comprises: the coordinates of the nearest vertexes in the four vertexes of the first wall body and the second wall body coincide; or the two nearest sides of the four sides of the first wall body and the second wall body are attached;
After the first wall body is obtained, when the indication icon approaches the first wall body within a certain range, the drawing interface automatically defaults to the indication icon to be close to the first wall body, the indication icon can be close to one side of the first wall body, and various specific setting modes are available and are not repeated here;
When the distance between the first wall body and the second wall body is within a certain threshold range, the second wall body automatically moves towards the first wall body, and the coordinates of the nearest vertexes of the four vertexes of the first wall body and the second wall body coincide;
On the other hand, when the distance between the first wall body and the second wall body is within a certain threshold range, the second wall body automatically moves towards the first wall body, and the two nearest edges of the four edges of the first wall body and the second wall body are attached; after the physical wall body is completed, the continuous wall drawing state can be triggered, and the continuous wall drawing state can be automatically exited by right-clicking a mouse or until a closed room is completed.
The room generation module is used for continuously generating a third wall body and a fourth wall body to form a closed room diagram;
The cutoff module is used for judging whether the wall body is cutoff or not, if so, generating four coordinate points according to the clicked wall body to be cutoff and third input information to form a cutoff wall body; the third input information comprises a starting point of a cutting position, cutting direction information and a length value after cutting;
When drawing, the current indication icon position is used as a placement point, a direction arrow in four direction dimensions is generated, and if a drawn wall body exists on the arrow in a certain direction, an auxiliary line is generated on the wall body in the direction. When the wall body needs to be cut off, a user clicks a function menu, the wall body is selected to be cut off, then the wall body needing to be cut off is clicked, an auxiliary line is generated on the wall body, and scale information is arranged on the auxiliary line.
The cutting module is used for judging whether to cut the wall body, if so, the cut wall body is formed according to the clicked wall body to be cut and fourth input information; the fourth input information comprises a starting point of a cutting position, a length value, a thickness value, a height value and direction information of a cutting wall body. The house type drawing processing module is used for forming a house type drawing and calculating a second gray average value of each pixel point of the house type drawing;
The judging and processing module is used for comparing the first gray average value with the second gray average value, and if the first gray average value and the second gray average value are the same, drawing is completed; otherwise, different pixel points are found out, and the drawn house type graph is modified.
And comparing the obtained first gray average value with the second gray average value by the wall drawing system, judging whether the first gray average value and the second gray average value are the same, if so, considering that the drawing is completely correct, and if not, finding out different pixel points to prompt a drawing person so as to enable the drawing person to know the position to be modified. The method can quickly find out the difference.
Furthermore, the wall drawing processing method uses a polygon prism drawing technology. The polygon prism drawing technique can be: drawing techniques such as quadrangular prism, hexagonal prism, and eight-prism.
In the prior art, a single line drawing tool is combined with a marking tool (CAD), and a painting tool draws one stroke by one stroke; or the multi-line drawing tool is combined with the marking tool, and the method is completed through repeated operation for a plurality of times. The two modes adopt an internal line and middle line drawing method, the external line is ignored, the concentration of multi-information processing is insufficient, more repeated actions are caused, the technical implementation difficulty is higher, and the computer computing resource consumption is more. The prior art has the following technical disadvantages:
Design pattern defect: in the process of achieving a target task, a repeated information processing process is often required to be adopted; lack of direct means of solving the problem, need to be accomplished in an indirect way;
The technical cost is high: design pattern defects result in more effort and computation to be done; the connecting wall adopts more prisms, and needs higher technical capacity and calculation capacity; the increase of the calculated amount causes large consumption of calculation resources of a computer; after the technology is difficult to realize, more testing and maintenance resources are needed.
Stability is poor: after the technical realization difficulty is high, the maintenance difficulty is increased, so that problems are solved or the technical upgrading is difficult, the time is long, and the difficulty of handing over by other people is increased.
Further, the device also comprises a verification module for verifying the validity of the first input information, the second input information, the third input information and the fourth input information.
The information processing system can have quite a lot of user input information at the same time, so that the accuracy of data is ensured, the processing time of a computer is further reduced, and the validity of the user input information is verified. The verification steps are as follows:
Receiving input information of a user, wherein the input information comprises data, and positioning corresponding data processing services from a remote server according to a target data source of the data, wherein the data processing services are multiple. The data has the following information: a target data source representing information related to the structured data source; of course, the addition and modification can be carried out according to the requirements of the required home decoration system; a data rule set representing processing rules with the data; and the data result item represents that the processed data is consistent with the uniformly understood data processing result.
Obtaining data stream from input information of a user, setting a sliding window with a size of M1 for the data stream, and dividing a plurality of sub-windows with a size of M2 on the sliding window;
dividing data blocks of a current sub-window according to data attributes of data to obtain an initialization population, calculating a support value of each data block in the current sub-window, judging whether the support value of each data block is larger than a threshold value, and if so, adding the data blocks into an effective set of the current sub-window;
Decomposing data processing into sub-processing requests for the data processing service according to a data rule set of data blocks in an active set, and decomposing the data rule set into a plurality of disjoint rule subsets corresponding to each of the sub-processing requests;
The sub-processing requests and the corresponding rule subsets are distributed to the corresponding data processing services, and each data processing service executes data processing tasks in parallel to respectively obtain temporary data processing results; and each data processing service correspondingly processes the one-to-one sub-processing request and the rule subset, and rapidly processes the data according to the one-to-one sub-processing request and the rule subset.
According to the requirement of the data result item of the data, assembling the temporary data processing result into a final data processing result of the current sub-window; summarizing the temporary data processing results to finally obtain final processing data uploaded by the data.
Data flow and sliding window migration, receiving new data, deleting outdated old data, and updating sliding window data to serve as a new processing starting point. And finally obtaining the accurate input information after verification through parallel calculation, wherein the incorrect input information is filtered.
Further, the wall body includes: direction attribute, material attribute, and morphology class;
Wherein the direction attribute includes: inclined wall, horizontal wall and vertical wall;
The material properties include: bricks, light bricks and concrete;
The morphology classes include: a straight line wall body and an arc wall body.
The embodiment of the invention provides a wall auxiliary drawing device applied to a home decoration system, which is used for forming a first wall according to first input information by determining a first gray average value of pixel points of a house type picture; the indication icon moves to be close to one side of the first wall, and a second wall is formed according to the received second input information; the second wall automatically moves towards the first wall so that the first wall and the second wall are partially overlapped to form a connecting wall; forming a wall body after cutting according to the third input information; forming a cut wall body according to the clicked wall body to be cut, finally forming a drawn house type graph, and calculating a second gray average value of the pixel points; comparing the first gray average value with the second gray average value, and if the first gray average value and the second gray average value are the same, finishing drawing; otherwise, different pixel point modifications are found out to draw the house type graph. The technical scheme of the invention effectively solves the problems of high complexity and long error correction time of the existing wall drawing technology, and can achieve the purpose of rapidly checking the correctness of the drawing.
The computer program product of the readable storage medium provided by the embodiment of the present invention includes a computer readable storage medium storing a program code, where the program code includes instructions for executing the method described in the foregoing method embodiment, and the specific implementation may refer to the foregoing method embodiment and will not be described herein.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a product or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such product or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a commodity or system comprising such elements.
While the foregoing description illustrates and describes the preferred embodiments of the present invention, it is to be understood that the invention is not limited to the forms disclosed herein, but is not to be construed as limited to other embodiments, and is capable of numerous other combinations, modifications and environments and is capable of changes or modifications within the scope of the inventive concept as described herein, either as a result of the foregoing teachings or as a result of the knowledge or technology in the relevant art. And that modifications and variations which do not depart from the spirit and scope of the invention are intended to be within the scope of the appended claims.

Claims (12)

1. The auxiliary drawing method for the wall body applied to the home decoration system is characterized by comprising the following steps of:
Step S101: fitting according to the input multiple pieces of picture information to form a house type picture, preprocessing the house type picture, and calculating a first gray average value of each pixel point;
Step S102: determining a first vertex in a preset coordinate grid as a first coordinate point of the wall body, and generating four coordinate points according to first input information to form a first wall body; the first coordinate point of the wall body can be one of an upper left vertex or an upper right vertex of the wall body or other two points, and the first input information comprises direction information, a length value, a thickness value and a height value;
Step S103: when the indication icon approaches to a certain range of the first wall, the indication icon moves to be close to one side of the first wall, a second coordinate point is determined as a starting point, four coordinate points are generated according to the received second input information, and a second wall is formed; the second input information comprises direction information, a length value, a thickness value and a height value;
step S104: when the distance between the first wall body and the second wall body is within a certain threshold value range, the second wall body automatically moves towards the first wall body, and the first wall body and the second wall body are partially overlapped to form a connecting wall body; wherein the first wall partially overlapping the second wall comprises: the coordinates of the nearest vertexes in the four vertexes of the first wall body and the second wall body coincide; or the two nearest sides of the four sides of the first wall body and the second wall body are attached;
Step S105: continuously repeating the steps S103 and S104 to generate a third wall body and a fourth wall body to form a closed room diagram;
step S106: judging whether wall truncation is carried out, if so, generating four coordinate points according to the clicked wall needing truncation and the third input information to form a wall after truncation; the third input information comprises a starting point of a cutting position, cutting direction information and a length value after cutting;
step S107: judging whether to cut off the wall body, if so, forming the cut wall body according to the clicked wall body to be cut off and fourth input information; the fourth input information comprises a starting point of a cutting position, a length value, a thickness value, a height value and direction information of a cutting wall body;
Step S108: continuing to repeat the steps S103 to S107 to form a drawn house type graph, and calculating a second gray average value of each pixel point of the drawn house type graph;
Step S109: comparing the first gray average value with the second gray average value, and if the first gray average value and the second gray average value are the same, finishing drawing; otherwise, different pixel points are found out, and the drawn house type graph is modified.
2. A method of wall aided rendering for use in a home decoration system according to claim 1, wherein in a 2D wall plan view of the canvas, the wall is identified as a line segment having a thickness, comprising four vertices, wherein when the wall is ordered, one of the vertices is selected as the first vertex.
3. The wall auxiliary drawing method applied to a home decoration system according to claim 2, wherein the wall drawing processing method uses a polygon prism drawing technology.
4. The method for wall auxiliary drawing in a home decoration system according to claim 1, wherein the inputted plurality of picture information is picture information of each room in a house type drawing.
5. The method for auxiliary drawing of wall body in home decoration system according to claim 4, wherein validity verification is performed on the first input information, the second input information, the third input information and the fourth input information.
6. The method for auxiliary drawing of wall body applied to home decoration system according to claim 1, wherein the wall body comprises: direction attribute, material attribute, and morphology class;
Wherein the direction attribute includes: inclined wall, horizontal wall and vertical wall;
The material properties include: bricks, light bricks and concrete;
The morphology classes include: a straight line wall body and an arc wall body.
7. Be applied to supplementary drawing device of wall body in house ornamentation system, characterized in that, the device includes:
the house type image processing module is used for fitting according to a plurality of pieces of input picture information to form a house type image, preprocessing the house type image and calculating a first gray average value of each pixel point;
The first wall generating module is used for determining a first vertex in a preset coordinate grid as a first coordinate point of the wall, generating four coordinate points according to first input information and forming the first wall; the first coordinate point of the wall body can be one of an upper left vertex or an upper right vertex of the wall body or other two points, and the first input information comprises direction information, a length value, a thickness value and a height value;
The second wall generating module is used for determining a second coordinate point as a starting point when the indication icon moves to be close to one side of the first wall within a certain range, and generating four coordinate points according to the received second input information to form a second wall; the second input information comprises direction information, a length value, a thickness value and a height value;
The wall body connecting module is used for automatically moving the second wall body to the first wall body when the distance between the first wall body and the second wall body is within a certain threshold range, and enabling the first wall body and the second wall body to be partially overlapped to form a connecting wall body; wherein the first wall partially overlapping the second wall comprises: the coordinates of the nearest vertexes in the four vertexes of the first wall body and the second wall body coincide; or the two nearest sides of the four sides of the first wall body and the second wall body are attached;
the room generation module is used for continuously generating a third wall body and a fourth wall body to form a closed room diagram;
The cutoff module is used for judging whether the wall body is cutoff or not, if so, generating four coordinate points according to the clicked wall body to be cutoff and third input information to form a cutoff wall body; the third input information comprises a starting point of a cutting position, cutting direction information and a length value after cutting;
The cutting module is used for judging whether to cut the wall body, if so, the cut wall body is formed according to the clicked wall body to be cut and fourth input information; the fourth input information comprises a starting point of a cutting position, a length value, a thickness value, a height value and direction information of a cutting wall body;
The house type drawing processing module is used for forming a house type drawing and calculating a second gray average value of each pixel point of the house type drawing;
The judging and processing module is used for comparing the first gray average value with the second gray average value, and if the first gray average value and the second gray average value are the same, drawing is completed; otherwise, different pixel points are found out, and the drawn house type graph is modified.
8. The wall auxiliary drawing device for use in a home decoration system according to claim 7, wherein the first wall generating module is further configured to, in a plan view of a 2D wall of the canvas, identify the wall as a line segment having a certain thickness, and include four vertices, and select one of the vertices as the first vertex when sorting the wall.
9. A wall auxiliary drawing device for use in a home decoration system according to claim 8, wherein the wall drawing process of the device uses a polygon prism drawing technique.
10. The wall auxiliary drawing device for home decoration system according to claim 7, wherein the inputted plurality of picture information is picture information of each room in the house type drawing.
11. The wall auxiliary drawing device applied to a home decoration system according to claim 10, further comprising a verification module for verifying validity of the first input information, the second input information, the third input information and the fourth input information.
12. The wall auxiliary drawing device applied to a home decoration system according to claim 7, wherein the wall comprises: direction attribute, material attribute, and morphology class;
Wherein the direction attribute includes: inclined wall, horizontal wall and vertical wall;
The material properties include: bricks, light bricks and concrete;
The morphology classes include: a straight line wall body and an arc wall body.
CN202011109761.2A 2020-10-16 2020-10-16 Wall auxiliary drawing method and device applied to home decoration system Active CN112231787B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011109761.2A CN112231787B (en) 2020-10-16 2020-10-16 Wall auxiliary drawing method and device applied to home decoration system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011109761.2A CN112231787B (en) 2020-10-16 2020-10-16 Wall auxiliary drawing method and device applied to home decoration system

Publications (2)

Publication Number Publication Date
CN112231787A CN112231787A (en) 2021-01-15
CN112231787B true CN112231787B (en) 2024-04-19

Family

ID=74118453

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011109761.2A Active CN112231787B (en) 2020-10-16 2020-10-16 Wall auxiliary drawing method and device applied to home decoration system

Country Status (1)

Country Link
CN (1) CN112231787B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106600660A (en) * 2016-12-19 2017-04-26 成都君乾信息技术有限公司 Virtual house type wall body generation method
CN107527372A (en) * 2017-07-12 2017-12-29 深圳市彬讯科技有限公司 A kind of interior wall draws accurately house type output system and its draws application method
CN109711018A (en) * 2018-12-15 2019-05-03 武汉兴联云立方科技有限公司 A kind of Size Dwelling Design method of 2 d-to-3 d
CN110020502A (en) * 2019-04-18 2019-07-16 广东三维家信息科技有限公司 The generation method and device of floor plan
CN111008414A (en) * 2019-11-04 2020-04-14 上海吉舍云计算机技术有限公司 HTML 5-based house type graph drawing method and system
CN111275820A (en) * 2020-01-15 2020-06-12 深圳市华橙数字科技有限公司 Method, device, terminal and storage medium for drawing three-dimensional wall based on two-dimensional plane
CN111340954A (en) * 2020-02-18 2020-06-26 广东三维家信息科技有限公司 House type wall drawing method and model training method and device thereof

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10663294B2 (en) * 2012-02-03 2020-05-26 Eagle View Technologies, Inc. Systems and methods for estimation of building wall area and producing a wall estimation report
CN105264566B (en) * 2013-05-31 2018-06-12 松下知识产权经营株式会社 Model building device, threedimensional model generating means, modeling method and layout simulation's device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106600660A (en) * 2016-12-19 2017-04-26 成都君乾信息技术有限公司 Virtual house type wall body generation method
CN107527372A (en) * 2017-07-12 2017-12-29 深圳市彬讯科技有限公司 A kind of interior wall draws accurately house type output system and its draws application method
CN109711018A (en) * 2018-12-15 2019-05-03 武汉兴联云立方科技有限公司 A kind of Size Dwelling Design method of 2 d-to-3 d
CN110020502A (en) * 2019-04-18 2019-07-16 广东三维家信息科技有限公司 The generation method and device of floor plan
CN111008414A (en) * 2019-11-04 2020-04-14 上海吉舍云计算机技术有限公司 HTML 5-based house type graph drawing method and system
CN111275820A (en) * 2020-01-15 2020-06-12 深圳市华橙数字科技有限公司 Method, device, terminal and storage medium for drawing three-dimensional wall based on two-dimensional plane
CN111340954A (en) * 2020-02-18 2020-06-26 广东三维家信息科技有限公司 House type wall drawing method and model training method and device thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
面向自动家装生成的户型图识别方法研究;黄文;《中国优秀硕士学位论文全文数据库 工程科技Ⅱ 辑》(第03期);C038-456 *

Also Published As

Publication number Publication date
CN112231787A (en) 2021-01-15

Similar Documents

Publication Publication Date Title
US11059174B2 (en) System and method of controlling obstacle avoidance of robot, robot and storage medium
WO2019191638A1 (en) Digital design tools for building construction
CN107564077B (en) method and device for drawing road network
CN116628123B (en) Dynamic slice generation method and system based on spatial database
CN113724401B (en) Three-dimensional model cutting method and device, computer equipment and storage medium
CN115455521A (en) Water supply and drainage machine room system diagram generation method, device, equipment and storage medium
JPH0668207A (en) Method for detecting nearest point on spline or polyline
Lonergan et al. An iterative displacement method for conflict resolution in map generalization
CN112328880A (en) Geographical region clustering method and device, storage medium and electronic equipment
CN111310254A (en) CAD legend recognition method, device, storage medium and electronic equipment
US10928202B2 (en) System and methods for three-dimensional volumetric indoor location geocoding
CN108563915B (en) Vehicle digital simulation test model construction system and method, and computer program
CN112231787B (en) Wall auxiliary drawing method and device applied to home decoration system
CN107679305B (en) Road network model creating method and device
CN112597260A (en) Visualization method and device for air quality mode forecast data
JPH07254075A (en) Method for deforming three-dimensional object and modeling system
CN117094242A (en) Concentration prediction method, concentration prediction device, electronic device, and computer-readable storage medium
CN112231800B (en) BIM graph optimization method and device and computer storage medium
US9152743B2 (en) Computer process for determining best-fitting materials for constructing architectural surfaces
CN112364405A (en) Wall drawing processing method and device and computer readable storage medium
JPH1196400A (en) Shape transforming method
CN112730743A (en) Interaction method and device for air quality mode forecast data
EP3365223A1 (en) Method and system for determining the manufacturing dimensions for a connecting element
Gruppi et al. An Efficient and Topologically Correct Map Generalization Heuristic.
CN111426329A (en) Road generation method and device, computer equipment and storage medium

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
TA01 Transfer of patent application right

Effective date of registration: 20240325

Address after: 518000, Building A, Smart Plaza, No. 4068 Qiaoxiang Road, Gaofa Community, Shahe Street, Nanshan District, Shenzhen City, Guangdong Province, 2202-06

Applicant after: Shenzhen Jinzhuang Technology Decoration Engineering Co.,Ltd.

Country or region after: China

Address before: Room 103, building 2, Taihu new city science and Technology Innovation Park, No.18, Suzhou River Road, Songling Town, Wujiang District, Suzhou City, Jiangsu Province

Applicant before: SUZHOU ZHICHAO INFORMATION TECHNOLOGY CO.,LTD.

Country or region before: China

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant