CN112633188B - Wall identification method, device, equipment and medium for house type map - Google Patents

Wall identification method, device, equipment and medium for house type map Download PDF

Info

Publication number
CN112633188B
CN112633188B CN202011577948.5A CN202011577948A CN112633188B CN 112633188 B CN112633188 B CN 112633188B CN 202011577948 A CN202011577948 A CN 202011577948A CN 112633188 B CN112633188 B CN 112633188B
Authority
CN
China
Prior art keywords
house type
closed
type area
area
wall
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
CN202011577948.5A
Other languages
Chinese (zh)
Other versions
CN112633188A (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 Bincent Technology Co Ltd
Original Assignee
Shenzhen Bincent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Bincent Technology Co Ltd filed Critical Shenzhen Bincent Technology Co Ltd
Priority to CN202011577948.5A priority Critical patent/CN112633188B/en
Publication of CN112633188A publication Critical patent/CN112633188A/en
Application granted granted Critical
Publication of CN112633188B publication Critical patent/CN112633188B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/40Document-oriented image-based pattern recognition
    • G06V30/42Document-oriented image-based pattern recognition based on the type of document
    • G06V30/422Technical drawings; Geographical maps
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/30Noise filtering
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention relates to the technical field of house type graph data processing, and discloses a house type graph wall body identification method, device, equipment and medium, wherein the method comprises the following steps: obtaining a copy to be processed; performing image preprocessing on the copy to be processed to obtain a simplified image; performing wall polygon recognition on the simplified image through the house type region recognition model to recognize a plurality of house type regions; dredging each house type area to obtain wall areas corresponding to each house type area; and combining all the wall areas to generate the wall of the house type drawing corresponding to the copy drawing to be processed. The invention realizes the automatic identification of the wall area of the copy graph to be processed and the automatic combination of the walls for generating the house type graph, reduces the labor cost, improves the wall identification efficiency of the house type graph, improves the accuracy and quality of the wall identification of the house type graph, can provide an accurate house type graph for the subsequent building construction, and ensures the construction progress.

Description

Wall identification method, device, equipment and medium for house type map
Technical Field
The invention relates to the technical field of house type graph data processing, in particular to a wall identification method, device, equipment and medium for a house type graph.
Background
At present, along with the rapid development of Chinese real estate economy, more and more building constructions are required to be designed like spring bamboo shoots after raining, most building designers use pens to design on paper, copy drawings of paper files are output after the design is finished, professional drawing staff draws on a computer according to the copy drawings, the house type drawings are drawn and the walls of the house type drawings are determined, in the process, the professional drawing staff needs to spend a great deal of time to read the copy drawings, and the situation that the house type drawings are inconsistent or misunderstood with the walls of the house type designed by the copy drawings exists due to the fact that the drawn house type drawings are inconsistent, the walls of the house type drawings are the main body frame of the house type drawings, the layout plan of all rooms is determined, and the basis of construction unit construction is changed due to the fact that a great deal of investment is required if mistakes are found when the construction is carried out according to the walls of the incorrect house type drawings, so that huge losses are caused, and the construction cost and the cost of the house are seriously affected are seriously.
Disclosure of Invention
The invention provides a method, a device, computer equipment and a storage medium for recognizing the wall of a house type graph, which realize the automatic recognition of the wall area of a copy graph to be processed and the automatic combination of the wall of the house type graph, and the invention does not need to draw manually, improves the wall recognition efficiency of the house type graph and improves the accuracy and quality of the wall recognition of the house type graph.
A wall body identification method of a house type graph comprises the following steps:
obtaining a copy to be processed;
performing image preprocessing on the copy to be processed to obtain a simplified image;
performing wall polygon recognition on the simplified image through a house type area recognition model to recognize a plurality of house type areas;
dredging each house type area to obtain wall areas corresponding to each house type area;
and combining all the wall areas to generate the wall of the house type graph corresponding to the copy graph to be processed.
A wall identification device for a house type map, comprising:
the acquisition module is used for acquiring the copy to be processed;
the preprocessing module is used for preprocessing the image of the copy to be processed to obtain a simplified image;
the identification module is used for carrying out wall polygon identification on the simplified image through a house type area identification model to identify a plurality of house type areas;
the dredging module is used for carrying out dredging treatment on each house type area to obtain wall body areas corresponding to each house type area;
and the generation module is used for combining all the wall body areas to generate the wall body of the house type drawing corresponding to the copy drawing to be processed.
A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the wall identification method of the house pattern diagram described above when the computer program is executed.
A computer readable storage medium storing a computer program which, when executed by a processor, performs the steps of the wall identification method of the house type graph described above.
The invention provides a wall body identification method, a wall body identification device, computer equipment and a storage medium of a house type drawing, wherein a copy drawing to be processed is obtained; performing image preprocessing on the copy to be processed to obtain a simplified image; performing wall polygon recognition on the simplified image through a house type area recognition model to recognize a plurality of house type areas; dredging each house type area to obtain wall areas corresponding to each house type area; the wall body of the house type graph corresponding to the to-be-processed copy graph is generated by combining all the wall body areas, so that the image preprocessing and polygon recognition of the to-be-processed copy graph are realized, the house type areas are automatically recognized, the wall body areas are obtained by dredging the house type areas, the wall body of the house type graph corresponding to the to-be-processed copy graph is finally generated by combining, the wall body areas of the to-be-processed copy graph are automatically recognized, the wall body of the house type graph is automatically combined and generated, manual drawing is not needed, the cost is reduced, the wall body recognition efficiency of the house type graph is improved, the accuracy and quality of the wall body recognition of the house type graph are improved, the accurate house type graph can be provided for subsequent building construction, and the construction progress is ensured.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments of the present invention will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic view of an application environment of a wall identification method of a house type graph according to an embodiment of the present invention;
FIG. 2 is a flow chart of a wall identification method of a house type graph according to an embodiment of the invention;
FIG. 3 is a flowchart of step S20 of a wall identification method of a house type graph according to an embodiment of the present invention;
FIG. 4 is a flowchart of step S20 of a wall identification method of a house type graph according to another embodiment of the present invention;
FIG. 5 is a flowchart of step S30 of a wall identification method of a house type graph according to an embodiment of the present invention;
FIG. 6 is a schematic block diagram of a conversion module of a wall identification device of a house type map in an embodiment of the invention;
FIG. 7 is a schematic diagram of a computer device in accordance with an embodiment of the invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The wall body identification method of the house type graph provided by the invention can be applied to an application environment as shown in fig. 1, wherein a client (computer equipment) communicates with a server through a network. Among them, clients (computer devices) include, but are not limited to, personal computers, notebook computers, smartphones, tablet computers, and portable wearable devices. The server may be implemented as a stand-alone server or as a server cluster composed of a plurality of servers.
In an embodiment, as shown in fig. 2, a wall identification method for a house type map is provided, and the technical scheme mainly includes the following steps S10-S50:
s10, obtaining a copy to be processed.
Understandably, the copy to be processed is an image obtained by photographing or scanning a copy drawn by a user by hand, and the copy to be processed needs to be converted into a house type drawing and a wall in the house type drawing needs to be identified.
S20, performing image preprocessing on the copy to be processed to obtain a simplified image.
Understandably, the image preprocessing is a process of graying, removing noise, enhancing lines in an image, drawing straight lines, filtering an image and the like, and the effective lines of the image to be processed can be extracted and enhanced by preprocessing the image to be processed, so that useful information in the image to be processed is reserved, noise is removed, and the simplified image is obtained, and the simplified image is the image to be processed after the image preprocessing.
In one embodiment, as shown in fig. 3, in the step S20, that is, the image preprocessing is performed on the copy to be processed to obtain a simplified image, including:
s201, carrying out edge denoising treatment on the copy to be treated to obtain a denoised image.
The edge denoising process can be understood as a process of performing graying treatment on the copy image to be treated, converting a color image into a gray image, denoising the converted gray image by applying fourier transformation to obtain a process image, denoising the line edges in the process image by using an eight-domain denoising method so as to remove edge noise of the line and obtain the denoising image, wherein the principle of the eight-domain denoising method is to sequentially traverse all non-white points in the image, calculate the number of non-white points in eight adjacent points around the image, and if the number is smaller than a preset fixed value, the point is a noise point, and the denoising image is the image from which the noise in the copy image to be treated is removed.
S202, performing line enhancement processing on the denoising image to obtain an enhanced image.
The line enhancement processing is a process of enhancing the sharpness of the line by increasing the contrast between adjacent pixels in the denoised image by using a sharpening filter, thereby sharpening the image, enhancing the contrast, and making the picture more vivid, especially for the surrounding of the line, and enhancing the contrast of the pixels around the line, thereby enhancing the sharpness of the line, and the enhanced image is an image in which the line in the denoised image is enhanced.
And S203, carrying out linearization processing on lines in the enhanced image by using a straight line generation algorithm to obtain a basic image.
It is to be understood that, since a line drawn by a drawn copy graph may have a certain degree of curvature, it is necessary to perform linearization processing on a line in the copy graph, that is, to convert a line having a certain degree of curvature into a straight line, where the line generation algorithm is an algorithm for identifying pixels in an image that are approximate to a line and generating a line, where the line generation algorithm may be set according to requirements, for example, the line generation algorithm may be a numerical differentiation method (DDA algorithm) or a cloth Lei Senhan m line algorithm (Bresenham algorithm), and the linearization processing is a processing for identifying pixels in an enhanced image that are approximate to a line, identifying pixels in a certain direction of a line, and generating a line according to the pixels in a line, where the base image is the enhanced image after being subjected to linearization processing.
And S204, performing linear connection on the basic image to obtain the simplified image.
Understandably, the straight line connection is a process of connecting the two ends of the generated straight line with surrounding adjacent pixels in the base image, and the simplified image is the base image after the straight line connection.
The invention realizes that the edge denoising treatment is carried out on the copy image to be treated to obtain a denoising image; performing line enhancement processing on the denoising image to obtain an enhanced image; a linear generation algorithm is applied to conduct linearization processing on lines in the enhanced image, and a basic image is obtained; and the basic images are connected in a straight line to obtain the simplified image, so that the relevant operation of image preprocessing on the copy image to be processed is realized, the useful information of the copy image to be processed can be enhanced, the lines in the copy image to be processed are enhanced, and the recognition accuracy and reliability are improved for subsequent wall recognition.
S30, performing wall polygon recognition on the simplified image through the house type area recognition model, and recognizing a plurality of house type areas.
The house type area recognition model is a model for recognizing a closed or non-closed polygonal area containing rectangular house type characteristics from an input image, wherein the house type area recognition model is a trained neural network model, the recognition process of wall polygon recognition is to extract the rectangular house type characteristics and the characteristics of the closed or non-closed polygonal area through the house type area recognition model, and a closed or non-closed polygonal area containing the rectangular house type characteristics is recognized according to the extracted rectangular house type characteristics and the extracted characteristics of the closed or non-closed polygonal area, so that the house type area is obtained, the rectangular house type characteristics are characteristics of two adjacent parallel straight lines in the same direction, and the house type area is a polygonal area containing the rectangular house type characteristics.
In an embodiment, as shown in fig. 4, in step S30, that is, the simplified image is subjected to wall polygon recognition by the house type area recognition model, a plurality of house type areas are recognized, including:
s301, rectangular house type features are carried out on the simplified image through the house type region identification model.
Understandably, the simplified image is extracted by the house type area recognition model, the rectangular house type features are features with rectangular features and two adjacent parallel straight lines in the same direction, the rectangular features are related features with rectangular similarity, such as four intersection points, features with mutually perpendicular lines and the like, and most house type structures are rectangular structures and most house type sides of the rectangular house type are taken as walls, so that the wall in the house type graph can be recognized more accurately by extracting the rectangular house type features.
S302, carrying out rectangular area identification on the simplified image according to the extracted rectangular house type features, and identifying rectangular areas in the simplified image.
Understandably, according to the extracted rectangular house type feature, a rectangular area in the simplified image is identified, and the rectangular area identification process may be an identification process of a target detection model based on a far R-CNN or an identification process of a target detection model based on an SSD, that is, the house type area identification model includes a network structure of the target detection model, and the network structure of the target detection model may be a network structure of the far R-CNN or a network structure of the SSD, so that a rectangular area having the rectangular house type feature in the simplified image may be identified.
S303, performing edge filtering processing on all the rectangular areas to obtain the house type areas corresponding to the rectangular areas one by one.
Understandably, the edge filtering processing is performed on the identified rectangular area to obtain the house type area, the house type area indicates the rectangular house type area in the copy, the edge filtering processing is performed on the rectangular area extracted from the simplified image and marked with the corresponding position of the rectangular area in the simplified image, and the extracted rectangular area is subjected to the smoothing processing, namely, a processing process of removing short suspended lines in an intersection point is performed on the extracted rectangular area, wherein the short suspended lines are lines, the distance between the other end of the lines and the intersection point is smaller than a preset value, and the other end of the lines are not connected with other lines.
The invention realizes rectangular house type characteristics of the simplified image through the house type area identification model; performing rectangular region identification on the simplified image according to the extracted rectangular house type features, and identifying a rectangular region in the simplified image; and carrying out edge filtering processing on all the rectangular areas to obtain the house type areas corresponding to the rectangular areas one by one, so that the extraction and identification of the rectangular house type characteristics are realized, the your rectangular area in the simplified image is identified, the house type area is obtained through the edge filtering processing, the house type area with the rectangle is automatically and quickly identified, manual identification is not needed, a foundation is laid for the subsequent wall body in the house type graph can be identified more accurately, and the accuracy and quality of the wall body identification are improved.
S40, dredging the house type areas to obtain wall body areas corresponding to the house type areas;
understandably, the dredging process is to judge whether the house type area is a surrounding closed polygon, if the house type area is a surrounding closed polygon, then the house type area is subjected to the closing dredging process to obtain a wall area corresponding to the house type area, and if the house type area is not a surrounding closed polygon, then the house type area is subjected to the non-closing dredging process to obtain the wall area corresponding to the house type area, so that the wall areas corresponding to the house type areas one by one can be obtained through the dredging process, and the wall area is the house type area after the dredging process.
In an embodiment, in step S40, that is, the dredging processing is performed on each house type area to obtain a wall area corresponding to each house type area, including:
s401, detecting whether each house type area is a surrounding closed polygon.
It is understood that the enclosed polygon is a closed polygon including an inner side and an outer side, all the inner sides form a closed polygon, all the outer sides form a closed polygon, the outer sides enclose the inner sides, that is, the inner sides of the closed polygon are enclosed in the closed polygon area, whether the house type area meets the requirement of enclosing the closed polygon is judged, the outer sides are edges of the polygon at the outermost periphery in the house type area, the inner sides are edges of the polygon except the outer sides in the house type area, and the edges of the polygon can be formed, because a user draws a copy drawing to always draw a rectangle similar to the closed rectangle to represent a house type or a room, the drawn rectangle similar to the closed rectangle includes an inner wall and an outer wall, the condition that the enclosed polygon does not belong to the house type or the room is avoided, the missing of the enclosed polygon is avoided, and the wall body can be accurately identified.
And S402, when the house type area is detected to be a closed polygon, performing closed dredging treatment on the house type area to obtain the wall area corresponding to the house type area.
Understandably, if the house type area is detected to be a closed polygon, performing closed dredging treatment on the house type area, wherein the closed type of the house type area is judged through an inner and outer covering method, dredging processes of corresponding cutting treatment modes are performed according to different closed types, and the wall area corresponding to the house type area is obtained through the closed dredging treatment.
In an embodiment, as shown in fig. 5, in step S402, that is, performing a closed dredging process on the house type area to obtain the wall area corresponding to the house type area, the method includes:
s4021, judging the same direction of the closed outer edge and the closed inner edge of the house type area by an inner-outer covering method, and identifying the closed type of the house type area.
The method for determining the indoor and outdoor coverage is a method for determining the type of the indoor type area according to the length of the closed outer edge and the closed inner edge in the indoor type area and the moving intersection length, wherein the type of the closed type comprises an outer coverage inner type, an inner coverage outer type and a non-coverage type.
The moving intersection length is the length of the intersection between the closed outer edge and the closed inner edge after the closed outer edge moves to be overlapped with the closed inner edge.
In an embodiment, in step S4021, that is, the step of determining, by the inside-outside coverage method, the same direction of the closed outer edge and the closed inner edge of the house type area, and identifying the closed type of the house type area includes:
s40211, if the lengths of the closed outer edges in the house type area are all larger than the lengths of the closed inner edges parallel to the closed outer edges, determining the closed type of the house type area as an outer coverage inner type.
It is understood that if the lengths of the closed outer edges in the house type area are all greater than the lengths of the closed inner edges parallel to the closed outer edges, it is explained that all polygons formed by the closed outer edges can cover all polygons formed by the closed inner edges, and the closed type of the house type area is determined as an outer cover inner type.
S40212, if the length of any one of the closed outer edges in the house type area is smaller than the length of the closed inner edge parallel to the closed outer edge, and the moving intersection length of the closed outer edge and the closed inner edge is equal to the length of the closed outer edge, determining the closed type of the house type area as an inner coverage outer type; the moving intersection length is the length of the intersection between the closed outer edge and the closed inner edge after the closed outer edge moves to be overlapped with the closed inner edge.
It is understood that if there is one of the closed outer edges in the house type area having a length smaller than that of the closed inner edge parallel thereto and a movement intersection length of the closed outer edge and the closed inner edge being equal to that of the closed outer edge, the closed type of the house type area is determined as an inner-covering outer type, wherein the movement intersection length is a length at which the closed outer edge has an intersection with the closed inner edge after moving toward the closed inner edge to coincide with the closed inner edge.
S40213, if the length of any one of the closed outer edges in the house type area is smaller than the length of the closed inner edge parallel to the closed outer edge, and the moving intersection length of the closed outer edge and the closed inner edge is smaller than the length of the closed outer edge, determining the closed type of the house type area as a non-covering type.
It will be appreciated that if there is one of the closed outer edges in the house type area having a length smaller than that of the closed inner edge parallel thereto and a length of a movement intersection of the closed outer edge and the closed inner edge is smaller than that of the closed outer edge, the closed type of the house type area is determined as a non-overlapping type.
S4022, cutting and identifying all the outer sealing edges and all the inner sealing edges in the house type area according to the sealing type of the house type area, and identifying the outer cutting edges and the inner cutting edges of the house type area.
Understandably, for the seal types corresponding to the house type area, cutting and identifying all the seal outer edges and all the seal inner edges in the house type area, and identifying the cut outer edges and the cut inner edges which need to be cut, wherein the cutting and identifying are the identification processes of the cut outer edges and the cut inner edges which need to be cut according to the seal types and the similar intervals.
In an embodiment, in step S4022, that is, the identifying, according to the seal type of the house type area, all seal outer edges and all seal inner edges in the house type area, identifies the cut outer edges and the cut inner edges of the house type area includes:
s40221, when the closed type of the house type area is an outer covering inner type, determining the closed outer edge and the closed inner edge corresponding to the smallest similar distance as the cut outer edge and the cut inner edge respectively; the similar distance is the distance between the closed outer edge and the closed inner edge which are adjacently parallel in the same direction.
It will be appreciated that the closed outer edge and the closed inner edge corresponding to the minimum closed pitch in most house type drawings cannot be used as walls due to thinness, and it is necessary to cut the closed inner edge and the closed outer edge, and therefore, if the closed type of the house type area is an outer covering inner type, the closed outer edge corresponding to the minimum closed pitch is determined as the cut outer edge, and the closed inner edge corresponding to the minimum closed pitch is determined as the cut inner edge, wherein the closed pitch is a distance between the closed outer edge and the closed inner edge which are parallel.
And S40222, when the closed type of the house type area is an inner covering outer type, determining the closed outer edge and the closed inner edge which correspond to the same type of space with the length of the closed outer edge smaller than that of the closed inner edge and the minimum same type of space as the cutting outer edge and the cutting inner edge respectively.
It will be appreciated that most of the window areas in the house type drawings will present areas of the outer wall being recessed, i.e. a certain place of the outer wall will be lower than an outer wall of an adjacent area, the outer wall of the place will be closer to the inner wall than the adjacent outer wall, and the place will not be taken as a wall, because the window needs to be opened there, so that the window areas in the house type drawings will present areas of the outer wall being recessed similar to the type of the inner covering outer, the closed outer edge corresponding to the closed outer edge having a length smaller than the closed inner edge and the smallest like spacing needs to be determined as the cut outer edge, and the closed inner edge corresponding to the closed outer edge having a length smaller than the closed inner edge and the smallest like spacing needs to be determined as the cut inner edge.
S40223, when the closed type of the house type area is of a non-covering type, determining the closed outer edge with the movement intersection length smaller than the length of the closed inner edge as the cutting outer edge, and determining the closed inner edge parallel to the cutting outer edge as the cutting inner edge.
It will be appreciated that in most house type drawings, the air conditioner outer machine placement area will be in the protruding area of the side of the outer wall, i.e. the side area of the outer wall will be higher than the outer wall of the adjacent area, and this area cannot be used as a wall, so that this area is similar to the type of non-covering each other, the closed outer edge having a moving intersection length with the closed inner edge smaller than the length thereof needs to be determined as the cut outer edge, and the closed inner edge parallel to the cut outer edge needs to be determined as the cut inner edge.
S4023, cutting and connecting the house type area according to the outer cutting edge and the inner cutting edge of the house type area to obtain the wall area corresponding to the house type area.
It is to be understood that the house type area is cut in a direction perpendicular to the parallel direction of the outer cutting edge and the inner cutting edge, a cutting area where the outer cutting edge and the inner cutting edge are intersected is cut, the cutting area includes an area of the outer cutting edge and an area of the inner cutting edge, then the cut points of the house type area after cutting are correspondingly connected, namely after the cutting area is cut, the cut points after cutting are correspondingly connected with adjacent cut points after cutting are present on the inner cutting edge and the outer cutting edge, the cut points are closed, and the house type area after cutting and connecting is determined as the wall area corresponding to the house type area.
The invention realizes that the closed outer edge and the closed inner edge of the house type area are judged in the same direction by an inner-outer covering method, and the closed type of the house type area is identified; cutting and identifying all the outer sealing edges and all the inner sealing edges in the house type area according to the sealing type of the house type area, and identifying the outer cutting edges and the inner cutting edges of the house type area; according to the outside and inside cutting edges of the house type area, the house type area is cut and connected to obtain the wall area corresponding to the house type area, so that the sealing type is automatically identified through an inside and outside covering method, the corresponding cutting and connection are carried out according to the sealing type, the wall area corresponding to the house type area surrounding the sealing polygon is automatically generated, the manual identification and cutting processes are reduced, and the accuracy and reliability of wall identification are improved.
And S403, when the house type area is detected not to be enclosed and closed polygon, carrying out non-enclosed dredging treatment on the house type area to obtain the wall area corresponding to the house type area.
Understandably, if it is detected that the house type area is not enclosed in a closed polygon, performing non-closed dredging treatment on the house type area, wherein the non-closed dredging treatment is to cut a non-closed opening and cut areas with non-intersecting distance between two adjacent sides of the house type area smaller than a preset distance value, because the areas are not suitable for being used as walls, and thus, the house type area after the non-closed dredging treatment is determined as the wall area corresponding to the house type area.
The invention realizes the purpose of detecting whether each house type area is a surrounding closed polygon or not; when the house type area is detected to be a closed polygon, performing closed dredging treatment on the house type area to obtain the wall area corresponding to the house type area; when the house type area is detected not to be enclosed polygon, non-enclosed dredging treatment is carried out on the house type area to obtain the wall area corresponding to the house type area, so that whether the house type area is enclosed polygon or not is judged, when the house type area is detected to be enclosed polygon, enclosed dredging treatment is carried out on the house type area, when the house type area is detected not to be enclosed polygon, non-enclosed dredging treatment is carried out on the house type area, wall areas corresponding to all the house type areas are obtained, the wall identification is more targeted, the accuracy of the wall identification is improved, the missing of the treatment of the house type area enclosed polygon is avoided, and the quality of the wall identification is improved.
S50, combining all the wall body areas to generate the wall body of the house type drawing corresponding to the copy drawing to be processed.
The process of combination generation is to splice according to the corresponding positions of the house type areas marked in the simplified image, namely, the wall areas are placed in the simplified image according to the corresponding positions of the wall areas, smooth transition connection processing is carried out on the placed wall areas and lines in the simplified image, namely, suspended points between the wall areas and the simplified image are connected, splicing operation is achieved, and the spliced simplified image is determined to be the wall of the house type image corresponding to the copy image to be processed.
The invention realizes the copying of the image to be processed by acquiring the copy image to be processed; performing image preprocessing on the copy to be processed to obtain a simplified image; performing wall polygon recognition on the simplified image through a house type area recognition model to recognize a plurality of house type areas; dredging each house type area to obtain wall areas corresponding to each house type area; the wall body of the house type graph corresponding to the to-be-processed copy graph is generated by combining all the wall body areas, so that the image preprocessing and polygon recognition of the to-be-processed copy graph are realized, the house type areas are automatically recognized, the wall body areas are obtained by dredging the house type areas, the wall body of the house type graph corresponding to the to-be-processed copy graph is finally generated by combining, the wall body areas of the to-be-processed copy graph are automatically recognized, the wall body of the house type graph is automatically combined and generated, manual drawing is not needed, the cost is reduced, the wall body recognition efficiency of the house type graph is improved, the accuracy and quality of the wall body recognition of the house type graph are improved, the accurate house type graph can be provided for subsequent building construction, and the construction progress is ensured.
In an embodiment, a wall body recognition device for a house type graph is provided, where the wall body recognition device for the house type graph corresponds to the wall body recognition method for the house type graph in the above embodiment one by one. As shown in fig. 6, the wall body recognition device of the house type graph comprises an acquisition module 11, a preprocessing module 12, a recognition module 13, a dredging module 14 and a generation module 15. The functional modules are described in detail as follows:
an acquisition module 11, configured to acquire a copy to be processed;
a preprocessing module 12, configured to perform image preprocessing on the copy to be processed, so as to obtain a simplified image;
the recognition module 13 is used for recognizing the wall polygons of the simplified images through the house type area recognition model, and recognizing a plurality of house type areas;
the dredging module 14 is used for carrying out dredging treatment on each house type area to obtain wall areas corresponding to each house type area;
and the generation module 15 is used for combining all the wall body areas to generate the wall body of the house type drawing corresponding to the copy drawing to be processed.
For specific limitation of the wall identification device of the house type graph, reference may be made to the limitation of the wall identification method of the house type graph hereinabove, and no further description is given here. All or part of each module in the wall body identification device of the house type graph can be realized by software, hardware and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 7. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a wall identification method for a house type map.
In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the wall identification method of the house type graph in the above embodiment when executing the computer program.
In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, which when executed by a processor implements the wall identification method of the house type graph in the above embodiment.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention, and are intended to be included in the scope of the present invention.

Claims (7)

1. A wall body identification method of a house type graph is characterized by comprising the following steps:
obtaining a copy to be processed;
performing image preprocessing on the copy to be processed to obtain a simplified image;
performing wall polygon recognition on the simplified image through a house type area recognition model to recognize a plurality of house type areas;
dredging each house type area to obtain wall areas corresponding to each house type area;
combining all the wall areas to generate a wall of the house type drawing corresponding to the copy drawing to be processed;
the dredging treatment is carried out on each house type area to obtain wall body areas corresponding to each house type area, and the dredging treatment comprises the following steps:
detecting whether each house type area is a surrounding closed polygon;
when the house type area is detected to be a closed polygon, performing closed dredging treatment on the house type area to obtain the wall area corresponding to the house type area;
when the house type area is detected not to be enclosed with a closed polygon, carrying out non-closed dredging treatment on the house type area to obtain the wall area corresponding to the house type area;
the step of performing closed dredging treatment on the house type area to obtain the wall area corresponding to the house type area comprises the following steps:
judging the same direction of the closed outer edge and the closed inner edge of the house type area by an inner-outer covering method, and identifying the closed type of the house type area;
cutting and identifying all the outer sealing edges and all the inner sealing edges in the house type area according to the sealing type of the house type area, and identifying the outer cutting edges and the inner cutting edges of the house type area;
cutting and connecting the house type area according to the outer cutting edge and the inner cutting edge of the house type area to obtain the wall area corresponding to the house type area;
the method for identifying the closed type of the house type area by judging the same direction of the closed outer edge and the closed inner edge of the house type area through an inner and outer covering method comprises the following steps:
if the lengths of the closed outer edges in the house type area are all larger than the lengths of the closed inner edges parallel to the closed outer edges, determining the closed type of the house type area as an outer coverage inner type;
if the length of any one of the closed outer edges in the house type area is smaller than the length of the closed inner edge parallel to the closed outer edge, and the moving intersection length of the closed outer edge and the closed inner edge is equal to the length of the closed outer edge, determining the closed type of the house type area as an inner coverage outer type; the moving intersection length is the length of the intersection between the closed outer edge and the closed inner edge after the closed outer edge moves to be overlapped with the closed inner edge;
and if the length of any one of the closed outer edges in the house type area is smaller than the length of the closed inner edge parallel to the closed outer edge, and the moving intersection length of the closed outer edge and the closed inner edge is smaller than the length of the closed outer edge, determining the closed type of the house type area as a non-covering type.
2. The method for recognizing wall of house type drawing according to claim 1, wherein the image preprocessing is performed on the copy drawing to be processed to obtain a simplified image, comprising:
performing edge denoising treatment on the copy image to be treated to obtain a denoised image;
performing line enhancement processing on the denoising image to obtain an enhanced image;
a linear generation algorithm is applied to conduct linearization processing on lines in the enhanced image, and a basic image is obtained;
and carrying out linear connection on the basic image to obtain the simplified image.
3. The wall body recognition method of the house type map according to claim 1, wherein the wall body polygon recognition is performed on the simplified image through a house type region recognition model, and a plurality of house type regions are recognized, comprising:
rectangular house type feature extraction is carried out on the simplified image through the house type region identification model;
performing rectangular region identification on the simplified image according to the extracted rectangular house type features, and identifying a rectangular region in the simplified image;
and performing edge filtering treatment on all the rectangular areas to obtain the house type areas corresponding to the rectangular areas one by one.
4. The wall identification method of the house type map as set forth in claim 1, wherein the identifying the cut outer edges and the cut inner edges of the house type area by cutting and identifying all the closed outer edges and all the closed inner edges of the house type area according to the closed type of the house type area includes:
when the closed type of the house type area is an outer covering inner type, determining the closed outer edge and the closed inner edge corresponding to the minimum similar distance as the cutting outer edge and the cutting inner edge respectively; the similar distance is the distance between the closed outer edge and the closed inner edge which are adjacently parallel in the same direction;
when the closed type of the house type area is an inner covering outer type, determining the closed outer edge and the closed inner edge which correspond to the same type of space with the length of the closed outer edge smaller than that of the closed inner edge and the smallest distance between the closed outer edge and the closed inner edge as the cutting outer edge and the cutting inner edge respectively;
and when the closed type of the house type area is of a mutually non-covering type, determining the closed outer edge with the movement intersection length smaller than the length of the closed inner edge as the cutting outer edge, and determining the closed inner edge parallel to the cutting outer edge as the cutting inner edge.
5. The utility model provides a wall body recognition device of house type drawing which characterized in that includes:
the acquisition module is used for acquiring the copy to be processed;
the preprocessing module is used for preprocessing the image of the copy to be processed to obtain a simplified image;
the identification module is used for carrying out wall polygon identification on the simplified image through a house type area identification model to identify a plurality of house type areas;
the dredging module is used for carrying out dredging treatment on each house type area to obtain wall body areas corresponding to each house type area;
the generation module is used for combining all the wall areas to generate the wall of the house type diagram corresponding to the copy diagram to be processed;
the dredging treatment is carried out on each house type area to obtain wall body areas corresponding to each house type area, and the dredging treatment comprises the following steps:
detecting whether each house type area is a surrounding closed polygon;
when the house type area is detected to be a closed polygon, performing closed dredging treatment on the house type area to obtain the wall area corresponding to the house type area;
when the house type area is detected not to be enclosed with a closed polygon, carrying out non-closed dredging treatment on the house type area to obtain the wall area corresponding to the house type area;
the step of performing closed dredging treatment on the house type area to obtain the wall area corresponding to the house type area comprises the following steps:
judging the same direction of the closed outer edge and the closed inner edge of the house type area by an inner-outer covering method, and identifying the closed type of the house type area;
cutting and identifying all the outer sealing edges and all the inner sealing edges in the house type area according to the sealing type of the house type area, and identifying the outer cutting edges and the inner cutting edges of the house type area;
cutting and connecting the house type area according to the outer cutting edge and the inner cutting edge of the house type area to obtain the wall area corresponding to the house type area;
the method for identifying the closed type of the house type area by judging the same direction of the closed outer edge and the closed inner edge of the house type area through an inner and outer covering method comprises the following steps:
if the lengths of the closed outer edges in the house type area are all larger than the lengths of the closed inner edges parallel to the closed outer edges, determining the closed type of the house type area as an outer coverage inner type;
if the length of any one of the closed outer edges in the house type area is smaller than the length of the closed inner edge parallel to the closed outer edge, and the moving intersection length of the closed outer edge and the closed inner edge is equal to the length of the closed outer edge, determining the closed type of the house type area as an inner coverage outer type; the moving intersection length is the length of the intersection between the closed outer edge and the closed inner edge after the closed outer edge moves to be overlapped with the closed inner edge;
and if the length of any one of the closed outer edges in the house type area is smaller than the length of the closed inner edge parallel to the closed outer edge, and the moving intersection length of the closed outer edge and the closed inner edge is smaller than the length of the closed outer edge, determining the closed type of the house type area as a non-covering type.
6. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the wall identification method of the house pattern of any one of claims 1 to 4 when the computer program is executed.
7. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the wall identification method of the house type graph according to any one of claims 1 to 4.
CN202011577948.5A 2020-12-24 2020-12-24 Wall identification method, device, equipment and medium for house type map Active CN112633188B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011577948.5A CN112633188B (en) 2020-12-24 2020-12-24 Wall identification method, device, equipment and medium for house type map

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011577948.5A CN112633188B (en) 2020-12-24 2020-12-24 Wall identification method, device, equipment and medium for house type map

Publications (2)

Publication Number Publication Date
CN112633188A CN112633188A (en) 2021-04-09
CN112633188B true CN112633188B (en) 2024-03-15

Family

ID=75326092

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011577948.5A Active CN112633188B (en) 2020-12-24 2020-12-24 Wall identification method, device, equipment and medium for house type map

Country Status (1)

Country Link
CN (1) CN112633188B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114022895B (en) * 2021-10-27 2024-05-10 上海品览数据科技有限公司 Accurate identification method for house type in building professional residence plan

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007115238A (en) * 2005-09-20 2007-05-10 Fukui Computer Kk Device, method, program for processing two-dimensional cad data and closed area identification method
CN107122528A (en) * 2017-04-13 2017-09-01 广州乐家数字科技有限公司 A kind of floor plan parametrization can edit modeling method again
CN107330979A (en) * 2017-06-30 2017-11-07 电子科技大学中山学院 Vector diagram generation method and device for building house type and terminal
CN109118022A (en) * 2018-09-18 2019-01-01 东易日盛家居装饰集团股份有限公司 A kind of layout method and device
CN109753918A (en) * 2018-12-29 2019-05-14 江苏艾佳家居用品有限公司 Wall recognition methods and system in a kind of floor plan
CN111340954A (en) * 2020-02-18 2020-06-26 广东三维家信息科技有限公司 House type wall drawing method and model training method and device thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007115238A (en) * 2005-09-20 2007-05-10 Fukui Computer Kk Device, method, program for processing two-dimensional cad data and closed area identification method
CN107122528A (en) * 2017-04-13 2017-09-01 广州乐家数字科技有限公司 A kind of floor plan parametrization can edit modeling method again
CN107330979A (en) * 2017-06-30 2017-11-07 电子科技大学中山学院 Vector diagram generation method and device for building house type and terminal
CN109118022A (en) * 2018-09-18 2019-01-01 东易日盛家居装饰集团股份有限公司 A kind of layout method and device
CN109753918A (en) * 2018-12-29 2019-05-14 江苏艾佳家居用品有限公司 Wall recognition methods and system in a kind of floor plan
CN111340954A (en) * 2020-02-18 2020-06-26 广东三维家信息科技有限公司 House type wall drawing method and model training method and device thereof

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"Rectilinear Floor Plans";Krishnendra Shekhawat等;《Communications in Computer and Information Science》;20170618;全文 *
"基于形状与边缘特征的户型图识别研究";江州;《中国优秀硕士学位论文全文数据库》;20180215;全文 *

Also Published As

Publication number Publication date
CN112633188A (en) 2021-04-09

Similar Documents

Publication Publication Date Title
CN111008597B (en) Space identification method and device for CAD drawing, electronic equipment and storage medium
CN110414507B (en) License plate recognition method and device, computer equipment and storage medium
WO2021098796A1 (en) Image processing method and apparatus, device, and computer readable storage medium
US10878173B2 (en) Object recognition and tagging based on fusion deep learning models
CN109726661B (en) Image processing method and apparatus, medium, and computing device
CN110796082B (en) Nameplate text detection method and device, computer equipment and storage medium
US9501700B2 (en) System and method for construction estimation using aerial images
CN110569341B (en) Method and device for configuring chat robot, computer equipment and storage medium
CN107480666B (en) Image capturing device, method and device for extracting scanning target of image capturing device, and storage medium
CN111275730A (en) Method, device and equipment for determining map area and storage medium
WO2023065792A1 (en) Image processing method and apparatus, electronic device, and computer-readable storage medium
CN111353489A (en) Text image processing method and device, computer equipment and storage medium
CN109753838A (en) Two-dimensional code identification method, device, computer equipment and storage medium
JP5468332B2 (en) Image feature point extraction method
CN111368638A (en) Spreadsheet creation method and device, computer equipment and storage medium
CN110188495B (en) Method for generating three-dimensional house type graph based on two-dimensional house type graph of deep learning
CN110647885B (en) Test paper splitting method, device, equipment and medium based on picture identification
CN112348836A (en) Method and device for automatically extracting building outline
JP7429307B2 (en) Character string recognition method, device, equipment and medium based on computer vision
CN112633188B (en) Wall identification method, device, equipment and medium for house type map
CN113221897B (en) Image correction method, image text recognition method, identity verification method and device
CN113963353A (en) Character image processing and identifying method and device, computer equipment and storage medium
EP3480728B1 (en) Method and system for extracting information from hand-marked industrial inspection sheets
US20170146462A1 (en) System and method of analyzing a curved surface
CN111340040B (en) Paper character recognition method and device, electronic 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
GR01 Patent grant
GR01 Patent grant