Method and product for arranging construction drawing marking locations
The computer system automatically intercepts areas, determines labeling features, and generates movement actions, which solves the problems of low efficiency and lack of aesthetics in construction drawing labeling layout, and achieves efficient and beautiful labeling layout that meets industry standards.
Patent Information
- Application Number
- CN202111539649.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-15
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-12-15
AI Technical Summary
In the prior art, the layout of construction drawing annotations mainly relies on manual labor, which is inefficient and requires a large amount of work, and automatic layout is difficult to meet the requirements of aesthetics and industry rules.
By intercepting multiple areas on the construction drawings in the computer system, determining the annotation features, generating movement actions and automatically adjusting the annotation positions to ensure that the annotations are not blocked or covered, and based on preset rules or expert evaluations, provide beautiful And the marking position complies with the industry's common rules.
It realizes the automatic and reasonable arrangement of construction drawing annotations, improves work efficiency, meets the general expectations of the industry, reduces manual workload, and improves the utilization of annotation space.
Smart Images

Figure CN114357545B
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to the field of computer-aided design, and more particularly, to a computer-implemented method, apparatus, device, medium, and program product for arranging construction drawing annotation locations. Background Art
[0002] In computer-aided design for projects (e.g., construction projects), a large number of components need to be annotated due to the complexity of the project. Annotation is an important part of construction drawings and contains a large amount of information, including size, model, etc. At present, the arrangement of drawing annotations (e.g., reasonable arrangement so that multiple annotations do not block or cover each other) is mostly done manually, which is inefficient and requires a large amount of work. Therefore, there is a need for a solution that can automatically arrange the annotation positions of construction drawings. Summary of the invention
[0003] Embodiments of the present disclosure provide a computer-implemented method, apparatus, device, medium, and program product for arranging construction drawing annotation locations.
[0004] In a first aspect of the present disclosure, a computer-implemented method for arranging the position of annotations on a construction drawing is provided. The method includes: based on multiple annotations on the construction drawing and components respectively associated with the multiple annotations, multiple regions are intercepted from the construction drawing, wherein each region in the multiple regions corresponds to a corresponding at least one annotation in the multiple annotations and a component associated with one annotation; multiple annotation features included in each region are determined, and one annotation feature in the multiple annotation features includes the position and size of the annotation and the position and size of the component associated with the annotation; based on each region and the multiple annotation features included in each region, a annotation to be selected from the multiple annotations is determined, and a movement action of the selected annotation is generated; and the position of the selected annotation on the construction drawing is arranged according to the movement action.
[0005] In a second aspect of the present disclosure, a device for arranging the position of construction drawing annotations is provided. The device includes: a cropping module, configured to cut out multiple regions from a construction drawing according to multiple annotations on the construction drawing and components respectively associated with the multiple annotations, wherein each region in the multiple regions corresponds to at least one annotation in the multiple annotations and a component associated with one annotation; an annotation selection module, configured to determine multiple annotation features included in each region, one annotation feature in the multiple annotation features including the position and size of the annotation and the position and size of the component associated with the annotation; and an annotation moving module, configured to determine a annotation to be selected from the multiple annotations according to each region and the multiple annotation features included in each region, and generate a moving action of the selected annotation; and arrange the position of the selected annotation on the construction drawing according to the moving action.
[0006] In a third aspect of the present disclosure, an electronic device is provided, comprising: a memory and a processor, wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the method according to the first aspect.
[0007] In a fourth aspect of the present disclosure, a computer-readable storage medium is provided, wherein one or more computer instructions are stored on the computer-readable storage medium, wherein the one or more computer instructions are executed by a processor to implement the method according to the first aspect.
[0008] In a fifth aspect of the present disclosure, a computer program product is provided, wherein the computer program product comprises one or more computer instructions, wherein the one or more computer instructions are executed by a processor to implement the method according to the first aspect.
[0009] This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to limit the scope of the claimed subject matter. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:
[0011] Figure 1 A schematic diagram illustrating an example environment for using a computer-implemented method for arranging construction drawing annotation locations according to certain embodiments of the present disclosure;
[0012] Figure 2 A schematic diagram showing multiple annotations with occlusion or overlap according to certain embodiments of the present disclosure is shown;
[0013] Figure 3 A flowchart illustrating a computer-implemented method for arranging construction drawing annotation locations according to certain embodiments of the present disclosure is shown;
[0014] Figure 4 A schematic diagram of detecting overlapping annotations according to certain embodiments of the present disclosure is shown;
[0015] Figure 5 A flowchart illustrating a computer-implemented method for arranging construction drawing annotation locations according to certain embodiments of the present disclosure is shown;
[0016] Figure 6A block diagram showing an apparatus for arranging construction drawing annotation positions according to certain embodiments of the present disclosure is shown;
[0017] Figure 7 A block diagram showing an apparatus for arranging construction drawing annotation positions according to certain embodiments of the present disclosure; and
[0018] Figure 8 A block diagram of a computing system is shown in which one or more embodiments of the present disclosure may be implemented.
[0019] Throughout the drawings, the same or similar reference numbers denote the same or similar elements. DETAILED DESCRIPTION
[0020] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein, which are instead provided to provide a more thorough and complete understanding of the present disclosure.
[0021] The accompanying drawings and embodiments are only for illustrative purposes and are not intended to limit the scope of protection of the present disclosure.
[0022] The term "including" and its variations used in this document are open-ended, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment". The relevant definitions of other terms will be given in the following description.
[0023] The inventors have noticed that currently, the arrangement of construction drawing annotations (for example, reasonable arrangement so that multiple annotations do not block or cover each other) is mostly done manually, which has the disadvantages of low efficiency and large amount of work.
[0024] The inventors also noticed that the location of annotations is highly personalized. For example, for the annotations drawn by some novices, although there may be no problem of mutual obstruction or overlap between the annotations on the construction drawings, they lack aesthetic appeal and do not conform to the layout rules commonly used in the industry. At this time, if experts make modifications, it will also take a lot of time and energy, which will lead to increased costs and reduced efficiency.
[0025] In order to at least partially solve some of the above shortcomings, an embodiment of the present disclosure provides a computer-implemented method for arranging the position of construction drawing annotations. The method includes: according to multiple annotations on the construction drawing and components respectively associated with the multiple annotations, multiple regions are intercepted from the construction drawing, wherein each region in the multiple regions corresponds to at least one annotation in the multiple annotations and a component associated with one annotation; determining multiple annotation features included in each region, one annotation feature in the multiple annotation features includes the position and size of the annotation and the position and size of the component associated with the annotation; according to each region and the multiple annotation features included in each region, determining a annotation to be selected from the multiple annotations, and generating a moving action of the selected annotation; and arranging the position of the selected annotation on the construction drawing according to the moving action.
[0026] Therefore, the method disclosed in the present invention can automatically arrange the construction drawing annotation positions reasonably, so that there is no problem of occlusion or overlap between multiple annotations. And it can provide annotation positions that are aesthetically pleasing and in line with industry conventions based on pre-set rules or expert evaluations. In this way, not only the work efficiency of annotating construction drawings is greatly improved, but the work effect can also meet the general expectations of the industry. Therefore, the working principle and mechanism of the present invention are significantly different from any known method.
[0027] In the following description, some embodiments will be discussed with reference to construction drawings of buildings, such as schools, hospitals, etc. However, it should be understood that this is only to enable ordinary technicians in the field to better understand the principles and ideas of the embodiments of the present disclosure, and is not intended to limit the scope of the present disclosure in any way.
[0028] Figure 1 A schematic diagram of an example environment for using a computer-implemented method for arranging construction drawing annotation locations is shown, according to certain embodiments of the present disclosure.
[0029] like Figure 1 As shown, at the execution subject 101 (e.g., a computer system, a server, etc.), a computerized representation of a construction drawing is obtained (e.g., received), for example, a building information model (BIM) construction drawing, and examples of these BIM data include, for example, model elements, temporary elements, model data with graphics, non-graphic parameter data, and other forms of result data (text, pictures, XML, etc.). The annotations can be based on these data to reflect the size, model, etc. of the corresponding components in the construction drawing.
[0030] In some embodiments, the data may come from one or more of the terminal devices 102, 103, and 104. Figure 3 To describe the method proposed in this disclosure. It should be understood that Figure 1The example environment 100 shown in the example is merely illustrative and is not intended to limit the scope of the present disclosure. The example environment 100 may also include various additional devices, apparatuses, and / or modules. Figure 1 The modules shown in the figure are also only illustrative and are not intended to limit the scope of the present disclosure. In some embodiments, some modules can be integrated into one physical entity, or further split into more modules.
[0031] Figure 2 A schematic diagram of multiple annotations with occlusion or overlap according to some embodiments of the present disclosure is shown. As shown in the figure, when multiple annotations overlap (e.g., area 201), the exact content of the annotations cannot be known, which does not meet the drawing specification. In some cases, even if there is no overlap between the annotations, the arrangement of the annotations is messy and does not meet the requirements of beauty and neatness.
[0032] Figure 3 A flow chart of a computer-implemented method for arranging construction drawing annotation locations according to certain embodiments of the present disclosure is shown.
[0033] For ease of description, a building will be used as an example to describe the process of the computer-implemented method for arranging construction drawing annotation positions implemented by the method 300. However, as mentioned above, this is merely exemplary and is not intended to limit the scope of the present disclosure in any way. The embodiments of the method 300 described herein can also be used in the process of the computer-implemented method for arranging construction drawing annotation positions of any other appropriate engineering.
[0034] like Figure 3 As shown, at box 302, multiple regions are intercepted from the construction drawing according to multiple annotations on the construction drawing and components respectively associated with the multiple annotations, wherein each region in the multiple regions corresponds to at least one annotation in the multiple annotations and a component associated with one annotation. As an example only, if the construction drawing includes 10 components, each component corresponds to a annotation, then the component and the annotation corresponding to the component can be divided into one region, and the construction drawing can be divided into 10 regions in total. Among them, the shape of each region can be a rectangle, a square, etc., and the present disclosure does not limit this. Places without annotations (i.e., parts not related to annotations) can be discarded, which can simplify the problem and save computing resource overhead.
[0035] At box 304, multiple annotation features included in each region are determined, and one of the multiple annotation features includes the position and size of the annotation and the position and size of the component associated with the annotation. As an example only, when the shape of the region is a rectangle or a square, the location of the edge of the region can be represented in the form of coordinates. For example, the coordinates of the four vertices of the region can be represented as (x1, y1), (x2, y2), (x3, y3), (x4, y4), then the coordinates of the center of the region can be determined based on the geometric relationship, as well as the area or range of the region.
[0036] At block 306, a label to be selected from the plurality of labels is determined based on each region and the plurality of label features included in each region, and a movement action of the selected label is generated. In some embodiments, image detection or recognition technology can be used to detect whether the label overlaps and obtain an indication of the overlap. In some embodiments, the indication can also include components, labels, and the correlation between the components and the labels.
[0037] Figure 4 A schematic diagram of detecting overlapping annotations according to certain embodiments of the present disclosure is shown. As shown in the figure, an image (e.g., multiple regions after segmentation) is input into a CNN (convolutional neural network) image encoder, and each annotation feature encoder MLP (multi-layer perceptron) extracts the features of the annotations, which are normalized through a PointerNet network to obtain the probability of selecting the annotation in the next step. Based on the obtained probability, the annotation that needs to be moved is selected. MLP and CNN can be pre-trained, and the pre-trained data can be a set of labeled training data that has been manually processed.
[0038] Return to Figure 3 In some embodiments, the first neural network model can be used to generate annotation features, and the obtained annotation features can be the latent space expression of the construction drawing. For example, the first neural network model can be a convolutional neural network, and the annotation features are the encoding vectors obtained via the convolutional neural network. Since the convolution kernel can be configured (for example, trained) to extract the characteristics of the annotation, the part of the construction drawing related to the annotation can be extracted and encoded to generate annotation features. In this article, the annotation features can also be referred to as the construction drawing environment state. The concept of "environmental state" refers to the relevant concept in reinforcement learning, that is, "construction drawing" is regarded as "environment". Correspondingly, "annotation" is regarded as "agent". The layout effect of the annotation is regarded as "reward", thereby transforming the layout problem into solving how to maximize the environmental reward through the movement of multiple agents.
[0039] At block 308 , the position of the selected annotation on the construction drawing is arranged according to the movement action.
[0040] In some embodiments, the moving action may include at least one of indicating that the selected annotation moves upward, downward, leftward, rightward, or flips, and the distance of movement corresponding to the moving action. For example, for a segmented area, there is a situation where the annotated text overlaps each other, then an example of the moving action may be an instruction to move one of the annotated texts to the right. For another example, another example of the moving action may be an instruction to move one of the annotated texts to the left. It is understood that these instructions include the distance of movement.
[0041] In some embodiments, the move action may also include an indication indicating that the selected annotation has finished moving. As an example, if, for a certain annotation, the annotation does not need to be moved or has reached the expected position after moving, the move action may include an indication indicating that the annotation has finished moving.
[0042] In some embodiments, a second neural network model may be used to determine the movement action, wherein the first neural network model is different from the second neural network model. By way of example only, the second neural network model may be a PointerNet network.
[0043] Figure 5 A flow chart is shown of a computer-implemented method 500 for arranging construction drawing annotation locations, according to certain embodiments of the present disclosure.
[0044] like Figure 5 As shown, blocks 502, 504, 506, and 508 are Figure 3 The functions of the boxes 302, 304, 306, and 308 in the method 500 correspond to each other. For the sake of brevity, the description of the boxes 502, 504, 506, and 508 will refer to the description of the boxes 302, 304, 306, and 308. In addition, the method 500 may further include a box 510. In some embodiments, at box 510, a leader corresponding to the selected annotation may be generated according to the move action, and a new construction drawing may be generated according to the move action and the selected annotation.
[0045] In some embodiments, method 500 may further include box 512. At box 512, a reinforcement learning algorithm may be used to train the second neural network model, wherein the reinforcement learning algorithm calculates a quality score for the second neural network model based on a predetermined rule or evaluation, the quality score indicating the effect of the second neural network model on the arrangement of the mobile action, and the evaluation includes inputting the mobile action into a third neural network to output a quality score, wherein the third neural network is trained by a predetermined label set. In some embodiments, for the processing method of the inverse reinforcement learning algorithm and the policy gradient algorithm, reference may be made to the paper Guided Cost Learning: Deep Inverse Optimal Control via Policy Optimization by Chelsea Finn et al., Computer Science, 2015, 28, the entire contents of which are incorporated herein by reference.
[0046] In some embodiments, even if the annotations cannot be completely arranged due to the constraints of the construction drawing space, the method of the present disclosure can also give the best layout arrangement based on the actual space, thereby providing technical personnel with corresponding references and reducing manual workload.
[0047] In some embodiments, block 514 is further included. At block 514, the evaluation includes inputting the movement action into a third neural network to output a quality score, wherein the third neural network is trained by a predetermined label set.
[0048] By implementing method 300 or method 500, it is possible to automatically arrange the construction drawing annotation positions reasonably so that there is no problem of occlusion or overlap between multiple annotations. And it is possible to provide annotation positions that are aesthetically pleasing and in line with industry conventions based on pre-set rules. In this way, not only is the work efficiency of annotating construction drawings greatly improved, but the work results can also meet the general expectations of the industry. At the same time, the inconvenience of manually setting rules is avoided, so that the results of arranging annotations are similar to manual results. In addition, annotations can be arranged within a limited space to improve the utilization rate of the annotation space. Since the style of existing drawings can be learned, the model can be pre-trained using existing drawings, and the existing prior knowledge can be fully learned, the aesthetics of the arrangement annotations can be further improved. In addition, the optimal arrangement based on the actual space can provide technical personnel with corresponding references and reduce the manual workload.
[0049] Figure 6 A block diagram of an apparatus 600 for arranging construction drawing annotation positions according to some embodiments of the present disclosure is shown.
[0050] The cropping module 602 is configured to cut out multiple areas from the construction drawing according to multiple annotations on the construction drawing and components respectively associated with the multiple annotations, wherein each of the multiple areas corresponds to at least one of the multiple annotations and a component associated with one annotation.
[0051] The annotation selection module 604 is configured to determine a plurality of annotation features included in each region, wherein one of the plurality of annotation features includes a position and a size of the annotation and a position and a size of a component associated with the annotation.
[0052] The annotation moving module 606 is configured to determine a annotation to be selected from multiple annotations according to each area and multiple annotation features included in each area, and generate a moving action for the selected annotation; and arrange the position of the selected annotation on the construction drawing according to the moving action.
[0053] In some embodiments, the moving action may include at least one of indicating that the selected annotation moves upward, downward, leftward, rightward, or flipped, and a distance of movement corresponding to the moving action.
[0054] In some embodiments, the move action may also include an indication that the selected annotation has ended the move.
[0055] In some embodiments, the annotation selection module 604 may be further configured to generate annotation features using a first neural network model, and the annotation movement module 606 may be further configured to determine movement actions using a second neural network model, wherein the first neural network model is different from the second neural network model.
[0056] In some embodiments, the annotation moving module 606 is further configured to generate a leader corresponding to the selected annotation according to the moving action, and generate a new construction drawing according to the moving action and the selected annotation.
[0057] Figure 7 A block diagram of an apparatus 700 for arranging construction drawing annotation positions according to some embodiments of the present disclosure is shown.
[0058] like Figure 7 As shown, the cropping module 702, the annotation selection module 704 and the annotation movement module 706 are Figure 6 The functions of the cropping module 602, the annotation selection module 604, and the annotation moving module 606 in the embodiment correspond to each other. For the sake of brevity, the disclosure will not repeat them here. In addition, in some embodiments, the apparatus 700 may further include a construction drawing updating module 708, which is configured to generate a lead line corresponding to the selected annotation according to the moving action, and generate a new construction drawing based on the lead line.
[0059] In some embodiments, the apparatus may further include a training module 710 configured to train the second neural network model using a reinforcement learning algorithm, wherein the reinforcement learning algorithm calculates a quality score for the second neural network model based on predetermined rules or evaluations, the quality score indicating the effect of the second neural network model on the arrangement of mobile actions.
[0060] In some embodiments, the training module 710 may be further configured as follows: wherein the evaluation comprises inputting the movement action into a third neural network to output a quality score, wherein the third neural network is trained by a predetermined label set.
[0061] For the specific implementation process of the apparatus 600 and the apparatus 700, reference may be made to the description of the method 300 and the method 500, and the disclosure will not repeat them here. It can be understood that the apparatus 600 and the apparatus 700 of the disclosure can achieve the same technical effect as the method 300 and the method 500, thereby achieving at least one advantage of the computer-implemented method 300 and the method 500 for arranging the construction drawing annotation position as described above.
[0062] Figure 8 A block diagram of a computing system 800 is shown in which one or more embodiments of the present disclosure may be implemented. Figure 3 The method 300 and Figure 5 The illustrated method 500 may be implemented by a computing system 800 . Figure 8 The computing system 800 shown is merely an example and should not be construed as limiting the functionality and scope of use of the implementations described herein.
[0063] like Figure 8 As shown, computing system 800 is in the form of a general purpose computing device. Components of computing system 800 may include, but are not limited to, one or more processors or processing units 800, memory 820, one or more input devices 830, one or more output devices 840, storage 850, and one or more communication units 860. Processing unit 800 may be an actual or virtual processor and is capable of performing various processes according to the program stored in memory 820. In a multi-processing system, multiple processing units execute computer executable instructions to increase processing capabilities.
[0064] The computing system 800 typically includes a plurality of computer-readable media. Such media may be any available media accessible to the computing system 800, including but not limited to volatile and non-volatile media, removable and non-removable media. The memory 820 may be a volatile memory (e.g., registers, caches, random access memory (RAM)), a non-volatile memory (e.g., a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), flash memory), or some combination thereof. The storage device 850 may be removable or non-removable and may include a machine-readable medium, such as a flash drive, a disk, or any other medium, which may be capable of storing information and may be accessed within the computing system 800.
[0065] The computing system 800 may further include additional removable / non-removable, volatile / non-volatile computer system storage media. Figure 8 As shown in , a disk drive for reading or writing from a removable, non-volatile disk (e.g., a "floppy disk") and an optical drive for reading or writing from a removable, non-volatile optical disk may be provided. In these cases, each drive may be connected to the bus 18 by one or more data media interfaces. The memory 820 may include at least one program product having (e.g., at least one) set of program modules that are configured to perform the functions of the various embodiments described herein.
[0066] A program / utility tool 822 having a collection of one or more execution modules 824 may be stored, for example, in memory 820. Execution modules 824 may include, but are not limited to, an operating system, one or more application programs, other program modules, and operational data. Each example or specific combination of these examples may include an implementation of a networking environment. Execution modules 824 typically perform the functions and / or methods of embodiments of the subject matter described herein, such as method 300 and / or method 500.
[0067] Input unit 830 can be one or more various input devices. For example, input unit 839 can include user equipment, such as a mouse, keyboard, tracking ball, etc. Communication unit 860 implements communication to other computing entities on a communication medium. Additionally, the functions of the components of computing system 800 can be implemented with a single computing cluster or multiple computing machines, which can communicate through a communication connection. Therefore, computing system 800 can operate in a networked environment using a logical connection with one or more other servers, a network personal computer (PC), or another general network node. For example, but not limited to, the communication medium includes wired or wireless networking technology.
[0068] The computing system 800 may also communicate with one or more external devices (not shown) as needed, such as storage devices, display devices, etc., with one or more devices that enable a user to interact with the computing system 800, or with any device that enables the computing system 800 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). Such communications may be performed via an input / output (I / O) interface (not shown).
[0069] The functions described herein may be performed at least in part by one or more hardware logic components. For example, but not limited to, illustrative types of hardware logic components that may be used include field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), etc.
[0070] The program code for implementing the methods of the subject matter described herein can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, causes the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code can be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0071] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0072] In addition, although each operation is described in a specific order, this should be understood as requiring such operation to be performed in the specific order shown or in a sequential order, or requiring that all illustrated operations should be performed to obtain the desired result. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although several specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the subject matter described herein. Certain features described in the context of a separate implementation can also be implemented in a single implementation in combination. On the contrary, the various features described in the context of a single implementation can also be implemented in multiple implementations individually or in any suitable sub-combination.
[0073] Some example implementations of the present disclosure are listed below.
[0074] In a first aspect of the present disclosure, a computer-implemented method for arranging the position of annotations on a construction drawing is provided. The method includes: dividing the construction drawing into a plurality of regions according to a plurality of annotations on the construction drawing, wherein each region of the plurality of regions corresponds to a corresponding at least one annotation of the plurality of annotations; determining the size and center of each region; generating annotation features based on the plurality of regions, wherein the annotation features indicate the overlap of the plurality of annotations; determining a movement action of a selected annotation of the plurality of annotations according to the size and center of each region and the annotation features, the movement action arranging the position of the selected annotation on the construction drawing.
[0075] In some embodiments, the movement action determination includes indicating at least one movement action of the selected annotation moving up, moving down, moving left, moving right, or flipping, and a distance of movement corresponding to the movement action.
[0076] In some embodiments, the move action further comprises an indication indicating that the selected annotation has ended the movement.
[0077] In some embodiments, the annotation features are generated using a first neural network model and the movement action is determined using a second neural network model, wherein the first neural network model is different from the second neural network model.
[0078] In some embodiments, the method further includes: generating a guide line corresponding to the selected annotation according to the moving action, and generating a new construction drawing based on the guide line.
[0079] In some embodiments, the method further includes: training the second neural network model using a reinforcement learning algorithm, wherein the reinforcement learning algorithm calculates a quality score for the second neural network model based on predetermined rules or evaluations, the quality score indicating an effect of the second neural network model on the placement of the mobile action.
[0080] In some embodiments, the method further includes: using an inverse reinforcement learning algorithm and a policy gradient algorithm to train the second neural network model so that the quality score converges to a minimum value, and using parameters corresponding to the minimum value as parameters of the trained second neural network model.
[0081] In certain embodiments of the second aspect, a device for arranging the position of annotations on a construction drawing is provided. The device includes: a segmentation module configured to segment the construction drawing into multiple regions according to multiple annotations on the construction drawing, wherein each region in the multiple regions corresponds to at least one annotation in the multiple annotations, and determines the size and center of each region; an annotation feature generation module configured to generate annotation features based on the multiple regions, wherein the annotation features indicate the overlap of the multiple annotations; and an annotation movement module configured to determine a movement action of a selected annotation in the multiple annotations according to the size and center of each region and the annotation features, and the movement action arranges the position of the selected annotation on the construction drawing.
[0082] In some embodiments, the movement action determination includes indicating at least one movement action of the selected annotation moving up, moving down, moving left, moving right, or flipping, and a distance of movement corresponding to the movement action.
[0083] In some embodiments, the move action further comprises an indication indicating that the selected annotation has ended the movement.
[0084] In some embodiments, the annotation feature generation module is further configured to generate annotation features using a first neural network model, and the annotation movement module is further configured to determine movement actions using a second neural network model, wherein the first neural network model is different from the second neural network model.
[0085] In some embodiments, the apparatus further includes: a construction drawing updating module configured to generate a lead line corresponding to the selected annotation according to the moving action, and to generate a new construction drawing based on the lead line.
[0086] In some embodiments, the apparatus further comprises: a training module configured to train the second neural network model using a reinforcement learning algorithm, wherein the reinforcement learning algorithm calculates a quality score for the second neural network model based on predetermined rules or evaluations, the quality score indicating an effect of the second neural network model on the arrangement of mobile actions.
[0087] In some embodiments, the training module is further configured to: use an inverse reinforcement learning algorithm and a policy gradient algorithm to train the second neural network model so that the quality score converges to a minimum value, and use parameters corresponding to the minimum value as parameters of the trained second neural network model.
[0088] In an embodiment of the third aspect, an electronic device is provided, comprising: a memory and a processor, wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the method according to the first aspect.
[0089] In an embodiment of the fourth aspect, a computer-readable storage medium is provided, wherein one or more computer instructions are stored on the computer-readable storage medium, wherein the one or more computer instructions are executed by a processor to implement the method according to the first aspect.
[0090] In an embodiment of the fifth aspect, a computer program product is provided, wherein the computer program product comprises one or more computer instructions, wherein when the one or more computer instructions are executed by a processor, the method according to the first aspect is implemented.
[0091] Although the disclosure has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Instead, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. A computer-implemented method for arranging construction drawing annotation locations, comprising: According to a plurality of annotations on a construction drawing and components respectively associated with the plurality of annotations, a plurality of regions are intercepted from the construction drawing, wherein each of the plurality of regions corresponds to a corresponding at least one annotation among the plurality of annotations and a component associated with the one annotation; Determine a plurality of annotation features included in each region, wherein one annotation feature among the plurality of annotation features includes a position and a size of the annotation and a position and a size of a component associated with the annotation; According to each area and the multiple annotation features included in each area, determine a annotation to be selected from the multiple annotations, and generate a movement action of the selected annotation; and arrange the position of the selected annotation on the construction drawing according to the movement action, wherein the annotation features are generated using a first neural network model, and the movement action is determined using a second neural network model, wherein the first neural network model is different from the second neural network model, and The second neural network model is trained using a reinforcement learning algorithm, wherein the reinforcement learning algorithm calculates a quality score for the second neural network model based on predetermined rules or evaluations, the quality score indicating the effect of the second neural network model on the arrangement of the mobile action, wherein the evaluation includes inputting the mobile action into a third neural network to output a quality score, wherein the third neural network is trained by a predetermined label set.
2. The method according to claim 1, wherein the movement action determination includes indicating at least one movement action of the selected annotation moving up, moving down, moving left, moving right, or flipping, and a distance of movement corresponding to the movement action. The method according to claim 2 , wherein the movement action further comprises an indication indicating that the selected annotation ends the movement. 4 . The method according to claim 1 , wherein a leader line corresponding to the selected annotation is generated according to the moving action, and a new construction drawing is generated according to the moving action and the selected annotation.
5. A device for arranging construction drawings and marking positions, comprising: A cropping module is configured to cut out a plurality of regions from the construction drawing according to a plurality of annotations on the construction drawing and components respectively associated with the plurality of annotations, wherein each of the plurality of regions corresponds to a corresponding at least one annotation of the plurality of annotations and a component associated with the one annotation; A label selection module is configured to determine a plurality of label features included in each region, wherein one of the plurality of label features includes a position and a size of the label and a position and a size of a component associated with the label; as well as A marking moving module is configured to determine a marking to be selected from the multiple markings according to each area and the multiple marking features included in each area, and generate a moving action for the selected marking; and arrange the position of the selected marking on the construction drawing according to the moving action; wherein the annotation selection module is further configured to generate the annotation feature using a first neural network model, and the annotation movement module is further configured to determine the movement action using a second neural network model, wherein the first neural network model is different from the second neural network model, and The apparatus further comprises a training module configured to train the second neural network model using a reinforcement learning algorithm, wherein the reinforcement learning algorithm calculates a quality score for the second neural network model based on predetermined rules or evaluations, the quality score indicating the effect of the second neural network model on the arrangement of the mobile action, wherein the evaluation comprises inputting the mobile action into a third neural network to output a quality score, wherein the third neural network is trained by a predetermined label set. 6 . The apparatus according to claim 5 , wherein the movement action determination comprises indicating at least one movement action of the selected annotation moving upward, moving downward, moving leftward, moving rightward, or flipping, and a distance of movement corresponding to the movement action. The apparatus according to claim 6 , wherein the movement action further comprises an indication indicating that the selected annotation ends movement.
8. The apparatus according to claim 5, further comprising: The construction drawing updating module is configured to generate a lead line corresponding to the selected annotation according to the moving action, and to generate a new construction drawing according to the moving action and the selected annotation.
9. An electronic device, comprising: Memory and processor; The memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the method according to any one of claims 1 to 4.
10. A computer-readable storage medium having one or more computer instructions stored thereon, wherein the one or more computer instructions are executed by a processor to implement the method according to any one of claims 1 to 4.
11. A computer program product comprising one or more computer instructions, wherein the one or more computer instructions are executed by a processor to implement the method according to any one of claims 1 to 4.
