CN112083898A - Building design drawing printing method and device, computer equipment and storage medium - Google Patents

Building design drawing printing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112083898A
CN112083898A CN202010873154.7A CN202010873154A CN112083898A CN 112083898 A CN112083898 A CN 112083898A CN 202010873154 A CN202010873154 A CN 202010873154A CN 112083898 A CN112083898 A CN 112083898A
Authority
CN
China
Prior art keywords
unit
size
depth image
drawings
printing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010873154.7A
Other languages
Chinese (zh)
Other versions
CN112083898B (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.)
Guangzhou Weilun International Architectural Design Co ltd
Original Assignee
Guangzhou Weilun International Architectural Design 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 Guangzhou Weilun International Architectural Design Co ltd filed Critical Guangzhou Weilun International Architectural Design Co ltd
Priority to CN202010873154.7A priority Critical patent/CN112083898B/en
Publication of CN112083898A publication Critical patent/CN112083898A/en
Application granted granted Critical
Publication of CN112083898B publication Critical patent/CN112083898B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1218Reducing or saving of used resources, e.g. avoiding waste of consumables or improving usage of hardware resources
    • G06F3/1219Reducing or saving of used resources, e.g. avoiding waste of consumables or improving usage of hardware resources with regard to consumables, e.g. ink, toner, paper
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1211Improving printing performance
    • G06F3/1215Improving printing performance achieving increased printing speed, i.e. reducing the time between printing start and printing end
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • G06F3/1241Dividing a job according to job requirements, e.g. black/white and colour pages, covers and body of books, tabs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • G06F3/125Page layout or assigning input pages onto output media, e.g. imposition
    • 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

Abstract

The invention relates to a method, a device, computer equipment and a storage medium for printing an architectural design drawing, wherein the method comprises the steps of acquiring a drawing depth image from a framed target architectural drawing if framing information of the target architectural drawing is acquired; the method comprises the steps of carrying out blocking processing on a drawing depth image to obtain a plurality of unit depth images; respectively carrying out fuzzy recognition on each unit depth image to obtain the size of each unit depth image; comparing the sizes of the unit depth images with preset size threshold ranges respectively to obtain comparison results, and matching a plurality of blank drawings for the unit drawings corresponding to all the unit depth images according to the comparison results; and matching the plurality of types of blank drawings with corresponding printing paper sizes to generate printing instructions of all unit drawings, and sending the printing instructions to a user side associated with the target building drawings. The invention can automatically match printing paper with proper size for the unit drawing in the building drawing, thereby improving the reasonable utilization of the paper.

Description

Building design drawing printing method and device, computer equipment and storage medium
Technical Field
The invention relates to the technical field of CAD drawing printing, in particular to a method and a device for printing architectural design drawings, computer equipment and a storage medium.
Background
At present, in the field of architectural design, CAD software is generally used for drawing plane drawings, which is more convenient and efficient than manual drawing. In the aspect of building design, CAD drawing drawings classify common decoration design drawings and building drawings, the common decoration design drawings are generally used for single set of house type decoration design drawings, a plurality of sets of unit drawings are integrated in the building drawings, and one set or a plurality of sets of building house type drawings exist in one unit drawing, so that the unit drawings have the same or different drawing sizes.
The existing building drawings are printed in CAD software by selecting a single or a plurality of unit drawings in a frame, manually selecting the size of printing paper, and then printing the unit drawings with different sizes one by one.
The above prior art solutions have the following drawbacks: the paper size needs to be manually selected for printing unit drawings of different sizes in the building drawings, the use is very troublesome, sometimes, the paper size is not estimated accurately, the printing paper is too large, and the waste of the paper is further caused.
Disclosure of Invention
In order to overcome the defects of the prior art, the invention provides a printing method and device of an architectural design drawing, computer equipment and a storage medium, which can automatically match printing paper with a proper size for unit drawings in the architectural design drawing, and improve the reasonable utilization of the paper.
The above object of the present invention is achieved by the following technical solutions:
a method of printing architectural design drawings, the method comprising:
if the framing information of the target building drawing is obtained, obtaining a drawing depth image from the framed target building drawing;
carrying out block processing on the drawing depth image to obtain a plurality of unit depth images;
respectively carrying out fuzzy recognition on each unit depth image to obtain the size of each unit depth image;
comparing the sizes of the unit depth images with preset size threshold ranges respectively to obtain comparison results, and matching a plurality of blank drawings for the unit drawings corresponding to all the unit depth images according to the comparison results;
and matching the plurality of types of blank drawings with corresponding printing paper sizes, generating printing instructions of all unit drawings, and sending the printing instructions to a user side associated with the target building drawings.
By adopting the technical scheme, the drawing depth image can be obtained according to the framed target building drawing; the drawing depth images are subjected to blocking processing to obtain a plurality of unit depth images, and each unit depth image is conveniently subjected to subsequent processing, so that the processing speed of the image is increased; through carrying out fuzzy recognition to every unit depth image respectively to can acquire unit depth image size, then through comparing unit depth image size and predetermined size threshold range, match a plurality of types of blank drawings for the unit drawing that all unit depth images correspond, and then match corresponding printing paper size for every type of blank drawing, thereby confirm the printing paper size of all unit drawings in the target building drawing, avoid the paper extravagant, and then play the effect of saving the paper, improve the drawing and the suitability of printing paper size.
The present invention in a preferred example may be further configured to: the drawing depth image comprises a plurality of region blocks; the processing of the drawing depth image in blocks to obtain a plurality of unit depth images specifically includes:
identifying a rectangular wire frame of the region block according to the region block of the drawing depth image;
and acquiring a corresponding unit depth image according to the rectangular wire frame of the region block.
By adopting the technical scheme, the rectangular line frame of the region block is identified, so that the unit depth image can be simply and quickly acquired, and the processing speed of the drawing depth image is improved.
The present invention in a preferred example may be further configured to: the unit depth image comprises at least one floor plan; the fuzzy recognition is respectively carried out on each unit depth image, and the size of each unit depth image is obtained, and the method specifically comprises the following steps:
identifying the overlapped area of the house type components in the unit depth image, and carrying out fuzzy processing to obtain an outer contour frame of the house type image of the unit depth image;
and according to the marked size of the outer contour frame of the house type image, performing superposition calculation on the marked size in the same direction to obtain the unit depth image size.
By adopting the technical scheme, the outer contour frame of the house type image of the unit depth image is obtained firstly, and then the marked size of the outer contour frame of the house type image is superposed and calculated, so that the size of the unit depth image can be accurately obtained.
The present invention in a preferred example may be further configured to: before the step of performing superposition calculation on the labeled sizes in the same direction according to the labeled size of the outer contour frame of the house type image to obtain the size of the unit depth image, the method further comprises the following steps:
acquiring all label pair information of the target building drawing according to the framed target building drawing; acquiring the actual position relation between the mark size and the mark line in each mark pair information;
comparing the actual position relation of the marked size and the marked line with a preset position relation, and judging whether the positions of the marked size and the marked line are disordered or not;
and if the positions of the marked size and the marked line are disordered, adjusting the actual position relationship of the marked size and the marked line to be a preset position relationship.
By adopting the technical scheme, the information marking size is judged by judging the marking size of the marking in the target building drawing
And the position of the marking line is disordered or not, so that the marking size and the marking line which are disordered in position are adjusted to a preset position state, the position of the marking size in the horizontal direction of the drawing is uniformly positioned on the left side of the marking line, the position of the marking size in the vertical direction of the drawing is uniformly positioned on the upper side of the marking line, and the quick superposition calculation of the marking size in the same direction is convenient to follow.
The present invention in a preferred example may be further configured to: the preset size threshold range comprises four levels of size threshold ranges; comparing the sizes of the unit depth images with preset size threshold ranges respectively to obtain comparison results, and matching a plurality of blank drawings for the unit drawings corresponding to all the unit depth images according to the comparison results, specifically comprising:
and traversing and comparing the size of each unit depth image with the size threshold ranges of four grades respectively to obtain at least one type of comparison result not exceeding four types of comparison results, wherein each type of comparison result corresponds to a blank drawing.
By adopting the technical scheme, the size threshold range corresponding to the preset size threshold range of the unit depth image is set to be the size threshold range of four levels, so that the size of each unit depth image is respectively compared with the size threshold ranges of the four levels in a traversing manner, the comparison result of each unit depth image can be determined, each comparison result is matched with one unit drawing according to the comparison result, and the unit depth images can be classified before being printed to obtain the corresponding unit drawings.
The present invention in a preferred example may be further configured to: after the step of matching the unit drawings corresponding to all the unit depth images with a plurality of blank drawings, the method further comprises the following steps:
and calculating the number of each type of blank drawings according to the comparison result.
By adopting the technical scheme, the quantity of each type of blank drawings is accumulated and calculated according to the traversal comparison result of each unit depth image and the preset size threshold range.
The present invention in a preferred example may be further configured to: presetting the corresponding printing paper size for each type of blank drawing; matching each type of blank drawing with the corresponding printing paper size to generate printing instructions of all unit drawings, wherein the printing instructions comprise:
and generating printing instructions of all unit drawings according to the number of each type of blank drawings and the size of printing paper.
By adopting the technical scheme, the printing instruction of the unit drawing is generated according to the number of each type of blank drawing and the printing paper size required by the target building drawing, so that the printing paper size and the number of the unit drawing in the target building drawing can be determined, and the reasonable utilization of the paper is improved.
The second aim of the invention is realized by the following technical scheme:
an architectural design drawing printing apparatus, the apparatus comprising:
the system comprises an acquisition module, a display module and a processing module, wherein the acquisition module is used for acquiring a drawing depth image from a framed target building drawing if a framing message of the target building drawing is acquired;
the partitioning module is used for partitioning the drawing depth image to obtain a plurality of unit depth images;
the identification module is used for respectively carrying out fuzzy identification on each unit depth image to obtain the size of each unit depth image;
the classification module is used for comparing the sizes of the unit depth images with preset size threshold ranges respectively to obtain comparison results, and matching a plurality of blank drawings for the unit drawings corresponding to all the unit depth images according to the comparison results;
and the instruction generating module is used for matching the plurality of types of blank drawings with corresponding printing paper sizes, generating printing instructions of all unit drawings and sending the printing instructions to a user side associated with the target construction drawing.
By adopting the technical scheme, the drawing depth image is obtained from the framed target building drawing through the obtaining module, so that subsequent blocking processing is facilitated; the drawing depth image is subjected to block processing through the block module, so that a plurality of unit depth images can be obtained, each unit depth image is conveniently subjected to subsequent processing, and the image processing speed is improved; fuzzy recognition is carried out on each unit depth image through a recognition module, so that the size of each unit depth image can be obtained; the unit depth image size is compared with a preset size threshold range through a classification module, and a plurality of blank drawings can be matched for unit drawings corresponding to all unit depth images; the corresponding printing paper size can be matched for each type of blank drawing through the instruction generation module, so that paper waste can be reduced, the effect of saving paper is achieved, and the adaptability of the drawing and the paper size is improved.
The third object of the invention is realized by the following technical scheme:
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 above-mentioned building design drawing printing method when executing the computer program.
The fourth object of the invention is realized by the following technical scheme:
a computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of the above-described architectural design drawing printing method.
In summary, the invention includes at least one of the following beneficial technical effects:
1. according to the technical scheme, the drawing depth images of the target building drawing are subjected to blocking processing, the unit depth images are obtained, follow-up processing is conveniently carried out on each unit depth image, and therefore the processing speed of the image can be integrally improved.
2. According to the technical scheme, the unit depth image size is compared with the preset size threshold range, a plurality of types of blank drawings can be matched for the unit drawings corresponding to all the unit depth images, so that the corresponding printing paper size is matched for each type of blank drawings, the paper is saved, and the adaptability of the drawings and the printing paper size is improved.
Drawings
FIG. 1 is a flow chart of an implementation of a method for printing a construction drawing in accordance with an embodiment of the present application;
FIG. 2 is a flowchart illustrating an implementation of step S20 according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating an implementation of step S30 according to an embodiment of the present application;
FIG. 4 is a flowchart illustrating an implementation of step S32 according to an embodiment of the present application;
FIG. 5 is a flowchart illustrating an implementation of step S40 according to an embodiment of the present application;
FIG. 6 is a schematic block diagram of an apparatus for printing a drawing according to an embodiment of the present application;
FIG. 7 is a functional block diagram of a computer device according to an embodiment of the present application.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings.
Examples
In this embodiment, as shown in fig. 1, the invention discloses a method for printing an architectural design drawing, which specifically includes the following steps:
s10: and if the framing information of the target building drawing is obtained, obtaining a drawing depth image from the framed target building drawing.
In this embodiment, the target construction drawing refers to a construction drawing which is opened by a user in CAD software and needs to be printed; the framing message is a target building drawing framing operation message sent to the server by the user side; the drawing depth image is an image generated by acquiring component coordinate information of a target building drawing framed and selected by a user in CAD software.
Specifically, a designer operates CAD software at a user side, a target building drawing is framed and prepared for printing, a server side receives framing information of the target building drawing, and a drawing depth image is extracted from component coordinate information of the framed and selected target building drawing.
S20: and carrying out block processing on the drawing depth image to obtain a plurality of unit depth images.
In this embodiment, the unit depth image refers to a single depth image obtained after the depth image of the drawing is subjected to the block processing.
Specifically, because a plurality of sets of house-type drawings are integrated in the target building drawing, the drawing depth image of the target building drawing is subjected to block processing to obtain a plurality of unit depth images; for example, a drawing depth image of a certain target building drawing includes ten unit depth images, and each unit depth image includes one or two house type drawings.
S30: and respectively carrying out fuzzy recognition on each unit depth image to obtain the size of each unit depth image.
Specifically, blur recognition is performed on each unit depth image, and the size of each unit depth image is obtained, for example, the edge contour of the user-type diagram in the unit depth image is recognized, and the size of each unit depth image is obtained.
S40: and comparing the sizes of the unit depth images with preset size threshold ranges respectively to obtain comparison results, and matching a plurality of blank drawings for the unit drawings corresponding to all the unit depth images according to the comparison results.
In this embodiment, the size threshold range refers to a plurality of size classification ranges preset for the unit depth image size; the blank drawing refers to a drawing with corresponding size matched with the unit depth image; the unit drawing refers to a drawing corresponding to each unit depth image in the target building drawing.
Specifically, each unit depth image size is respectively compared with a preset size threshold range to obtain a comparison result, for example, the preset size threshold range is four or five ranges, each unit depth image size is respectively compared with the four or five size threshold ranges, the size threshold range to which the unit depth image size belongs is determined, and the determination result is used as the comparison result.
Further, according to the comparison result, the unit drawing corresponding to each unit depth image is matched with the blank drawing, so that the target building drawing can be matched with a plurality of types of blank drawings.
S50: and matching the plurality of types of blank drawings with corresponding printing paper sizes to generate printing instructions of all unit drawings, and sending the printing instructions to a user side associated with the target building drawings.
In the present embodiment, the print instruction refers to an instruction for controlling the printer to perform printing of a drawing.
Specifically, each type of blank drawing corresponds to one printing paper size, so that a plurality of types of blank drawings can be matched with the corresponding printing paper sizes, and printing instructions of all unit drawings are generated.
Further, the printing instruction is sent to a user side associated with the target building drawing, and the user determines the printing instruction in the user side CAD software, so that the printer prints all unit drawings in the target building drawing.
In an embodiment, as shown in fig. 2, in step S20, the drawing depth image includes a plurality of region blocks, that is, the drawing depth image is subjected to a block processing to obtain a plurality of unit depth images, which specifically includes:
s21: and identifying a rectangular wire frame of the region block according to the region block of the drawing depth image.
In this embodiment, the area block is obtained by integrating a plurality of sets of house type drawings into a target building drawing and dividing the target building drawing into corresponding area modules.
Specifically, because a plurality of unit drawings are integrated in the target building drawing and are divided by region blocks, each region block has a rectangular wire frame, and correspondingly, the rectangular wire frame of the region block is identified according to the region block in the drawing depth image.
S22: and acquiring a corresponding unit depth image according to the rectangular wire frame of the region block.
Specifically, a unit depth image in the wire frame is obtained according to a rectangular wire frame of the identified region block, where the rectangular wire frame may be a rectangular wire frame or a square wire frame in this embodiment, so that the drawing depth image may be divided into a plurality of corresponding unit depth images.
In an embodiment, the unit depth image includes at least one floor plan, as shown in fig. 3, in step S30, that is, performing blur recognition on each unit depth image, and acquiring the size of each unit depth image specifically includes:
s31: and identifying the overlapped area of the house type components in the unit depth image, and performing fuzzy processing to obtain the outer contour frame of the house type image of the unit depth image.
Specifically, as the unit drawing of the target building drawing comprises at least one house type drawing, the overlapping area of the house type drawing components in the unit drawing is identified, and the outer outline frame of the house type drawing of the unit depth image is extracted through fuzzy processing. For example, if the unit drawing includes a house type drawing of a three-room and two-hall, the outer outline frame of the house type drawing is identified in a fuzzy manner.
S32: and according to the marked size of the outer contour frame of the house type image, performing superposition calculation on the marked size in the same direction to obtain the unit depth image size.
In this embodiment, the dimension is dimension information of the outer profile component of the user-type drawing; the unit depth image size refers to a size of the unit depth image.
Specifically, since the outline frame of the user-type drawing contains the labeled size of the component, the labeled size in the horizontal or vertical direction is subjected to superposition calculation, so that the size of the whole unit depth image is obtained.
In an embodiment, as shown in fig. 4, before step S32, that is, before the step of performing superposition calculation on the labeled dimensions in the same direction according to the labeled dimensions of the outer outline frame of the house drawing to obtain the cell depth image dimension, the method for printing a building design drawing of this embodiment further includes:
s3201: and acquiring all label pair information of the target building drawing according to the framed target building drawing, wherein the label pair information comprises a label size and a label line.
In this implementation, the label pair information refers to coordinate information of each pair of label size and label line in the target architectural drawing.
Specifically, all the label pair information of the target building drawing is obtained according to the framed target building drawing, wherein the label pair information comprises a label size and coordinate information of a label line.
S3202: and acquiring the actual position relation between the mark size and the mark line in each mark pair information.
Specifically, the actual position relationship between the label size and the label line is obtained according to the label size of each label pair information and the coordinate information of the label line, and in this embodiment, the actual position relationship between the label size and the label line may be as follows: the coordinate position marked with the dimension in the horizontal direction of the target building drawing is on the upper side or the lower side of the marking line, and the coordinate position marked with the dimension in the vertical direction of the target building drawing is on the left side or the right side of the marking line.
S3203: and comparing the actual position relation of the marked size and the marked line with a preset position relation, and judging whether the positions of the marked size and the marked line are disordered or not.
In this embodiment, the preset position relationship refers to a preset position rule for the mark size and the mark line.
Specifically, the position rule preset by the marking size and the marking line is preset, in this embodiment, the position rule of the marking size and the marking line is preset to be that the marking size in the horizontal direction of the target building drawing is on the upper side of the marking line, and the marking size in the vertical direction of the target building drawing is on the left side of the marking line.
Furthermore, when the component size is marked in the CAD software, the position of the marked size is wrong, and the marked size is easily marked on the right side or the lower side of the marked line, so that the situation of position error of the marked size and the marked line can be judged and identified by comparing the actual position relation of the marked size and the marked line with the preset position rule.
S3204: and if the positions of the marked size and the marked line are disordered, adjusting the actual position relationship of the marked size and the marked line to be a preset position relationship.
Specifically, if the position error condition of the mark size and the mark line is judged and identified, the currently judged actual position relationship between the mark size and the mark line is adjusted to be in a preset position state, for example, the mark size in the horizontal direction of the drawing is actually located on the right side of the mark line, or the mark size in the horizontal vertical direction of the drawing is actually located on the lower side of the mark line, and for the position error condition, the mark size in the horizontal direction of the drawing is adjusted to be located on the left side of the mark line, or the mark size in the vertical direction of the drawing is adjusted to be located on the upper side of the mark line.
In an embodiment, as shown in fig. 5, in step S40, the preset size threshold range includes four levels of size threshold ranges; comparing the sizes of the unit depth images with a preset size threshold range respectively to obtain a comparison result, and matching a plurality of blank drawings for the unit drawings corresponding to all the unit depth images according to the comparison result, wherein the method specifically comprises the following steps:
s41: and traversing and comparing the size of each unit depth image with the size threshold ranges of four grades respectively to obtain at least one class of comparison results not exceeding four classes, wherein each class of comparison results corresponds to a blank drawing.
Specifically, a size threshold range is preset as a size threshold range of four levels, then, the size of each unit depth image is compared with the size threshold ranges of the four levels in a traversal manner, and the size threshold range of which level each unit depth image belongs to is determined, so that at least one type of comparison result and no more than four types of comparison results are obtained, for example: the four levels of size threshold ranges are divided into: the thickness range of the ceramic is 841-594 mm, 594-420 mm, 420-297 mm and 297 mm.
In an embodiment, as shown in fig. 5, in step S40, after the step of matching the cell drawings corresponding to all the cell depth images with several types of blank drawings, the method for printing a building design drawing of this embodiment further includes:
s42: and calculating the number of each type of blank drawings according to the comparison result.
Specifically, according to the comparison result in step S41, the number of comparison results corresponding to each unit depth image is calculated, so as to obtain the number of corresponding each type of blank drawings.
In the embodiment, in step S50, each type of blank drawing is preset with a corresponding print sheet size; matching each type of blank drawing with the corresponding printing paper size to generate printing instructions of all unit drawings, wherein the printing instructions comprise:
s51: and generating printing instructions of all unit drawings according to the number of each type of blank drawings and the size of printing paper.
Specifically, according to the number and the printing paper size of each type of blank drawing required by the target building drawing, printing instructions of all unit drawings in the target building drawing are generated and sent to a user side, and a user selects the instructions and can designate a printer to print the target building drawing.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Example (b):
in an embodiment, an architectural design drawing printing device is further provided, and the architectural design drawing printing device corresponds to the architectural design drawing printing method in the embodiment one to one. As shown in fig. 6, the apparatus for printing an architectural design drawing includes an acquisition module 601, a blocking module 602, a recognition module 603, a classification module 604, and an instruction generation module 605. The functional modules are explained in detail as follows:
the obtaining module 601 is configured to obtain a drawing depth image from a framed target building drawing if a framing message of the target building drawing is obtained;
a block module 602, configured to perform block processing on the drawing depth image to obtain a plurality of unit depth images;
the recognition module 603 is configured to perform fuzzy recognition on each unit depth image, and obtain a size of each unit depth image;
the classification module 604 is configured to compare the sizes of the unit depth images with preset size threshold ranges to obtain comparison results, and match a plurality of blank drawings for the unit drawings corresponding to all the unit depth images according to the comparison results;
the instruction generating module 605 is configured to match the plurality of types of blank drawings with corresponding printing paper sizes, generate printing instructions for all the unit drawings, and send the printing instructions to the user side associated with the target construction drawing.
Optionally, the blocking module 602 includes:
a recognition unit 6021 for recognizing a rectangular wire frame of the region block based on the region block of the drawing depth image;
an acquiring unit 6022 configured to acquire a corresponding unit depth image from the rectangular wire frame of the region block.
Optionally, the identifying module 603 comprises:
a blurring unit 6031, configured to identify an area where the house type components overlap in the unit depth image, perform blurring processing, and obtain an outer outline frame of the house type image of the unit depth image;
and the calculating unit 6032 is configured to perform superposition calculation on the labeled sizes in the same direction according to the labeled size of the outer contour frame of the house type diagram, and obtain the unit depth image size.
Optionally, the architectural design drawing printing apparatus of this embodiment further includes: a position adjustment module 613.
The position adjusting module 613 is configured to obtain all labeling pair information of the target building drawing according to the framed target building drawing, where the labeling pair information includes a labeling size and a labeling line; acquiring the actual position relation between the mark size and the mark line in each mark pair information; comparing the actual position relation of the marked size and the marked line with a preset position relation, and judging whether the positions of the marked size and the marked line are disordered or not; and if the positions of the marked size and the marked line are disordered, adjusting the actual position relationship of the marked size and the marked line to be a preset position relationship.
Optionally, the classification module 604 comprises:
the comparing unit 6041 is configured to perform traversal comparison on the size of each unit depth image with size threshold ranges of four levels, to obtain at least one type of comparison result and no more than four types of comparison results, where each type of comparison result corresponds to one blank drawing.
Optionally, the classification module 604 further comprises:
and a quantity calculation unit 6042 configured to calculate the quantity of each type of blank drawing according to the comparison result.
Optionally, the instruction generating module 605 includes:
and a printing unit 6051 configured to generate a printing instruction of all the unit drawings according to the number of each type of blank drawings and the printing paper size.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
For specific limitations of the architectural design drawing printing device, reference may be made to the above limitations of the architectural design drawing printing method, which are not described herein again. All or part of each module in the architectural design drawing printing device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the 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 comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used to store image data, coordinate data, and size information (function restrictions that are added to the database). The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of printing an architectural design drawing.
In one embodiment, there is also provided a computer device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
if the framing information of the target building drawing is obtained, obtaining a drawing depth image from the framed target building drawing;
the method comprises the steps of carrying out blocking processing on a drawing depth image to obtain a plurality of unit depth images;
respectively carrying out fuzzy recognition on each unit depth image to obtain the size of each unit depth image;
comparing the sizes of the unit depth images with preset size threshold ranges respectively to obtain comparison results, and matching a plurality of blank drawings for the unit drawings corresponding to all the unit depth images according to the comparison results;
and matching the plurality of types of blank drawings with corresponding printing paper sizes to generate printing instructions of all unit drawings, and sending the printing instructions to a user side associated with the target building drawings.
In the present embodiment, there is also provided a computer readable storage medium having a computer program stored thereon, the computer program when executed by a processor implementing the steps of:
if the framing information of the target building drawing is obtained, obtaining a drawing depth image from the framed target building drawing;
the method comprises the steps of carrying out blocking processing on a drawing depth image to obtain a plurality of unit depth images;
respectively carrying out fuzzy recognition on each unit depth image to obtain the size of each unit depth image;
comparing the sizes of the unit depth images with preset size threshold ranges respectively to obtain comparison results, and matching a plurality of blank drawings for the unit drawings corresponding to all the unit depth images according to the comparison results;
and matching the plurality of types of blank drawings with corresponding printing paper sizes to generate printing instructions of all unit drawings, and sending the printing instructions to a user side associated with the target building drawings.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile 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), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present 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 solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. A method for printing architectural design drawings, the method comprising:
if the framing information of the target building drawing is obtained, obtaining a drawing depth image from the framed target building drawing;
carrying out block processing on the drawing depth image to obtain a plurality of unit depth images;
respectively carrying out fuzzy recognition on each unit depth image to obtain the size of each unit depth image;
comparing the sizes of the unit depth images with preset size threshold ranges respectively to obtain comparison results, and matching a plurality of blank drawings for the unit drawings corresponding to all the unit depth images according to the comparison results;
and matching the plurality of types of blank drawings with corresponding printing paper sizes, generating printing instructions of all unit drawings, and sending the printing instructions to a user side associated with the target building drawings.
2. The method of printing the architectural design drawing according to claim 1, wherein the drawing depth image includes a plurality of region blocks; the processing of the drawing depth image in blocks to obtain a plurality of unit depth images specifically includes:
identifying a rectangular wire frame of the region block according to the region block of the drawing depth image;
and acquiring a corresponding unit depth image according to the rectangular wire frame of the region block.
3. The printing method of architectural design drawing according to claim 1, wherein the unit depth image contains at least one house-type drawing; the fuzzy recognition is respectively carried out on each unit depth image, and the size of each unit depth image is obtained, and the method specifically comprises the following steps:
identifying the overlapped area of the house type components in the unit depth image, and carrying out fuzzy processing to obtain an outer contour frame of the house type image of the unit depth image;
and according to the marked size of the outer contour frame of the house type image, performing superposition calculation on the marked size in the same direction to obtain the unit depth image size.
4. The method for printing an architectural design drawing according to claim 1, wherein before the step of performing superposition calculation on the labeled dimensions in the same direction according to the labeled dimensions of the outer outline frame of the house type drawing to obtain the unit depth image dimension, the method further comprises:
acquiring all label pair information of the target building drawing according to the framed target building drawing, wherein the label pair information comprises a label size and a label line;
acquiring the actual position relation between the mark size and the mark line in each mark pair information;
comparing the actual position relation of the marked size and the marked line with a preset position relation, and judging whether the positions of the marked size and the marked line are disordered or not;
and if the positions of the marked size and the marked line are disordered, adjusting the actual position relationship of the marked size and the marked line to be a preset position relationship.
5. The printing method of the architectural design drawing according to claim 1, wherein the preset size threshold range includes four levels of size threshold ranges; comparing the sizes of the unit depth images with preset size threshold ranges respectively to obtain comparison results, and matching a plurality of blank drawings for the unit drawings corresponding to all the unit depth images according to the comparison results, specifically comprising:
and traversing and comparing the size of each unit depth image with the size threshold ranges of four grades respectively to obtain at least one type of comparison result not exceeding four types of comparison results, wherein each type of comparison result corresponds to a blank drawing.
6. The method for printing the architectural design drawing according to claim 1, wherein after the step of matching the unit drawings corresponding to all the unit depth images with a plurality of types of blank drawings, the method further comprises:
and calculating the number of each type of blank drawings according to the comparison result.
7. The printing method of the architectural design drawing according to claim 6, wherein each type of the blank drawing presets a corresponding printing paper size; matching each type of blank drawing with the corresponding printing paper size to generate printing instructions of all unit drawings, wherein the printing instructions comprise:
and generating printing instructions of all unit drawings according to the number of each type of blank drawings and the size of printing paper.
8. An architectural design drawing printing apparatus, comprising:
the system comprises an acquisition module, a display module and a processing module, wherein the acquisition module is used for acquiring a drawing depth image from a framed target building drawing if a framing message of the target building drawing is acquired;
the partitioning module is used for partitioning the drawing depth image to obtain a plurality of unit depth images;
the identification module is used for respectively carrying out fuzzy identification on each unit depth image to obtain the size of each unit depth image;
the classification module is used for comparing the sizes of the unit depth images with preset size threshold ranges respectively to obtain comparison results, and matching a plurality of blank drawings for the unit drawings corresponding to all the unit depth images according to the comparison results;
and the instruction generating module is used for matching the plurality of types of blank drawings with corresponding printing paper sizes, generating printing instructions of all unit drawings and sending the printing instructions to a user side associated with the target construction drawing.
9. A computer apparatus comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method for printing a design drawing for a building according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, implements the steps of the method for printing a design drawing for a building according to any one of claims 1 to 7.
CN202010873154.7A 2020-08-26 2020-08-26 Building design drawing printing method, device, computer equipment and storage medium Active CN112083898B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010873154.7A CN112083898B (en) 2020-08-26 2020-08-26 Building design drawing printing method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010873154.7A CN112083898B (en) 2020-08-26 2020-08-26 Building design drawing printing method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112083898A true CN112083898A (en) 2020-12-15
CN112083898B CN112083898B (en) 2024-02-23

Family

ID=73729590

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010873154.7A Active CN112083898B (en) 2020-08-26 2020-08-26 Building design drawing printing method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112083898B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113377880A (en) * 2021-05-14 2021-09-10 华仁建设集团有限公司 Building model automatic matching method and system based on BIM

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10287016A (en) * 1997-04-16 1998-10-27 Seiko Epson Corp Apparatus and method for controlling printer, and recording medium
JP2000057192A (en) * 1998-08-11 2000-02-25 Misawa Homes Co Ltd Cad
CN103279628A (en) * 2013-06-19 2013-09-04 福建龙净环保股份有限公司 Method for manufacturing parameterized engineering drawings
CN103823643A (en) * 2012-11-18 2014-05-28 北京毕普创智软件有限公司 Engineering drawing printout method and engineering drawing printout device
CN105988747A (en) * 2015-02-16 2016-10-05 株式会社理光 Printing method and printing device
CN109858452A (en) * 2019-02-15 2019-06-07 滨州建筑工程施工图审查中心 Architectural drawing automatic comparison method and device
CN111062871A (en) * 2019-12-17 2020-04-24 腾讯科技(深圳)有限公司 Image processing method and device, computer equipment and readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10287016A (en) * 1997-04-16 1998-10-27 Seiko Epson Corp Apparatus and method for controlling printer, and recording medium
JP2000057192A (en) * 1998-08-11 2000-02-25 Misawa Homes Co Ltd Cad
CN103823643A (en) * 2012-11-18 2014-05-28 北京毕普创智软件有限公司 Engineering drawing printout method and engineering drawing printout device
CN103279628A (en) * 2013-06-19 2013-09-04 福建龙净环保股份有限公司 Method for manufacturing parameterized engineering drawings
CN105988747A (en) * 2015-02-16 2016-10-05 株式会社理光 Printing method and printing device
CN109858452A (en) * 2019-02-15 2019-06-07 滨州建筑工程施工图审查中心 Architectural drawing automatic comparison method and device
CN111062871A (en) * 2019-12-17 2020-04-24 腾讯科技(深圳)有限公司 Image processing method and device, computer equipment and readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113377880A (en) * 2021-05-14 2021-09-10 华仁建设集团有限公司 Building model automatic matching method and system based on BIM
CN113377880B (en) * 2021-05-14 2024-01-16 华仁建设集团有限公司 Building model automatic matching method and system based on BIM

Also Published As

Publication number Publication date
CN112083898B (en) 2024-02-23

Similar Documents

Publication Publication Date Title
CN110796082B (en) Nameplate text detection method and device, computer equipment and storage medium
CN111242126A (en) Irregular text correction method and device, computer equipment and storage medium
CN110675940A (en) Pathological image labeling method and device, computer equipment and storage medium
CN110569341A (en) method and device for configuring chat robot, computer equipment and storage medium
CN109934227A (en) System for recognizing characters from image and method
CN114529837A (en) Building outline extraction method, system, computer equipment and storage medium
CN114022403A (en) Method and device for detecting defects of display panel
CN107437085A (en) A kind of method, apparatus and readable storage medium storing program for executing of lifting OCR discriminations
WO2023284784A1 (en) Bar code image restoration method and apparatus, computer device and storage medium
CN111814905A (en) Target detection method, target detection device, computer equipment and storage medium
CN112083898A (en) Building design drawing printing method and device, computer equipment and storage medium
CN106940804B (en) Architectural engineering material management system form data method for automatically inputting
CN110909731A (en) Vehicle rescue scene quality inspection method, device, equipment and storage medium
CN111191653A (en) License plate recognition method and device, computer equipment and storage medium
CN110781887A (en) License plate screw detection method and device and computer equipment
CN117255064B (en) Control method, device, equipment and medium of multifunctional credit and trauma integrated machine
CN114049540A (en) Method, device, equipment and medium for detecting marked image based on artificial intelligence
CN113298069A (en) Steel seal character recognition method and device, computer equipment and storage medium
CN113537184A (en) OCR (optical character recognition) model training method and device, computer equipment and storage medium
CN112231809A (en) Repair project supervision method, system, equipment and storage medium
CN113215732B (en) Full-automatic template sewing numerical control method and system
CN115620329A (en) Stamp deviation intelligent identification method based on artificial intelligence
CN115937107A (en) Two-stage gray fabric defect detection method, system, medium and computer
CN114387429A (en) Vehicle property right processing method, device, equipment and medium based on RPA and AI
CN111209957B (en) Vehicle part identification method, 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
GR01 Patent grant
GR01 Patent grant