Drawing processing apparatus, drawing processing method, and program

The drawing processing apparatus efficiently addresses the issue of overlapping objects in two-dimensional CAD drawings by using a learned model for object detection and generating movement instructions, resulting in improved visibility and reduced construction errors.

JP7699032B2Active Publication Date: 2025-06-26SHIMIZU CORP
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
JP2021170911
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-10-19
Publication Date
2025-06-26
Estimated Expiration
2041-10-19

AI Technical Summary

Technical Problem

When converting three-dimensional CAD drawings with many objects into two-dimensional drawings, overlapping objects become a significant issue, making it difficult to check their content and potentially leading to errors in construction sites.

Method used

A drawing processing apparatus and method that includes an object detection unit using a learned model to detect objects in a raster format drawing, a movement setting unit to set the movement destination of overlapping objects, and a movement instruction information generation unit to generate instructions for moving objects in the vector format drawing to prevent overlap.

Benefits of technology

This solution efficiently moves overlapping objects in two-dimensional drawings, improving visibility and reducing the risk of errors during construction, thereby enhancing the efficiency of construction work.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007699032000001
    Figure 0007699032000001
  • Figure 0007699032000002
    Figure 0007699032000002
  • Figure 0007699032000003
    Figure 0007699032000003
Patent Text Reader

Abstract

To efficiently perform movement of objects overlapping one another in a two-dimensional drawing.SOLUTION: A drawing processor comprises: an object detection unit configured to execute processing which detects objects from a raster format drawing obtained by converting a vector format drawing including the objects into a raster format, by using a learned model; a movement setting unit configure to, when the objects detected by the object detection unit overlap one another, set movement destinations of the objects so that the objects do not overlap one another; and a movement instruction information generation unit configured to generate movement instruction information for moving the objects in the vector format drawing according to the movement destinations of the objects that are set by the movement setting unit.SELECTED DRAWING: Figure 6
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a drawing processing apparatus, a drawing processing method, and a program.

Background Art

[0002] A technique for extracting a two-dimensional image from a three-dimensional CAD (Computer Aided Design) model is known (see, for example, Patent Document 1).

Prior Art Documents

Patent Documents

[0003]

Patent Document 1

Summary of the Invention

Problems to be Solved by the Invention

[0004] For example, when converting a three-dimensional CAD drawing that contains many objects such as graphic, dimension lines, etc. as well as objects such as dimension values, part numbers, annotations, and various symbols into two dimensions, such as an architectural design drawing, an event where objects overlap on the two-dimensional drawing is likely to occur. When objects overlap on a two-dimensional drawing in this way, it becomes difficult to check the content of the overlapping objects, and there may be cases where it cannot withstand use at a construction site. Therefore, it is required to move the positions of the objects so that they do not overlap and make them easier to view. However, manually moving the objects is a considerable burden on the operator. Regarding the movement of overlapping objects, it is preferable to be able to perform it as efficiently as possible.

[0005] The present invention has been made in view of such circumstances, and an object thereof is to efficiently move overlapping objects in a two-dimensional drawing.

Means for Solving the Problems

[0006] One aspect of the present invention for solving the above-described problems is a drawing processing apparatus including: an object detection unit that executes, using a learned model, a process of detecting an object from a raster format drawing obtained by converting a vector format drawing including the object into a raster format; a movement setting unit that sets a movement destination of the object so that the objects do not overlap when the objects detected by the object detection unit overlap; and a movement instruction information generation unit that generates movement instruction information for moving the object in the vector format drawing according to the movement destination of the object set by the movement setting unit.

[0007] Another aspect of the present invention is a drawing processing method including: an object detection step of executing, using a learned model, a process of detecting an object from a raster format drawing obtained by converting a vector format drawing including the object into a raster format; a movement setting step of setting a movement destination of the object so that the objects do not overlap when the objects detected by the object detection step overlap; and a movement instruction information generation step of generating movement instruction information for moving the object in the vector format drawing according to the movement destination of the object set by the movement setting step.

[0008] Another aspect of the present invention is a program for causing a computer as a drawing processing apparatus to function as an object detection unit that executes, using a learned model, a process of detecting an object from a raster format drawing obtained by converting a vector format drawing including the object into a raster format, a movement setting unit that sets a movement destination of the object so that the objects do not overlap when the objects detected by the object detection unit overlap, and a movement instruction information generation unit that generates movement instruction information for moving the object in the vector format drawing according to the movement destination of the object set by the movement setting unit.

Advantages of the Invention

[0009] As described above, according to the present invention, an effect is obtained that the movement of overlapping objects in a two-dimensional drawing can be efficiently performed.

Brief Description of the Drawings

[0010]

Figure 1

Figure 2

Figure 3

Figure 4

Figure 5

Figure 6

Figure 7

Figure 8

Figure 9

Figure 10

Modes for Carrying Out the Invention

[0011] <First Embodiment> [Configuration Example of Drawing Processing Apparatus] FIG. 1 shows a functional configuration example of the drawing processing apparatus 100 according to the present embodiment. The functions of the drawing processing apparatus 100 in the figure are realized by a CPU (Central Processing Unit) and a GPU (Graphics Processing Unit) provided as hardware in the drawing processing apparatus 100 executing a program. The drawing processing apparatus 100 may be realized by installing a drafting application and a correction application on a computer device such as a personal computer.

[0012] The drafting application is an application that can design a building or the like corresponding to, for example, BIM (Building Information Modeling). The drafting application according to the present embodiment can create a design drawing (3D design drawing) in a 3D environment. Further, the drafting application can convert a 3D design drawing (an example of a drawing) into a 2D design drawing. The 2D design drawing (an example of a drawing) handled by the drafting application is, for example, based on vector data by 2D CAD.

[0013] The 3D design drawing has the advantage that the structure of the designed building can be grasped three-dimensionally, and various confirmation operations such as ensuring the consistency of the drawings and checking for interference and gradients can be easily performed. On the other hand, there is also an aspect that a 2D cross-sectional design drawing is more convenient to use at the construction site where the building is being constructed. The drafting application can provide the 2D design drawing used at the site as described above by having a function of converting a 3D design drawing into a 2D design drawing.

[0014] The correction application is an application that makes settings regarding the movement of an object for correction when correcting a 2D design drawing in vector format so as to eliminate object duplication. In a three-dimensional space as a three-dimensional design drawing, not only members used in building construction but also various objects such as dimensions of each part and product codes of members are arranged in large numbers. Therefore, in the two-dimensional design drawing converted from the three-dimensional design drawing, the objects in the three-dimensional space are arranged on the two-dimensional plane, resulting in overlapping of objects.

[0015] Overlapping objects are difficult for constructors to view, which may cause discrepancies in drawing interpretation or reduce the efficiency of construction work. Therefore, it is required to move the overlapping objects in the two-dimensional design drawing so that they do not overlap. It is not efficient to manually perform the operation of moving the objects in the two-dimensional design drawing in this way. Therefore, the drawing processing apparatus 100 of the present embodiment can eliminate the overlapping of objects in the two-dimensional design drawing by moving the objects with a correction application.

[0016] The drawing processing apparatus 100 in FIG. 1 includes a drafting application unit 101, a correction application unit 102, a storage unit 103, and a user interface unit 104. The drafting application unit 101 is a functional unit corresponding to a drafting application. The drafting application unit 101 includes a drafting processing unit 111, a conversion unit 112, and a movement processing unit 113.

[0017] The drafting processing unit 111 executes drafting processing according to the design of a building under the environment of a three-dimensional design drawing in response to, for example, a user's operation, and creates a three-dimensional design drawing. The drafting processing unit 111 may store the created three-dimensional design drawing in the storage unit 103.

[0018] The conversion unit 112 performs a drawing dimension conversion that converts the three-dimensional design drawing created by the drafting processing unit 111 into a two-dimensional design drawing in a vector format such as two-dimensional CAD. The conversion unit 112 can store the two-dimensional design drawing obtained by the drawing dimension conversion in the storage unit 103.

[0019] The movement processing unit 113 uses the movement instruction information generated by the movement instruction information generation unit 124 to execute a process of moving an object in a two-dimensional design drawing in vector format (object movement process). By the movement processing unit 113 executing the object movement process, corrections are made so that object overlaps are eliminated in the two-dimensional design drawing in vector format.

[0020] The correction application unit 102 is a functional unit corresponding to the correction application. The correction application unit 102 includes a preprocessing unit 121, an object detection unit 122, a movement setting unit 123, and a movement instruction information generation unit 124. As preprocessing, the preprocessing unit 121, for example, acquires a specified two-dimensional design drawing from among the two-dimensional design drawings in vector format stored in the storage unit 103, and executes raster conversion to convert the acquired two-dimensional design drawing into raster format. The two-dimensional design drawing in raster format may be, for example, specifically image data in png format.

[0021] In performing the raster conversion, the preprocessing unit 121 causes the color settings set for the objects in the two-dimensional design drawing to be inherited. Specifically, the preprocessing unit 121 performs raster conversion so that the values of the color codes set for each object in the two-dimensional design drawing in vector format are inherited by the two-dimensional design drawing in raster format. As a result, the same color code will be commonly set for objects common to the two-dimensional design drawing in vector format and the two-dimensional design drawing in raster format.

[0022] The object detection unit 122 (an example of an object detection unit) performs object detection. The object detection unit 122, as object detection, identifies the objects existing in the two-dimensional design drawing in raster format. At this time, for each identified object, the object detection unit 122 applies a frame (region indication frame) indicating the region range corresponding to the object in the image as the two-dimensional design drawing in raster format. The region indication frame may be, for example, a rectangular frame. In addition, the object detection unit 122 performs determination regarding duplication among the identified objects as object detection.

[0023] The determination of object duplication by the object detection unit 122 can be performed, for example, as follows. First, in the drawing application unit 101, the drawing processing unit 111 groups elements such as character strings, symbols, and line segments in the drawing in units of objects at the 3D design drawing stage.

[0024] FIG. 2(A), FIG. 2(B), and FIG. 2(C) respectively show an example of one unit of object POJ obtained by the grouping of the drawing processing unit 111. The object POJ in FIG. 2(A) is an object grouped by only character strings. The object POJ in FIG. 2(B) is an object grouped by a character string and a frame surrounding the character string. The object POJ in FIG. 2(C) is an object obtained by grouping a character string, a frame surrounding the character string, and a character string arranged outside the frame. Also, the object POJ in the same figure is in a state inclined in the upper right diagonal direction.

[0025] The conversion unit 112 adds the data of the object POJ obtained by the above grouping to the 2D design drawing after the design drawing dimension conversion and stores it in the storage unit 103.

[0026] In the correction application unit 102, the object detection unit 122 is configured to identify the image portion corresponding to the object POJ from the 2D design drawing by referring to the data of the object POJ added to the 2D design drawing. The object detection unit 122 determines the overlap on the two-dimensional design drawing between the objects identified as described above. In determining such an object overlap, the object detection unit 122 may be configured to use a learned model. In this case, the learned model may be configured to input various patterns as images of overlapping objects into a learning device as learning data for learning.

[0027] Also, the identification of objects by the object detection unit 122 may be performed as follows: various object images are input as learning data into the learning device of the learned model for learning. In this case, the object POJ obtained by grouping as exemplified in FIGS. 2(A), 2(B), and 2(C) above may be input into the learning device as learning data. Moreover, in this case, tags may be assigned to the object POJ. Specifically, for example, the object POJ in FIG. 2(A) may be assigned a tag indicating, for example, "only a character string". Also, the object POJ in FIG. 2(B) may be assigned a tag indicating that it is "a character string with a frame". Also, the object POJ in FIG. 2(C) may be assigned a tag indicating, for example, "a character string with a frame and an out-of-frame character string / upper right diagonal direction". In this case, the object detection unit 122 may identify an object from the two-dimensional design drawing using the learned model, and perform an overlap determination based on, for example, the positional relationship between the identified objects or using a learned model for overlap determination similar to the above.

[0028] Returning to the explanation with reference to FIG. 1. The movement setting unit 123 sets the movement destination of the object in the raster format two-dimensional design drawing so that the objects determined to overlap by the object detection unit 122 are in a non-overlapping state.

[0029] The movement instruction information generation unit 124 generates movement instruction information. The movement instruction information is information that indicates, for each object that needs to move in a two-dimensional design drawing in vector format, the position (position of the object to be moved) and the amount of movement based on the destination of the object set by the movement setting unit 123.

[0030] Specifically, the position of the object to be moved indicated by the movement setting unit 123 is specified by the pixel position (coordinates of the pixel) in the image as a two-dimensional design drawing in raster format. Also, the amount of movement includes the movement direction and the movement distance, and the movement distance is indicated by the number of pixels. The movement instruction information generation unit 124 converts the position of the object to be moved specified by the pixel position to be indicated by coordinates represented by the vertical dimension and the horizontal dimension set for the two-dimensional design drawing in vector format. Also, the movement instruction information generation unit 124 converts the movement distance of the object based on the number of pixels to the dimension in the two-dimensional design drawing in raster format. The movement instruction information generation unit 124 can perform conversion from the number of pixels to the dimension based on the correspondence between the number of unit pixels in the two-dimensional design drawing in raster format and the dimension in the two-dimensional design drawing in vector format. The movement instruction information generation unit 124 delivers the generated movement instruction information to the drafting application unit 101. At this time, the movement instruction information generation unit 124 may store the movement instruction information in the storage unit 103, and the drafting application unit 101 may be configured to acquire the movement instruction information stored in the storage unit 103.

[0031] The storage unit 103 stores various information corresponding to the drawing processing device 100.

[0032] The user interface unit 104 is a part corresponding to the user interface. Specifically, the user interface unit 104 includes an input device used by the user for operations, a display device for displaying images, a sound output device for outputting sounds, and the like.

[0033] [Processing of 2D Design Drawings Corresponding to Object Duplication Correction] In the following description, the correction performed to eliminate object duplication in a 2D design drawing in vector format is also referred to as "duplication correction". The conversion unit 112 of the drafting application unit 101 of the present embodiment sets a predetermined color in advance for the objects arranged in the 2D design drawing in vector format obtained by design drawing dimension conversion, corresponding to the movement attribute in response to duplication correction.

[0034] The movement attribute is a movement restriction when the corresponding object is a movement target in duplication correction. In the case of the present embodiment, for example, the movement attribute may be classified into four types: immovable, left - right (horizontal) movement, up - down (vertical) movement, and free movement. When the movement attribute is immovable, it is stipulated that the corresponding object is immovable. When the movement attribute is left - right movement, it is stipulated that the corresponding object is allowed to move in the left - right direction but prohibited from moving in the up - down direction. When the movement attribute is up - down movement, it is stipulated that the corresponding object is allowed to move in the up - down direction but prohibited from moving in the left - right direction. When the movement attribute is free movement, it is stipulated that the corresponding object is allowed to move without particular direction restrictions.

[0035] The movement attribute is determined according to the functional attribute of the object. The functional attribute is an attribute related to the function of the object. Each object in the design drawing has a function of indicating specific matters such as, for example, member shape, dimension line, dimension value, part number of the member, etc. For example, the storage unit 103 may store a movement attribute table in which movement attributes are associated for each functional attribute.

[0036] A specific example of the relationship between the functional attribute and the movement attribute of the object will be described with reference to FIG. 3. FIG. 3 shows an extracted partial area in a 2D design drawing in vector format. In the figure, the functional attribute of object OJ-A1 is the member shape. An object with a member shape, regardless of the direction (up, down, left, or right), will lose the ability to indicate the correct position and original shape in the building if it is moved from the arranged position. Therefore, an immovable movement attribute is associated with an object whose functional attribute is the member shape.

[0037] Also, the functional attribute of object OJ-A2 is the dimension line. The dimension line is arranged to specify the measurement range for the member shape. Such an object with a dimension line will be unable to correctly specify the measurement range for the member shape if it is moved from the arranged position, regardless of the direction (up, down, left, or right). Therefore, an immovable movement attribute is associated with an object whose functional attribute is dimensional.

[0038] Also, the functional attribute of object OJ-A3 is the member dimension. The member dimension indicates the dimension of the member shape corresponding to the dimension line. If the object OJ-A3 with a functional attribute of member dimension is moved from the arranged position, regardless of the direction (up, down, left, or right), it may result in a state where it shows a dimension corresponding to a different dimension line than it should originally correspond to, potentially impairing its function. Therefore, an immovable movement attribute is associated with an object whose functional attribute is the member dimension.

[0039] Also, the functional attribute of object OJ-B in the figure is the height marking. Since an object with a functional attribute of height marking indicates height, it may be unable to appropriately indicate the original height when moved in the up and down direction. On the other hand, even if an object with a functional attribute of height marking is moved in the left and right direction, it can appropriately indicate the height. Therefore, a left and right movement attribute is associated with an object whose functional attribute is the height marking.

[0040] In addition, the functional attribute of the object OJ-C in the figure is longitudinal section specification. That is, the object OJ-C specifies a cross-section obtained by cutting a member vertically at the position indicated by the object OJ-C. An object with such a functional attribute of longitudinal section specification will not show the correct cutting position when moved in the left-right direction, but can show the correct cutting position as long as it is moved in the up-down direction. Therefore, a movement attribute of up-down movement is associated with an object whose functional attribute is longitudinal section specification.

[0041] In addition, the functional attributes of the objects OJ-D1, OJ-D2, OJ-D3, and OJ-D4 in the figure are member information presentation. Member information presentation is a function of presenting information about a member such as the name, model number, dimensions (size), etc. of the corresponding member. An object with such a functional attribute of member information presentation can perform its function even if it is moved in any of the up, down, left, or right directions as long as it is not placed at a position far from the corresponding member. Therefore, a movement attribute of free movement is associated with an object whose functional attribute is member information presentation.

[0042] In addition, the functional attribute of the object OJ-D5 is azimuth indication. An object with a functional attribute of azimuth indication can perform its function by correctly indicating the azimuth even if it is moved in any of the up, down, left, or right directions. Therefore, a movement attribute of free movement is associated with an object whose functional attribute is azimuth indication.

[0043] In this way, each of the objects arranged in the two-dimensional design drawing in vector format will have one of the movement attributes of non-movable, left-right movement, up-down movement, and free movement according to its functional attribute. The conversion unit 112 can associate a movement attribute with each object by specifying the movement attribute corresponding to the functional attribute of the object with reference to the movement attribute table.

[0044] Moreover, the conversion unit 112 sets a color corresponding to the movement attribute for each object. The color according to the movement attribute is not particularly limited. As an example, the conversion unit 112 may set green for an object associated with a non-movable movement attribute, magenta for an object associated with a left-right movement attribute, cyan for an object associated with an up-down movement attribute, and blue for an object associated with a free movement attribute.

[0045] By the conversion unit 112 executing the above processing, the two-dimensional design drawing in vector format becomes one in which a color according to the movement attribute is set for each of the objects to be arranged.

[0046] The correction application unit 102 acquires the two-dimensional design drawing in raster format with colors set for the objects as described above and executes the processing up to the generation of movement instruction information. Therefore, the preprocessing unit 121 in the correction application unit 102 performs raster conversion to convert the acquired two-dimensional design drawing in vector format into a two-dimensional design drawing in raster format. At this time, as described above, the preprocessing unit 121 performs raster conversion so that the color code set for each object in the two-dimensional design drawing in vector format is also carried over to the two-dimensional design drawing in raster format.

[0047] Next, as object detection for the two-dimensional design drawing in raster format obtained by the raster conversion of the preprocessing unit 121, the object detection unit 122 executes identification of objects in the two-dimensional design drawing in raster format and determination of overlap (duplicate determination) between the identified objects.

[0048] Figure 4 shows the object detection result by the object detection unit 122. This figure shows an example of the object detection result by the object detection unit 122 on an object detection screen displayed, for example, on the user interface unit 104. This figure shows a partial extraction of the object detection screen.

[0049] In the figure, objects OJA (OJA-1 to OJA-7) are arranged in the identified areas of the object in the raster-formatted two-dimensional design drawing. For each object OJA, an area indication frame BX indicating the range corresponding to the corresponding object is arranged. The object detection unit 122 identifies the area corresponding to the area indication frame BX as one object each.

[0050] Also, in the figure, for each object OJA, a tab TB indicating the determination result regarding the presence or absence of overlap with other objects is added. The tab TB containing the character "OK" indicates that it has been determined that the corresponding object OJA-1 does not overlap with any of the other objects OJA. The tab TB containing the character "NG" indicates that it has been determined that the corresponding object OJA overlaps with other objects OJA.

[0051] Next, the movement setting unit 123 executes a process of setting the movement destination of the object OJA so that the overlap of the object OJA detected by the object detection unit 122 is resolved. Referring to FIG. 5, the search range set for the raster-formatted two-dimensional design drawing in setting the movement destination of the object OJA will be described. This figure shows a part of the raster-formatted two-dimensional design drawing extracted. The raster-formatted two-dimensional design drawing in this figure is in a mode where the object OJA is arranged on a screen with pixels px arranged in a matrix.

[0052] In this figure, in the raster-formatted two-dimensional design drawing, three objects OJA-11, OJA-12, and OJA-13 are arranged. The object OJA-11 has a size of 2 (vertical) × 4 (horizontal) pixels, the object OJA-12 has a size of 4 × 2 pixels, and the object OJA-13 has a size of 5 × 5 pixels.

[0053] The objects OJA-11 and OJA-12 have a non-movable movement attribute. The object OJA-13 has a movable movement attribute (any one of free movement, left-right movement, and up-down movement). The movement setting unit 123 can determine what each movement attribute is based on the colors set for each of the objects OJA-11, OJA-12, and the object OJA-13.

[0054] In a two-dimensional design drawing in vector format, the functional attributes assigned to an object are lost when converted to a two-dimensional design drawing in raster format. That is, for an object in a two-dimensional design drawing in raster format, the movement attribute cannot be determined based on the functional attribute. Therefore, in this embodiment, at the stage of the two-dimensional design drawing in vector format, a color corresponding to the movement attribute is set for the object. The color code of the color set for the object in the two-dimensional design drawing in vector format is faithfully carried over even in the two-dimensional design drawing in raster format after raster conversion. For this reason, the movement setting unit 123 can accurately determine the movement attribute for each object based on the color set for the object in the two-dimensional design drawing in raster format.

[0055] Also, in the figure, it is obtained as a result of the overlap determination by the object detection unit 122 that the object OJA-11 and the object OJA-13 overlap, and the object OJA-12 is in a state where it does not overlap with any other object OJA.

[0056] In this case, the movement setting unit 123 selects the object OJA-13, which is movable as a movement attribute, as the movement target in order to resolve the overlap between the object OJA-11 and the object OJA-13.

[0057] In this case, the movement setting unit 123 sets a range of 30×30 pixels based on a predetermined position in the object OJA-13 to be moved as a movable range in which the object OJA-13 to be moved can be moved.

[0058] Furthermore, the movement setting unit 123 first sets a search range BD of about 9×9 pixels including the object OJA-13 to be moved. That is, the movement setting unit 123 does not search for the destination of the object OJA to be moved from the entire movable range from the beginning, but sets a range narrower than the movable range, which is limited to the pixel range near the object OJA to be moved, as the search range BD.

[0059] The movement setting unit 123 searches for the position of the object OJA-13 where the object OJA-13 does not overlap with any other object OJA in the set search range BD. The movement setting unit 123 may determine, as the movement destination, one of the positions with the smallest movement amount from the previous position among the positions where the object OJA-13 does not overlap with any other object OJA in the search range BD.

[0060] Also, when the movement setting unit 123 cannot obtain a state where the object OJA to be moved does not overlap with any other object OJA in the set search range BD, the movement setting unit 123 further expands the search range BD by increasing the number of pixels forming the search range BD by a certain number, and searches for the movement destination of the object OJA to be moved in the expanded search range BD.

[0061] When the movement setting unit 123 cannot obtain a state where the object OJA to be moved does not overlap with any other object OJA in the set search range BD, the movement setting unit 123 can search for the movement destination while gradually expanding the search range BD. If, even after expanding the search range BD to the movable range, the movement setting unit 123 cannot obtain a state where the object OJA to be moved does not overlap with any other object OJA, the movement setting unit 123 may determine that the object OJA to be moved will not be moved as an error.

[0062] Also, with reference to FIG. 6, a specific example of the movement destination setting by the movement setting unit 123 will be described. FIG. 6(A) shows an example of the result of object detection performed by the object detection unit 122 on a raster-formatted two-dimensional design drawing. In the figure, five objects OJA-21, OJA-22, OJA-23, OJA-24, and OJA-25 are arranged in a state of overlapping with other objects OJA, respectively.

[0063] Based on the colors set for each object OJA, the movement setting unit 123 determines that the movement attribute of the object OJA-21 is non-movable, the movement attribute of the object OJA-22 is vertical movement, the movement attribute of the object OJA-23 is horizontal movement, the movement attribute of the object OJA-24 is free movement, and the movement attribute of the object OJA-25 is non-movable.

[0064] In this case, the movement setting unit 123 selects one object OJA as the movement target according to a predetermined selection rule among the objects OJA having a movable movement attribute. In this case, for example, the movement setting unit 123 selects the object OJA-22, which has the largest number (3) of overlapping other objects OJA, as the movement target. The movement setting unit 123 moves the selected object OJA-22 downward as shown in FIG. 6(B) until it no longer overlaps with the objects OJA-21 and OJA-25 having a non-movable movement attribute. By moving the object OJA-22 in this way, the number of objects OJA overlapping with the object OJA-21 becomes two, namely OJA-23 and OJA-24. Also, the object OJA-22 is in a state of overlapping with the object OJA-24.

[0065] Next, the movement setting unit 123 selected object OJA-23 as the object to be moved from among objects OJA-23 and OJA-24 that overlap with object OJA-21 according to a predetermined selection rule. The movement attribute of object OJA-23 is left-right movement. As shown in FIG. 6(C), the movement setting unit 123 moves object OJA-23, which is the object to be moved, to the left until it no longer overlaps with object OJA-21.

[0066] As a result of moving object OJA-23 as shown in FIG. 6(C), object OJA-24 comes to overlap with two objects OJA-21 and OJA-22. In this case, the movement setting unit 123 selects object OJA-24 as the object to be moved. The movement attribute of object OJA-24 is free movement. Therefore, as shown in FIG. 6(D), the movement setting unit 123 moves object OJA-24, which is the object to be moved, diagonally downward so that it does not overlap with either of objects OJA-21 and OJA-22. As a result of moving object OJA in this way, a state where none of the five objects OJA-21, OJA-22, OJA-23, OJA-24, and OJA-25 overlap with each other was obtained.

[0067] The movement setting unit 123 obtains the position (position of the object to be moved) and the movement amount of object OJA that was moved until the state from FIG. 6(A) to FIG. 6(D). As described above, the movement amount includes the movement direction and the movement distance. At this stage, the position of the object to be moved and the movement distance are indicated by pixel positions (coordinates of pixels) and the number of pixels corresponding to a raster-formatted two-dimensional design drawing.

[0068] The movement instruction information generation unit 124 converts the movement distance in the movement amount of object OJA obtained by the movement setting unit 123 from a value based on the number of pixels to a value based on dimensions as described above. The movement instruction information generation unit 124 generates movement instruction information indicating the movement amount information in which the movement distance is indicated by dimensions.

[0069] The movement processing unit 113 in the drawing application unit 101 executes a process of moving an object in a two-dimensional design drawing in a corresponding vector format by using the movement instruction information generated by the movement instruction information generation unit 124. As a result, a two-dimensional design drawing in vector format that is corrected so that the overlap of objects is eliminated can be obtained. The two-dimensional design drawing in vector format thus corrected may be output by printing, for example, and used by a worker who performs construction work at a construction site, for example. Also, since the objects do not overlap in the two-dimensional design drawing printed in this way, it is easy for the worker to see and the worker can work efficiently without misinterpreting.

[0070] [Example of processing procedure] With reference to the flowchart of FIG. 7, an example of a processing procedure executed by the drawing application unit 101 in the drawing processing apparatus 100 in relation to design drawing dimension conversion will be described. The process in the figure may be executed triggered by, for example, an operation of designating a three-dimensional design drawing to be converted and instructing design drawing dimension conversion.

[0071] Step S100: In the drawing application unit 101, the conversion unit 112 acquires a three-dimensional design drawing designated as a target of design drawing dimension conversion from among the three-dimensional design drawings stored in the storage unit 103. Step S102: The conversion unit 112 converts the three-dimensional design drawing acquired in step S100 into a two-dimensional design drawing in vector format.

[0072] Step S104: The conversion unit 112 determines the movement attribute for each object in the two-dimensional design drawing in vector format obtained in step S102. The conversion unit 112 can determine the movement attribute of an object by referring to the movement attribute table stored in the storage unit 103 and specifying the movement attribute associated with the functional attribute assigned to the object. Step S106: The conversion unit 112 sets a color for each object in the two-dimensional design drawing in vector format according to the color code associated with the movement attribute determined in step S104.

[0073] Step S108: The conversion unit 112 stores the two-dimensional design drawing in vector format with the color set for each object in step S106 in the storage unit 103.

[0074] Referring to the flowchart of FIG. 8, a processing procedure example executed by the correction application unit 102 and the drafting application unit 101 in the drawing processing apparatus 100 in relation to the duplicate correction of the two-dimensional design drawing in vector format will be described. The processing in the figure may be executed in response to an operation of designating a two-dimensional design drawing in vector format to be corrected and instructing the execution of duplicate correction. Alternatively, the processing in the figure may be executed with the two-dimensional design drawing in vector format stored in step S108 as the correction target following the processing in FIG. 7.

[0075] First, the processing of the correction application unit 102 will be described. Step S200: In the correction application unit 102 in the drawing processing apparatus 100, the preprocessing unit 121 acquires the two-dimensional design drawing in vector format designated as the correction target from the storage unit 103. Step S202: The preprocessing unit 121 converts the two-dimensional design drawing in vector format acquired in step S200 into a two-dimensional design drawing in raster format.

[0076] Step S204: The object detection unit 122 performs object detection on the two-dimensional design drawing in raster format obtained in step S202. As described above, object detection includes the identification of objects in the two-dimensional design drawing in raster format and the duplicate determination for the identified objects.

[0077] Step S206: The movement setting unit 123 executes a process of setting the destination of the object so that the duplication of the object determined by the object detection in step S204 is resolved.

[0078] Step S208: The movement instruction information generation unit 124 identifies the position of the object to be moved (the position of the object to be moved target) based on the setting result of the destination of the object in step S206, and calculates the amount of movement from the position of the object to be moved target. As described above, the amount of movement includes the movement direction and the movement distance. The movement instruction information generation unit 124 converts the movement distance of the object to be moved target indicated by the pixel position and the movement distance by the number of pixels into values based on the dimensions used in the two-dimensional design drawing in vector format, respectively.

[0079] Step S210: The movement instruction information generation unit 124 generates movement instruction information for instructing the movement of each object to be moved calculated in step S208. Step S212: The movement instruction information generation unit 124 instructs the drawing application unit 101 to correct the two-dimensional design drawing in vector format to be corrected. When giving the correction instruction, the movement instruction information generation unit 124 is configured to pass the movement instruction information generated in step S210 to the drawing application unit 101.

[0080] Next, a description will be given of an example of the processing procedure executed by the drawing application unit 101. Step S300: In the drawing application unit 101, the movement processing unit 113 acquires the movement instruction information passed together with the correction instruction from the correction application unit 102 in step S212. Step S302: The movement processing unit 113 executes a process of moving an object in the two-dimensional design drawing in vector format to be corrected by using the movement instruction information acquired in Step S212. That is, the movement processing unit 113 reads out the two-dimensional design drawing in vector format to be corrected stored in the storage unit 103. The movement processing unit 113 identifies the object to be moved from among the objects arranged in the two-dimensional design drawing in vector format read from the storage unit 103 according to the position of the object to be moved indicated in the movement instruction information, and executes a process of moving the identified object to be moved according to the corresponding movement amount. By the process of Step S302, the two-dimensional design drawing in vector format to be corrected is corrected so that the duplication of objects is eliminated. Step S304: The movement processing unit 113 stores the two-dimensional design drawing in vector format corrected in Step S302 in the storage unit 103. At this time, the movement processing unit 113 may store the two-dimensional design drawing in vector format corrected in Step S302 in the storage unit 103 as data different from the two-dimensional design drawing in vector format before correction, or may store it so as to overwrite the two-dimensional design drawing in vector format before correction.

[0081] <Second Embodiment> Subsequently, the second embodiment will be described. In the previous first embodiment, the conversion unit 112 of the drafting application unit 101 was configured to set a specific one color for each movement attribute for the objects in the two-dimensional design drawing in vector format. In contrast, the conversion unit 112 of this embodiment does not associate a specific one color for each movement attribute, but instead, after associating different color ranges for each movement attribute, different colors are set for each object within the associated color ranges.

[0082] As a specific example, as shown in FIG. 9, the conversion unit 112 of the present embodiment divides the color range that can be set for an object into a plurality of color range classifications PT (first color range classification PT-1 to fourth color range classification PT-4) corresponding to each movement attribute (immovable, left-right movement, up-down movement, free movement). Then, in one color range classification PT, the conversion unit 112 sets different colors for each object having the corresponding movement attribute. For example, for an object having an immovable movement attribute, different color codes are set from among the color codes included in the first color range classification PT-1.

[0083] In this way, the color codes set for each object in the two-dimensional design drawing in vector format will also be maintained in the two-dimensional design drawing in raster format obtained by raster conversion. For example, in a state where there are many overlapping objects with the same movement attribute in the two-dimensional design drawing in raster format, if the colors of these objects with the same movement attribute are the same, there is a high probability that an error will occur in which the object cannot be properly recognized in the object detection by the object detection unit 122. Therefore, as in the present embodiment, by setting different color codes even for objects with the same movement attribute, the object detection unit 122 can separate and detect overlapping objects using the color codes set for each object. As a result, it is possible to suppress the occurrence of errors in object recognition.

[0084] Note that the colors set for objects with the same movement attribute may be such that color codes within a color range where the difference in color is not clearly visible to some people are used. Specifically, visually, an object associated with an immovable movement attribute appears green, an object associated with a left-right movement attribute appears magenta, an object associated with an up-down movement attribute appears cyan, and an object associated with a free movement attribute appears blue, but the color codes actually set for each object under each movement attribute may be set to be different. For example, when working with a printed matter of a corrected vector format 2D design drawing at a construction site using colors instead of black and white, it may be printed so that the colors set for the objects are also reflected. In this case, if objects with the same movement attribute appear visually almost the same color but have different color codes as described above, for the operator, the objects are visually color-coded for each movement attribute in the printed 2D design drawing. Although the movement attribute itself is not directly related to the operator's construction work, the movement attribute corresponds to one or more specific functional attributes. Therefore, the operator can roughly judge the function of the object by the color-coding of the objects in the printed 2D design drawing.

[0085] <Third Embodiment> Next, the third embodiment will be described. The raster format 2D design drawing obtained by raster conversion from the vector format 2D design drawing is quite large, for example, in terms of paper size, it is A2 size or A3 size. For such a large-sized raster format 2D design drawing, if the correction application unit 102 directly performs processes such as preprocessing, object detection, and destination setting, the processing load will become quite heavy, or the accuracy of object detection may decrease due to a decrease in the resolution of the drawing.

[0086] Therefore, the conversion unit 112 of the present embodiment may divide the vector format 2D design drawing to be corrected. Specifically, the conversion unit 112 may divide, for example, the vector format 2D design drawing into four parts by dividing lines that bisect the top and bottom and the left and right respectively. Note that the number of divisions of the vector format 2D design drawing is not particularly limited. The processing by the correction application unit 102 in the following may be executed for the divided vector format 2D design drawings. Thereby, the processing load in the correction application unit 102 can be reduced.

[0087] However, when the two-dimensional design drawing in vector format is simply divided into four equal parts by bisecting it vertically and horizontally as described above, the relationship between the dividing line and the arrangement of the objects is not particularly considered, so there may be cases where objects are cut by the division. For the cut objects, they may not be correctly recognized as objects by object detection. Therefore, the conversion unit 112 may set a dividing line so that objects are not cut in the two-dimensional design drawing in vector format, and divide the two-dimensional design drawing in vector format along the set dividing line.

[0088] FIG. 10 shows an example of setting a dividing line in the present embodiment. In the figure, the entire two-dimensional design drawing PIC in vector format is shown. In the two-dimensional design drawing PIC, for example, there are four object group areas AR-1, AR-2, AR-3, and AR-4 formed by the aggregation and arrangement of objects. In the two-dimensional design drawing PIC in vector format, no objects are arranged in the areas other than the object group areas AR-1, AR-2, AR-3, and AR-4. In this case, the conversion unit 112 sets a dividing line DV as shown in the figure for the areas in the two-dimensional design drawing PIC where no objects are arranged, and divides along the dividing line DV. If the division is performed in this way, it is possible to prevent objects from being cut.

[0089] In addition, in each of the above embodiments, the function as the conversion unit 112 may be configured to be provided in the correction application unit 102.

[0090] Note that the correction application unit 102 may be configured to include the function as the movement processing unit 113. In this case, in the correction application unit 102, the raster format two-dimensional design drawing obtained by the raster conversion of the preprocessing unit 121 may be reversibly converted into a vector format. In the correction application unit 102, the movement processing unit 113 may perform a process of moving an object by using the movement instruction information generated by the movement instruction information generation unit 124 on the vector format two-dimensional design drawing obtained by the conversion.

[0091] Note that the configuration of the correction application unit 102 may be included in the drafting application unit 101. That is, the drafting application may be configured to have the function of the correction application.

[0092] Note that a program for realizing the functions of the above-described drawing processing apparatus 100 may be recorded on a computer-readable recording medium, and the program recorded on this recording medium may be read into a computer system and executed to perform the processing as the above-described drawing processing apparatus 100. Here, "reading the program recorded on the recording medium into the computer system and executing it" includes installing the program in the computer system. The "computer system" here is assumed to include hardware such as an OS and peripheral devices. Further, the "computer system" may include a plurality of computer devices connected via a network including a communication line. The recording medium also includes an internal or external recording medium accessible from a distribution server for distributing the program.

Explanation of Signs

[0093] 100 Drawing processing apparatus, 101 Drafting application unit, 102 Correction application unit, 103 Storage unit, 104 User interface unit, 111 Drafting processing unit, 112 Conversion unit, 113 Movement processing unit, 121 Preprocessing unit, 122 Object detection unit, 123 Movement setting unit

Claims

1. An object detection unit that executes a process of detecting an object from a raster format drawing obtained by converting a vector format drawing including an object into a raster format, using a learned model, and according to the attributes of the object defined in the vector format drawing, the object detection unit that detects by classifying the mode of movement restriction for the object into non-movable and movable ones, A movement setting unit that sets a movement destination of a movable object so that the objects do not overlap when the movable object detected by the object detection unit overlaps with a non-movable object, A movement instruction information generation unit that generates movement instruction information for moving an object in the vector format drawing according to the movement destination of the movable object set by the movement setting unit A drawing processing apparatus comprising the above.

2. The object detection unit detects by classifying, for the movable object, an object without a movement direction restriction and an object with a restricted movement direction The drawing processing apparatus according to Claim 1.

3. The vector format drawing is converted into the raster format drawing after a predetermined color corresponding to the mode of movement restriction determined according to the attribute is assigned to each object, When detecting an object, the object detection unit determines the mode of movement restriction based on the color of the object drawn in the object. The drawing processing apparatus according to Claim 1 or 2.

4. An object detection step of executing a process of detecting an object from a raster format drawing obtained by converting a vector format drawing including an object into a raster format, using a learned model, and according to the attributes of the object defined in the vector format drawing, the object detection step of detecting by classifying the mode of movement restriction for the object into non-movable and movable ones, A movement setting step of setting a movement destination of a movable object so that the objects do not overlap when the movable object detected by the object detection step overlaps with a non-movable object, A movement instruction information generation step of generating movement instruction information for moving an object in the vector format drawing according to the destination of the movable object set in the movement setting step A drawing processing method comprising the above.

5. A computer as a drawing processing device,[[]] An object detection unit that executes, using a learned model, a process of detecting the object from a raster format drawing obtained by converting a vector format drawing including the object into a raster format, and that classifies and detects, according to the attributes of the object defined in the vector format drawing, whether the mode of movement restriction for the object is immovable or movable A movement setting unit that sets the destination of the movable object so that the objects do not overlap when the movable object detected by the object detection unit overlaps with an immovable object A movement instruction information generation unit that generates movement instruction information for moving an object in the vector format drawing according to the destination of the movable object set by the movement setting unit A program for causing the above to function.

Citation Information

Patent Citations

  • Drawing input device

    JP1994251092A

  • Drawing management method and drawing management program

    JP2006221551A

  • Drawing data inspection method and drawing data inspection device

    JP2008242885A

  • Drawing correction assisting program and drawing correction assisting apparatus

    JP2011043934A

  • Method of moving label so as to avoid overlap of graphic output, system, and computer-readable medium

    JP2012190456A