CN115082951A - Beam member identification method, device, equipment and storage medium - Google Patents

Beam member identification method, device, equipment and storage medium Download PDF

Info

Publication number
CN115082951A
CN115082951A CN202210847376.0A CN202210847376A CN115082951A CN 115082951 A CN115082951 A CN 115082951A CN 202210847376 A CN202210847376 A CN 202210847376A CN 115082951 A CN115082951 A CN 115082951A
Authority
CN
China
Prior art keywords
line
contour line
target
line segments
segments
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210847376.0A
Other languages
Chinese (zh)
Other versions
CN115082951B (en
Inventor
颜昌涛
於其之
颜家胜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wanyi Technology Co Ltd
Original Assignee
Wanyi Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wanyi Technology Co Ltd filed Critical Wanyi Technology Co Ltd
Priority to CN202210847376.0A priority Critical patent/CN115082951B/en
Publication of CN115082951A publication Critical patent/CN115082951A/en
Application granted granted Critical
Publication of CN115082951B publication Critical patent/CN115082951B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/40Document-oriented image-based pattern recognition
    • G06V30/42Document-oriented image-based pattern recognition based on the type of document
    • G06V30/422Technical drawings; Geographical maps
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/136Segmentation; Edge detection involving thresholding

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Multimedia (AREA)
  • Electron Beam Exposure (AREA)

Abstract

The application relates to a beam member identification method, a beam member identification device, beam member identification equipment and a storage medium, and relates to the field of drawing identification. The beam member identification method includes: obtaining the contour line of the main beam; acquiring an initial contour line of the secondary beam, and acquiring the beam number and the beam span number of the secondary beam, wherein the initial contour line is cut off by the contour line of the main beam; acquiring the total number of line segments in the initial contour line and the number of line segments in each part of the initial contour line which is cut off by the contour line of the main beam; determining the number of target line segments corresponding to each beam number according to the total number of the line segments, the beam numbers and the beam span number; and determining the target line segments needing to be spliced in the initial contour line according to the number of the target line segments and the number of the beam spans, and splicing the target line segments to generate the accurate contour line of the beam member. The method and the device are used for solving the problem that the beam member identification accuracy is low.

Description

Beam member identification method, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of drawing identification, and in particular, to a method, an apparatus, a device, and a storage medium for identifying a beam member.
Background
At present, most designers draw a cross beam in a drawing, do not draw according to the actual situation of a beam line, and draw the cross beam into a disconnected shape. And because there are many cross beams in scenes such as basements, beam members cannot be accurately identified according to the cross beam profile drawn in the drawing, so that the accuracy rate of identifying the beam members from the drawing is low.
Disclosure of Invention
The application provides a beam member identification method, a beam member identification device, beam member identification equipment and a storage medium, which are used for solving the problem of low beam member identification accuracy.
In a first aspect, an embodiment of the present application provides a beam member identification method, including:
obtaining the contour line of the main beam;
acquiring an initial contour line of a secondary beam, and acquiring a beam number and a beam span number of the secondary beam, wherein the initial contour line is cut off by a contour line of the main beam;
acquiring the total number of line segments in the initial contour line and the number of line segments in each part of the initial contour line which is cut off by the contour line of the main beam;
determining the number of target line segments corresponding to each beam number according to the total number of the line segments, the beam numbers and the beam span number;
and determining the target line segments needing to be spliced in the initial contour line according to the number of the target line segments and the number of the beam spans, and splicing the target line segments to generate an accurate contour line of the beam member.
Optionally, the determining, according to the total number of line segments, the number of beams, and the number of beam spans, a number of target line segments corresponding to each beam number includes:
taking the number of the beam spans corresponding to the beam number as the number of the first line segments corresponding to the beam number;
taking the sum of the line segment numbers of all target parts in the initial contour line as a second line segment number corresponding to the beam number, wherein all target parts are continuous, and the number of the target parts is the beam span number;
and selecting one of the first line segment quantity and the second line segment quantity as the target line segment quantity corresponding to the beam number according to a preset rule, wherein the preset rule is that the sum of the target line segment quantities corresponding to the beam numbers is equal to the total line segment quantity.
Optionally, the obtaining the beam number and the beam span number of the secondary beam includes:
identifying a beam lead corresponding to the secondary beam;
identifying a label corresponding to the beam lead;
and extracting the beam number and the beam span number from the label corresponding to the beam lead.
Optionally, the obtaining an outline of the main beam includes:
identifying first position information of a wall column contour line from a construction drawing;
and acquiring the contour line of the main beam according to the first position information.
Optionally, the obtaining an outline of the main beam according to the first position information includes:
determining a first area according to the first position information and a first distance threshold, wherein the distance between a point in the first area and the wall column contour line is smaller than the first distance threshold;
and taking a beam line with two end points falling in the first area as the contour line of the main beam.
Optionally, the obtaining an initial contour line of the secondary beam includes:
acquiring second position information of the contour line of the main beam;
determining a second area according to the second position information and a second distance threshold, wherein the distance between a point in the second area and the contour line of the main beam is smaller than the second distance threshold;
and taking the beam line with at least one end point falling in the second area as the initial contour line of the secondary beam.
Optionally, after the target line segments are spliced to generate an accurate contour line of the beam member, the method further includes:
associating the contour line of the main beam with a first attribute, wherein the first attribute comprises that the type of the beam line is the main beam;
and associating the contour line of the spliced secondary beam with a second attribute, wherein the second attribute comprises that the type of the beam line is the secondary beam.
In a second aspect, an embodiment of the present application provides a beam member identification apparatus, including:
the first acquisition module is used for acquiring the contour line of the main beam;
the second acquisition module is used for acquiring the initial contour line of the secondary beam and acquiring the beam number and the beam span number of the secondary beam, wherein the initial contour line is cut off by the contour line of the main beam;
the third acquisition module is used for acquiring the total number of the line segments in the initial contour line and the number of the line segments in each part of the initial contour line which is cut off by the contour line of the main beam;
the first processing module is used for determining the number of target line segments corresponding to each beam number according to the total number of the line segments, the number of the beams and the number of the beam spans;
and the second processing module is used for determining the target line segments needing to be spliced in the initial contour line according to the number of the target line segments and the number of the beam spans, and splicing the target line segments to generate an accurate contour line of the beam member.
In a third aspect, an embodiment of the present application provides an electronic device, including: the system comprises a processor, a memory and a communication bus, wherein the processor and the memory are communicated with each other through the communication bus;
the memory for storing a computer program;
the processor is configured to execute the program stored in the memory, and implement the beam member identification method according to the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium, which stores a computer program, and the computer program, when executed by a processor, implements the beam member identification method of the first aspect.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages: in the embodiment of the application, obtain the contour line of girder, obtain the initial contour line of secondary beam, and the beam number and the roof beam of obtaining the secondary beam stride quantity, wherein, the initial contour line is truncated by the contour line of girder, obtain the line segment total number in the initial contour line, and the line segment quantity in each part that the initial contour line is truncated by the contour line of girder, according to the line segment total number, the line segment quantity, roof beam number and roof beam stride quantity, confirm the target line segment quantity that each roof beam number corresponds, according to target line segment quantity and roof beam stride quantity, the target line segment that needs the concatenation in the initial contour line is confirmed, and splice the target line segment, generate the accurate contour line of roof beam component. This application is through the line segment total number in the initial contour line of secondary beam, the line segment quantity in each part that the initial contour line was cuted into by the contour line of girder, the roof beam serial number and the roof beam of secondary beam stride quantity, confirm the target line segment quantity that each roof beam serial number corresponds accurately, and then learn the relation of cutting between each secondary beam, can confirm the target line segment that needs the concatenation in the cross beam, splice target line segment, generate the accurate contour line of roof beam component, the accurate contour line of roof beam component accords with the actual conditions of roof beam component, can promote the rate of accuracy of roof beam component discernment, the problem that the roof beam component discernment rate of accuracy is low has been solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
FIG. 1 is a schematic flow chart of a method for identifying a beam member according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of the contour lines of a wall stud, the contour lines of a main beam, and the initial contour lines of a secondary beam in an embodiment of the present application;
fig. 3 is a schematic flow chart of a method for determining the number of target line segments corresponding to each beam number in one embodiment of the present application;
fig. 4 is a schematic flow chart illustrating a method for determining the number of target line segments corresponding to each beam number in one embodiment of the present application;
FIG. 5 is a schematic diagram of the precise contour lines of the wall stud and beam member in one embodiment of the present application;
FIG. 6 is a schematic structural diagram of a beam member identification device in an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the embodiment of the application, a beam member identification method is provided, and the method can be applied to a server, and certainly, can also be applied to other electronic devices, such as a terminal (a mobile phone, a tablet computer, and the like). In the embodiment of the present application, the method is described as being applied to a server.
In the embodiment of the present application, as shown in fig. 1, the method flow of beam member identification mainly includes:
step 101, obtaining the contour line of the main beam.
In one embodiment, obtaining the contour line of the main beam comprises: identifying first position information of a wall column contour line from a construction drawing; and acquiring the contour line of the main beam according to the first position information.
Starting from the generation process of the beam member in the actual service, the main beam takes the wall column as a support, so that the contour line of the main beam is accurately acquired through the first position information of the contour line of the wall column.
The first position information of the wall column contour line is identified from the building drawing, can be the first position information of the wall column contour line directly identified from the beam diagram, and can also be the first position information of the wall column contour line identified from the wall column plane diagram. The beam and wall column plan views are different architectural drawings. Preferably, the first position information of the wall post contour line is identified from the wall post plan view, and the identified first position information of the wall post contour line is more accurate.
The first position information of the wall pillar contour line may be a two-dimensional coordinate value of each point in the wall pillar contour line in the building drawing, or may be a two-dimensional coordinate value of a key point in the wall pillar contour line, for example, a two-dimensional coordinate value of each endpoint of the wall pillar contour line.
In one embodiment, obtaining the contour line of the main beam according to the first position information includes: determining a first area according to the first position information and a first distance threshold, wherein the distance between a point in the first area and the wall column contour line is smaller than the first distance threshold; and taking the beam line with the two end points falling in the first area as the contour line of the main beam.
The first distance threshold may be an empirical value or a numerical value obtained through a plurality of experiments. The two end points are located on the beam line in the first area and serve as the contour line of the main beam, the distance between the two end points of the contour line of the main beam and the contour line of the wall column is smaller than a first distance threshold value, namely the wall column is arranged near the two end points of the contour line of the main beam, the main beam takes the wall column as a support, and the contour line of the main beam obtained in the way is accurate.
And 102, acquiring an initial contour line of the secondary beam, and acquiring the beam number and the beam span number of the secondary beam, wherein the initial contour line is cut off by the contour line of the main beam.
In one embodiment, obtaining an initial contour of the secondary beam includes: acquiring second position information of the contour line of the main beam; determining a second area according to the second position information and a second distance threshold, wherein the distance between a point in the second area and the contour line of the main beam is smaller than the second distance threshold; and taking the beam line with at least one end point falling inside the second area as the initial contour line of the secondary beam.
Starting from the generation process of the beam component in the actual service, the secondary beam is erected on the main beam, so that the initial contour line of the secondary beam is accurate through the second position information of the contour line of the main beam.
The second position information of the contour line of the main beam may be a two-dimensional coordinate value of each point in the contour line of the main beam in the construction drawing, or may be a two-dimensional coordinate value of a key point in the contour line of the main beam, for example, two-dimensional coordinate values of two end points of the contour line of each main beam.
The second distance threshold may be an empirical value or a numerical value obtained through a plurality of experiments. And taking the beam line with at least one end point falling in the second area as the initial contour line of the secondary beam, wherein the distance between the at least one end point of the initial contour line of the secondary beam and the contour line of the main beam is smaller than a second distance threshold, namely, the main beam is arranged near the at least one end point of the initial contour line of the secondary beam, and the secondary beam is lapped on the main beam, so that the obtained initial contour line of the secondary beam is accurate.
In one embodiment, as shown in fig. 2, the contour lines of the wall columns, the contour lines of the main beams, and the initial contour lines of the secondary beams are illustrated schematically. In fig. 2, 4 rectangles are wall column contour lines, 2 line segments in the vertical direction are contour lines of the main beams, and 9 line segments in the horizontal direction are initial contour lines of the secondary beams. In fig. 2, L1(3) indicates that the number of beam spans corresponding to the beam number L1 of the secondary beam is 3, that is, L1 is 3 spans, L2(2) indicates that the number of beam spans corresponding to the beam number L2 of the secondary beam is 2, that is, L2 is 2 spans, and the initial contour line of the secondary beam includes a secondary beam L1 and a secondary beam L2.
In one embodiment, obtaining the number of beams and the number of beam spans of the secondary beam comprises: identifying a beam lead corresponding to the secondary beam; identifying a label corresponding to the beam lead; and extracting the beam number and the beam span number from the corresponding label of the beam lead.
A beam leg refers to a line segment near the secondary beam that is perpendicular to the original contour of the secondary beam. And the marks of the secondary beams are arranged near the beam lead, and the marks of the secondary beams comprise the beam numbers and the beam span numbers of the secondary beams. Therefore, the beam number and the beam span number of the secondary beam can be extracted from the label corresponding to the beam lead.
And 103, acquiring the total number of the line segments in the initial contour line and the number of the line segments in each part of the initial contour line which is cut off by the contour line of the main beam.
In fig. 2, the total number of line segments in the initial contour line of the secondary beam is 9, the initial contour line is truncated into 3 parts by the contour line of the primary beam, the number of line segments in the first part on the left is 3, the number of line segments in the second part in the middle is 3, and the number of line segments in the third part on the right is 3.
And step 104, determining the number of the target line segments corresponding to each beam number according to the total number of the line segments, the beam numbers and the beam span number.
In fig. 2, the total number of line segments is 9, the number of line segments in the first portion on the left is 3, the number of line segments in the second portion in the middle is 3, the number of line segments in the third portion on the right is 3, the number of beam spans corresponding to the beam number L1 is 3, the number of beam spans corresponding to the beam number L2 is 2, and according to these pieces of information, the target number of line segments corresponding to the beam number L1 and the target number of line segments corresponding to the beam number L2 are determined.
In a specific embodiment, as shown in fig. 3, determining the number of target line segments corresponding to each beam number according to the total number of line segments, the number of beams, and the number of beam spans includes:
and 301, taking the beam span number corresponding to the beam number as the first line segment number corresponding to the beam number.
And step 302, taking the sum of the line segment numbers of all target parts in the initial contour line as the second line segment number corresponding to the beam number, wherein all the target parts are continuous, and the number of the target parts is the beam span number.
And 303, selecting one of the first line segment quantity and the second line segment quantity as a target line segment quantity corresponding to the beam number according to a preset rule, wherein the preset rule is that the sum of the target line segment quantities corresponding to the beam numbers is equal to the total line segment quantity.
The number of target line segments corresponding to the beam number only has two calculation modes, one is that the number of the target line segments corresponding to the beam number is the number of the beam spans corresponding to the beam number, namely each line segment is one span, and the other is that the number of the target line segments corresponding to the beam number is the sum of the number of the line segments of the target part with the number of the beam spans in the initial contour line, namely each target part is one span. The number of the target line segments corresponding to each beam number can be accurately obtained as long as the sum of the number of the target line segments corresponding to each beam number is equal to the total number of the line segments, so that the actual situation is ensured to be met, the number of the target line segments corresponding to each beam number can be automatically obtained, and manual confirmation is not needed.
In fig. 2, the number of beam spans corresponding to the beam number L1 is s1=3, the number of first line segments n1=3 corresponding to the beam number L1, the number of target portions is s1=3, the number of second line segments n2 corresponding to the beam number L1 is the sum of the numbers of line segments of the 3 target portions in the initial contour line, the number of line segments in the first portion on the left is 3, the number of line segments in the second portion in the middle is 3, and the number of line segments in the third portion on the right is 3, so n2=3+3= 9. The number of target line segments corresponding to the beam number L1 is n1=3 in the first case, and n2=9 in the second case, and since the beam number L1 occupies all line segments in the initial contour line and no line segment is left for the beam number L2 when n2=9, which is not practical, the number of target line segments corresponding to the beam number L1 can only be n1=3 and occupies the first portion on the left side in the initial contour line.
The number of beam spans corresponding to the beam number L2 is s1=2, the number of first line segments n1=2 corresponding to the beam number L2, the number of target portions is s1=2, the number of second line segments n2 corresponding to the beam number L2 is the sum of the number of line segments of the first 2 target portions remaining after L1 is removed from the initial contour line, the number of line segments in the middle second portion is 3, and the number of line segments in the right third portion is 3, so n2=3+3= 6. The target line segment number corresponding to the beam number L2 is n1=2 in the first case and n2=6 in the second case, and when the target line segment number corresponding to the beam number L2 is n1=2, the target line segment number n1=3 corresponding to the beam number L1 is added to the target line segment number n1=2 corresponding to the beam number L2, and the sum is 3+2=5 and is not equal to 9, which is not practical, so that the target line segment number corresponding to the beam number L2 cannot be n1= 2. When the target line segment number corresponding to the beam number L2 is n2=6, the target line segment number n1=3 corresponding to the beam number L1 is added to the target line segment number n2=6 corresponding to the beam number L2, and the sum obtained is 3+6=9, which is equal to the total number of line segments, and thus, the method meets the actual situation. Therefore, the target line segment number corresponding to the beam number L1 is n1=3, and the target line segment number corresponding to the beam number L2 is n2= 6.
In a specific embodiment, as shown in fig. 4, determining the number of target line segments corresponding to each beam number according to the total number of line segments, the number of beams, and the number of beam spans includes:
and step 401, circularly reading the beam number from the beam number list.
And step 402, acquiring the beam span number s1 corresponding to the read beam number L.
In step 403, s1 is used as the number n1 of the first segments corresponding to the beam number L.
Step 404, storing the association (L, n 1).
And step 405, acquiring the total number S of the line segments in the initial contour line of the secondary beam, and calculating the total number S = S-n 1 of the remaining line segments.
Step 406, determining whether S is less than or equal to zero, or whether the remaining beam number list is empty, if yes, performing step 407, otherwise, performing step 401.
Step 407, the sum of the line segment numbers of the first s1 target portions in the initial contour line of the secondary beam is used as the second line segment number n2 corresponding to the beam number L.
At step 408, the association (L, n 2) is stored.
In step 409, the total number of remaining line segments S = S-n 2 is calculated.
Step 410, determining whether S is less than or equal to zero, or whether the remaining beam number list is empty, if yes, ending the process, otherwise, executing step 401.
And 105, determining target line segments needing to be spliced in the initial contour line according to the number of the target line segments and the number of the beam spans, and splicing the target line segments to generate an accurate contour line of the beam member.
In one embodiment, as shown in fig. 5, the wall column contour line and the precise contour line of the beam member are schematically illustrated. Fig. 5 is a diagram illustrating the target line segments spliced on the basis of fig. 2 to generate an accurate contour line of the beam member. In fig. 5, the thick solid line is a target line segment, the first portion on the left side has no target line segment, the second portion in the middle has 2 target line segments, and the third portion on the right side has 2 target line segments. After the target line segment is spliced, the first part on the left is a secondary beam contour line corresponding to the beam number L1 and is a 3-span beam, the second part in the middle and the third part on the right are secondary beam contour lines corresponding to the beam number L2 and are 2-span beams, the second part in the middle is a span, and the third part on the right is a span.
In one embodiment, after the target line segments are spliced to generate the accurate contour line of the beam member, the beam member identification method further includes: associating the contour line of the main beam with a first attribute, wherein the first attribute comprises that the category of the beam line is the main beam; and associating the contour line of the spliced secondary beam with a second attribute, wherein the second attribute comprises that the type of the beam line is the secondary beam.
The contour line of the main beam is associated with the first attribute, the contour line of the spliced secondary beam is associated with the second attribute, and the main beam and the secondary beam can be accurately distinguished when the spliced secondary beam is used conveniently. Other parameters, such as beam number, beam span number, etc., may also be included in the first and second attributes, as desired.
In summary, in the embodiment of the present application, a contour line of a main beam is obtained, an initial contour line of a secondary beam is obtained, and a beam number and a beam span number of the secondary beam are obtained, where the initial contour line is truncated by the contour line of the main beam, a total number of line segments in the initial contour line is obtained, and a number of line segments in each part of the initial contour line that is truncated by the contour line of the main beam are obtained, a target line segment number corresponding to each beam number is determined according to the total number of line segments, the beam number, and the beam span number, a target line segment that needs to be spliced in the initial contour line is determined according to the number of target line segments and the beam span number, and the target line segments are spliced to generate an accurate contour line of a beam member. This application is through the line total number in the initial contour line of secondary beam, the line quantity in each part that the initial contour line was cutd into by the contour line of girder, the roof beam serial number and the roof beam of secondary beam stride quantity, confirm the target line quantity that each roof beam serial number corresponds accurately, and then learn the relation of cuting between each secondary beam, can confirm the target line section that needs the concatenation in the cross beam, splice the target line section, generate the accurate contour line of roof beam member, the accurate contour line of roof beam member accords with the actual conditions of roof beam member, can promote the rate of accuracy of roof beam member discernment, the problem that the roof beam member discernment rate of accuracy is low has been solved.
Based on the same concept, the embodiment of the present application provides a beam member identification apparatus, and the specific implementation of the apparatus may refer to the description of the method embodiment, and the repeated details are not repeated, as shown in fig. 6, the apparatus mainly includes:
a first obtaining module 601, configured to obtain a contour line of a main beam;
a second obtaining module 602, configured to obtain an initial contour line of a secondary beam, and obtain a beam number and a beam span number of the secondary beam, where the initial contour line is truncated by a contour line of the main beam;
a third obtaining module 603, configured to obtain the total number of line segments in the initial contour line and the number of line segments in each part of the initial contour line that is truncated by the contour line of the main beam;
a first processing module 604, configured to determine, according to the total number of line segments, the number of beams, and the number of beam spans, a number of target line segments corresponding to each beam number;
and a second processing module 605, configured to determine, according to the number of the target line segments and the number of the beam spans, target line segments to be spliced in the initial contour line, and splice the target line segments to generate an accurate contour line of the beam member.
Based on the same concept, an embodiment of the present application further provides an electronic device, as shown in fig. 7, the electronic device mainly includes: a processor 701, a memory 702, and a communication bus 703, wherein the processor 701 and the memory 702 communicate with each other via the communication bus 703. The memory 702 stores a program executable by the processor 701, and the processor 701 executes the program stored in the memory 702 to implement the following steps:
obtaining the contour line of the main beam; acquiring an initial contour line of the secondary beam, and acquiring the beam number and the beam span number of the secondary beam, wherein the initial contour line is cut off by the contour line of the main beam; acquiring the total number of line segments in the initial contour line and the number of line segments in each part of the initial contour line which is cut off by the contour line of the main beam; determining the number of target line segments corresponding to each beam number according to the total number of the line segments, the beam numbers and the beam span number; and determining the target line segments needing to be spliced in the initial contour line according to the number of the target line segments and the number of the beam spans, and splicing the target line segments to generate the accurate contour line of the beam member.
The communication bus 703 mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus 703 may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 7, but this is not intended to represent only one bus or type of bus.
The Memory 702 may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Alternatively, the memory may be at least one memory device located remotely from the processor 701.
The Processor 701 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like, or may be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic devices, discrete gates or transistor logic devices, and discrete hardware components.
In yet another embodiment of the present application, there is also provided a computer-readable storage medium having stored therein a computer program which, when run on a computer, causes the computer to execute the beam member identification method described in the above embodiment.
In the above embodiments, all or part of the implementation may be realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wirelessly (e.g., infrared, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that includes one or more of the available media. The available media may be magnetic media (e.g., floppy disks, hard disks, tapes, etc.), optical media (e.g., DVDs), or semiconductor media (e.g., solid state drives), among others.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A beam member identification method, comprising:
obtaining the contour line of the main beam;
acquiring an initial contour line of a secondary beam, and acquiring a beam number and a beam span number of the secondary beam, wherein the initial contour line is cut off by a contour line of the main beam;
acquiring the total number of line segments in the initial contour line and the number of line segments in each part of the initial contour line which is cut off by the contour line of the main beam;
determining the number of target line segments corresponding to each beam number according to the total number of the line segments, the beam numbers and the number of the beam spans;
and determining the target line segments needing to be spliced in the initial contour line according to the number of the target line segments and the number of the beam spans, and splicing the target line segments to generate an accurate contour line of the beam member.
2. The beam member identification method according to claim 1, wherein the determining a target number of line segments corresponding to each of the beam numbers according to the total number of line segments, the beam numbers, and the number of beam spans comprises:
taking the number of the beam spans corresponding to the beam numbers as the number of the first line segments corresponding to the beam numbers;
taking the sum of the line segment numbers of all target parts in the initial contour line as a second line segment number corresponding to the beam number, wherein all target parts are continuous, and the number of the target parts is the beam span number;
and selecting one of the first line segment quantity and the second line segment quantity as the target line segment quantity corresponding to the beam number according to a preset rule, wherein the preset rule is that the sum of the target line segment quantities corresponding to the beam numbers is equal to the total line segment quantity.
3. The beam member identification method according to claim 2, wherein the obtaining of the beam number and the beam span number of the secondary beam comprises:
identifying a beam lead corresponding to the secondary beam;
identifying a label corresponding to the beam lead;
and extracting the beam number and the beam span number from the label corresponding to the beam lead.
4. The beam member identification method according to any one of claims 1 to 3, wherein the obtaining of the contour line of the main beam includes:
identifying first position information of a wall column contour line from a construction drawing;
and acquiring the contour line of the main beam according to the first position information.
5. The beam member identification method according to claim 4, wherein the acquiring an outline of the main beam based on the first position information includes:
determining a first area according to the first position information and a first distance threshold, wherein the distance between a point in the first area and the wall column contour line is smaller than the first distance threshold;
and taking a beam line with two end points falling in the first area as the contour line of the main beam.
6. The beam member identification method according to claim 5, wherein the obtaining of the initial contour line of the secondary beam comprises:
acquiring second position information of the contour line of the main beam;
determining a second area according to the second position information and a second distance threshold, wherein the distance between a point in the second area and the contour line of the main beam is smaller than the second distance threshold;
and taking the beam line with at least one end point falling in the second area as the initial contour line of the secondary beam.
7. The beam member identification method according to claim 6, wherein after the target line segments are spliced to generate the precise contour line of the beam member, the method further comprises:
associating the contour line of the main beam with a first attribute, wherein the first attribute comprises that the type of the beam line is the main beam;
and associating the contour line of the spliced secondary beam with a second attribute, wherein the second attribute comprises that the type of the beam line is the secondary beam.
8. A beam member identification device, comprising:
the first acquisition module is used for acquiring the contour line of the main beam;
the second acquisition module is used for acquiring an initial contour line of a secondary beam and acquiring the beam number and the beam span number of the secondary beam, wherein the initial contour line is truncated by the contour line of the main beam;
the third acquisition module is used for acquiring the total number of the line segments in the initial contour line and the number of the line segments in each part of the initial contour line which is cut off by the contour line of the main beam;
the first processing module is used for determining the number of target line segments corresponding to each beam number according to the total number of the line segments, the number of the beams and the number of the beam spans;
and the second processing module is used for determining the target line segments needing to be spliced in the initial contour line according to the number of the target line segments and the number of the beam spans, and splicing the target line segments to generate an accurate contour line of the beam member.
9. An electronic device, comprising: the system comprises a processor, a memory and a communication bus, wherein the processor and the memory are communicated with each other through the communication bus;
the memory for storing a computer program;
the processor, configured to execute the program stored in the memory, and implement the beam member identification method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the beam member identification method of any one of claims 1 to 7.
CN202210847376.0A 2022-07-19 2022-07-19 Beam member identification method, device, equipment and storage medium Active CN115082951B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210847376.0A CN115082951B (en) 2022-07-19 2022-07-19 Beam member identification method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210847376.0A CN115082951B (en) 2022-07-19 2022-07-19 Beam member identification method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115082951A true CN115082951A (en) 2022-09-20
CN115082951B CN115082951B (en) 2023-01-10

Family

ID=83260527

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210847376.0A Active CN115082951B (en) 2022-07-19 2022-07-19 Beam member identification method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115082951B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117195383A (en) * 2023-11-08 2023-12-08 中建科工集团绿色科技有限公司 Method, device, equipment and medium for generating modularized steel structure model

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104809689A (en) * 2015-05-15 2015-07-29 北京理工大学深圳研究院 Building point cloud model and base map aligned method based on outline
CN110814344A (en) * 2019-11-22 2020-02-21 鑫精合激光科技发展(北京)有限公司 Profile processing method based on selective laser melting
CN114283189A (en) * 2021-11-24 2022-04-05 万翼科技有限公司 Beam line processing method, device, equipment and storage medium
CN114283190A (en) * 2021-11-24 2022-04-05 万翼科技有限公司 Beam line splicing method, device, equipment and storage medium
CN114283414A (en) * 2021-11-09 2022-04-05 万翼科技有限公司 Beam span identification method, device, equipment and storage medium
CN114445844A (en) * 2021-12-27 2022-05-06 万翼科技有限公司 Plate member identification method, device, equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104809689A (en) * 2015-05-15 2015-07-29 北京理工大学深圳研究院 Building point cloud model and base map aligned method based on outline
CN110814344A (en) * 2019-11-22 2020-02-21 鑫精合激光科技发展(北京)有限公司 Profile processing method based on selective laser melting
CN114283414A (en) * 2021-11-09 2022-04-05 万翼科技有限公司 Beam span identification method, device, equipment and storage medium
CN114283189A (en) * 2021-11-24 2022-04-05 万翼科技有限公司 Beam line processing method, device, equipment and storage medium
CN114283190A (en) * 2021-11-24 2022-04-05 万翼科技有限公司 Beam line splicing method, device, equipment and storage medium
CN114445844A (en) * 2021-12-27 2022-05-06 万翼科技有限公司 Plate member identification method, device, equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117195383A (en) * 2023-11-08 2023-12-08 中建科工集团绿色科技有限公司 Method, device, equipment and medium for generating modularized steel structure model
CN117195383B (en) * 2023-11-08 2024-03-01 中建科工集团绿色科技有限公司 Method, device, equipment and medium for generating modularized steel structure model

Also Published As

Publication number Publication date
CN115082951B (en) 2023-01-10

Similar Documents

Publication Publication Date Title
CN112651373B (en) Method and device for identifying text information of building drawing
CN113392256A (en) Edge component object generation method, device, equipment and storage medium
CN109147013B (en) Method, equipment and storage medium for automatically generating deep drawing of component
CN115082951B (en) Beam member identification method, device, equipment and storage medium
CN114283190A (en) Beam line splicing method, device, equipment and storage medium
CN115858831B (en) Data storage method for database
CN114565703A (en) Method, device and equipment for adjusting centralized labeling and readable storage medium
CN114282288A (en) Axle network identification method, device, equipment and storage medium
CN114445844A (en) Plate member identification method, device, equipment and storage medium
CN112364187B (en) Automobile accessory database building method, device and equipment based on big data
CN114283189A (en) Beam line processing method, device, equipment and storage medium
CN110334327B (en) Automatic generation method and device of area information and storage device
CN112801620B (en) Engineering information processing method, device, equipment and storage medium
CN114283415A (en) Parking space identification method and device, electronic equipment and storage medium
CN116090074A (en) Calculation method, device, equipment and readable storage medium based on construction section operation
CN115563942A (en) Contract generation method and device, electronic equipment and computer readable medium
CN114443003A (en) Component rendering method and device, electronic equipment and storage medium
CN113392446A (en) Method, device, equipment and storage medium for generating audit data of shear wall
CN114549376A (en) Method, device, equipment and storage medium for calculating superposition of book graph and plan graph
CN114444170A (en) Garage path data determination method and device, electronic equipment and storage medium
CN110490926B (en) Elevation determination method and device and electronic equipment
CN114445845A (en) Method and device for identifying components in drawing, electronic equipment and storage medium
CN113392453B (en) Space extraction method and device in engineering drawing, electronic equipment and storage medium
CN112861240A (en) Method and device for calculating secondary component, computer equipment and readable storage medium
CN115239964A (en) Drainage ditch identification method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant