CN114283186A - Method and device for identifying object in engineering drawing, electronic equipment and storage medium - Google Patents

Method and device for identifying object in engineering drawing, electronic equipment and storage medium Download PDF

Info

Publication number
CN114283186A
CN114283186A CN202111536769.1A CN202111536769A CN114283186A CN 114283186 A CN114283186 A CN 114283186A CN 202111536769 A CN202111536769 A CN 202111536769A CN 114283186 A CN114283186 A CN 114283186A
Authority
CN
China
Prior art keywords
target
graphic
identified
determining
block
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.)
Pending
Application number
CN202111536769.1A
Other languages
Chinese (zh)
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 CN202111536769.1A priority Critical patent/CN114283186A/en
Publication of CN114283186A publication Critical patent/CN114283186A/en
Pending legal-status Critical Current

Links

Images

Abstract

The application relates to a method and a device for identifying an object in an engineering drawing, electronic equipment and a storage medium, which are applied to the technical field of data identification, wherein the method comprises the following steps: acquiring an engineering drawing to be identified; acquiring a graphic characteristic information set of an object to be identified; determining a target image block to be identified in the engineering drawing according to the graphic characteristic information set; and identifying the object to be identified in the target image block according to the graphic characteristic information set. The parking space recognition method and device solve the problems that in the prior art, parking space information in a drawing needs to be artificially determined, multiple persons are often needed to confirm for improving precision, time consumption is long, and parking space information recognition efficiency is low.

Description

Method and device for identifying object in engineering drawing, electronic equipment and storage medium
Technical Field
The present application relates to the field of data identification technologies, and in particular, to a method and an apparatus for identifying an object in an engineering drawing, an electronic device, and a storage medium.
Background
With the rapid development of information technology, the informatization trend of the house property industry is gradually accelerated, house property sales begin to develop on line, and accompanying affiliated parking stall sales also begin to develop on line along with the trend.
Generally, after the house property drawing is set, the parking space information in the drawing needs to be manually determined, in order to improve the precision, multiple persons are often required to confirm the parking space information, the time consumption is long, and the parking space information identification efficiency is low.
Disclosure of Invention
The application provides an object identification method and device in engineering drawings, electronic equipment and a storage medium, which are used for solving the problems that in the prior art, parking space information in the drawings needs to be artificially determined, multiple persons are often needed to confirm for improving the precision, the consumed time is long, and the parking space information identification efficiency is low.
In a first aspect, an embodiment of the present application provides a method for identifying an object in an engineering drawing, including:
acquiring an engineering drawing to be identified;
acquiring a graphic characteristic information set of an object to be identified;
determining a target image block to be identified in the engineering drawing according to the graphic characteristic information set;
and identifying the object to be identified in the target image block according to the graphic characteristic information set.
Optionally, the determining, according to the graphic feature information set, a target image block to be identified in the engineering drawing includes:
dividing the image blocks in the engineering drawing into at least one image block group to obtain an initial image block group set;
screening the chart blocks in the initial chart block set according to the graph characteristic information set to obtain a target chart block set;
determining any tile in each tile group in the target tile group set as the target tile.
Optionally, the dividing the graph blocks in the engineering drawing into at least one graph block group to obtain an initial graph block group set includes:
determining a drawing frame set in the engineering drawing;
extracting tile information in each frame in the frame set;
and dividing the picture blocks in the engineering drawing into at least one picture block group according to the picture block information to obtain the initial picture block group set, wherein the picture block information in each picture block group in the initial picture block group set is the same, and the picture block information in different picture block groups is different.
Optionally, the screening, according to the graph feature information set, the tile groups in the initial tile group set to obtain a target tile group set includes:
determining a screening condition according to the graphic feature information set;
analyzing the target image block to obtain primitive information in the target image block;
and screening the image group of which the primitive information of the target image block meets the screening condition in the initial image group set to obtain the target image group set.
Optionally, the determining a screening condition according to the graphic feature information set includes:
determining a graphic feature range in the graphic feature information set;
determining a graphic shape in the graphic feature information set;
and determining the graph shape and the graph characteristic range as the screening condition.
Optionally, the determining a graphic feature range in the graphic feature information set includes:
acquiring the maximum value and the minimum value of the graph area in the graph feature information set;
and determining the range within the maximum value and the minimum value as the graphic feature range.
Optionally, the object to be identified is a parking space, the graph is in the shape of a parallelogram, and the filtering of the graph group in which the primitive information of the target graph block in the initial graph group set meets the filtering condition to obtain the target graph group set includes:
judging whether the area of the image block of the target image block is within the graphic feature range;
if yes, extracting line primitives in the primitive information;
judging whether the number of the line primitives is more than four;
if so, judging whether the shape enclosed by the line graphics primitives is a parallelogram;
if yes, determining that the target image block meets the screening condition, and taking the set of image block sets corresponding to the primitive information meeting the screening condition as the target image block set.
Optionally, the determining whether the shape enclosed by the line primitives is a parallelogram includes:
judging whether the target line primitive intersects with two line primitives or not aiming at any target line primitive, wherein the target line primitive is parallel to one line primitive; the target line graphic primitive is any line graphic primitive in the target graphic block;
and if so, determining that the shape defined by the line drawing elements is a parallelogram.
Optionally, the identifying the object to be identified in the target image block according to the graphic feature information set includes:
analyzing the target image block to obtain primitive information;
determining target graphic feature information in the graphic feature information set according to the primitive information, wherein the primitive information is within a preset range of the target graphic feature information;
and determining the object to be identified corresponding to the target graphic feature information as the object to be identified in the target image block.
In a second aspect, an embodiment of the present application provides an apparatus for identifying an object in an engineering drawing, including:
the first acquisition module is used for acquiring the engineering drawing to be identified;
the second acquisition module is used for acquiring a graphic characteristic information set of the object to be identified;
the determining module is used for determining a target image block to be identified in the engineering drawing according to the graphic characteristic information set;
and the identification module is used for identifying the object to be identified in the target image block according to the graphic characteristic information set.
In a third aspect, an embodiment of the present application provides an electronic device, including: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface 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 method for identifying the object in the engineering drawing according to the first aspect.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the method for identifying an object in an engineering drawing according to the first aspect is implemented.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages: according to the method provided by the embodiment of the application, the engineering drawing to be identified is obtained; acquiring a graphic characteristic information set of an object to be identified; determining a target image block to be identified in the engineering drawing according to the graphic characteristic information set; and identifying the object to be identified in the target image block according to the graphic characteristic information set. Therefore, when the object to be recognized in the engineering drawing needs to be recognized, the object to be recognized in the engineering drawing is recognized according to the graph feature information set by acquiring the graph feature information set of the object to be recognized, the mode of manpower consumption for confirmation is avoided, the object to be recognized in the engineering drawing can be recognized quickly, and the recognition efficiency is improved.
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 an application scene diagram of an object identification method in an engineering drawing according to an embodiment of the present application;
fig. 2 is a flowchart of an object identification method in engineering drawings according to an embodiment of the present application;
fig. 3 is a structural diagram of an object recognition apparatus in an engineering drawing according to an embodiment of the present application;
fig. 4 is a block diagram of an electronic device according to 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.
Before further detailed description of the embodiments of the present invention, terms and expressions referred to in the embodiments of the present invention are described, and the terms and expressions referred to in the embodiments of the present invention are applicable to the following explanations.
And the drawing frame is a wire frame for defining a drawing area on the drawing in the engineering drawing. The drawing sheet must be outlined by bold solid lines. The frame format has two types of bound edges and unbound edges, but the same product pattern can only adopt one format.
Primitive: the primitive comprises at least one element, the element comprising: any one or more of points, lines, and planes drawn on the drawing sheet.
A tile refers to a combination of multiple primitives.
An embodiment according to the application provides an object identification method in engineering drawings. Alternatively, in the embodiment of the present application, the object identification method in the engineering drawing may be applied to a hardware environment formed by the terminal 101 and the server 102 as shown in fig. 1. As shown in fig. 1, a server 102 is connected to a terminal 101 through a network, which may be used to provide services (such as video services, application services, etc.) for the terminal or a client installed on the terminal, and a database may be provided on the server or separately from the server for providing data storage services for the server 102, and the network includes but is not limited to: the terminal 101 is not limited to a PC, a mobile phone, a tablet computer, and the like.
The object identification method in the engineering drawing of the embodiment of the application may be executed by the server 102, the terminal 101, or both the server 102 and the terminal 101. The terminal 101 executes the object identification method in the engineering drawing according to the embodiment of the present application, or may be executed by a client installed thereon.
Taking a server to execute the method for identifying an object in an engineering drawing according to the embodiment of the present application as an example, fig. 2 is a schematic flow chart of an optional method for identifying an object in an engineering drawing according to the embodiment of the present application, and as shown in fig. 2, the flow of the method may include the following steps:
step 201, obtaining an engineering drawing to be identified.
In some embodiments, the engineering drawing may be, but is not limited to, a construction engineering drawing, for example, at least one of: drawings for airports, train stations, bus stations, office buildings, residential buildings, hospitals, museums, tourist attractions, churches, schools, parks, and the like.
Illustratively, the engineering drawings comprise parking space drawings and house drawings.
Step 202, acquiring a graphic feature information set of an object to be identified.
In some embodiments, the graphic feature information set of the object to be recognized may be stored in a database of the server, and when the user needs to recognize the object to be recognized, the corresponding graphic feature information set is selected through the relevant interface. Or, the graphic feature information set may be uploaded in real time when the user needs to identify the object to be identified.
The graphic feature information set comprises graphic features of the object to be recognized, and the graphic features comprise graphic shapes, graphic areas and the like. When the types of the objects to be recognized are various, the graphic characteristic information set comprises the graphic characteristic information of each type of the objects to be recognized.
For example, the object to be identified is a parking space, and there are various types of parking spaces, including a common parking space, a charging parking space, a primary and secondary parking space, a barrier-free parking space, and the like. For different types of parking spaces, the corresponding parking space shapes, parking space areas and the like may be different, and therefore, the graphic feature information sets of the parking spaces include information of the parking space shapes, the parking space areas and the like of the different types of parking spaces.
And 203, determining target image blocks to be identified in the engineering drawing according to the graphic characteristic information set.
In some embodiments, when the engineering drawing is drawn, shapes used for multiple times are often represented by blocks, so that the drawing cost is reduced. In the same engineering drawing, multiple types of image blocks may be available to represent different drawing objects, so that when the object to be recognized needs to be recognized, the image blocks including the object to be recognized can be determined first to reduce the calculation amount.
In an optional embodiment, determining a target block to be identified in the engineering drawing according to the graphic feature information set includes:
dividing the image blocks in the engineering drawing into at least one image block group to obtain an initial image block group set; screening the chart blocks in the initial chart block set according to the graph characteristic information set to obtain a target chart block set; and determining any picture block in each picture block group in the target picture block group as a target picture block.
In some embodiments, the engineering drawing includes a plurality of blocks, and when objects to be identified of the blocks in the engineering drawing are identified, if the objects to be identified are identified one by one, a large calculation amount is caused to the server.
In an optional embodiment, dividing the tiles in the engineering drawing into at least one tile group to obtain an initial tile group set, includes:
determining a drawing frame set in the engineering drawing; extracting pattern block information in each picture frame in the picture frame set; and dividing the picture blocks in the engineering drawing into at least one picture block group according to the picture block information to obtain an initial picture block group set, wherein the picture block information in each picture block group in the initial picture block group set is the same, and the picture block information among different picture block groups is different.
In some embodiments, the method for grouping the image blocks has multiple modes, in the embodiment, the image block information of each image frame in the engineering drawing is extracted, and the image blocks are grouped through the image block information, so that the divided image block groups are screened, and the calculation amount of the server is reduced.
Among them, the tile information may include, but is not limited to: tile name and tile attributes. Wherein the tile attributes include a rotation direction of the tile.
In an optional embodiment, the filtering, according to the graph feature information set, the tile groups in the initial tile group set to obtain a target tile group set, includes:
determining a screening condition according to the graphic characteristic information set; analyzing the target image block to obtain primitive information in the target image block; and screening the image group of which the primitive information of the target image block in the initial image group set meets the screening condition to obtain a target image group set.
In some embodiments, after the graphic feature information set is obtained, a screening condition may be determined according to the graphic feature information set, and the target blocks are screened according to the screening condition, so as to obtain a target block set satisfying the screening condition.
Further, determining a screening condition according to the graphic feature information set, including:
determining a graphic feature range in a graphic feature information set; determining a graph shape in the graph feature information set; and determining the shape of the graph and the range of the graph characteristic as a screening condition.
In some embodiments, the graphic feature information set includes graphic features, where the graphic features include graphic shapes and graphic areas, and when there are multiple types of objects to be recognized, a graphic feature range may be determined according to the graphic features as one of the filtering conditions, and in addition, the graphic shapes of the objects to be recognized are generally the same although the types may be different, so that the graphic shapes may be used as one of the filtering conditions.
Further, determining a range of the graphic feature in the graphic feature information set includes:
acquiring the maximum value and the minimum value of the graph area in the graph feature information set; and determining the range between the maximum value and the minimum value as a graphic feature range.
In this embodiment, the determined graphic feature range may be determined according to a graphic area in the graphic feature, and for different types of objects to be identified, the graphic areas may be different, so that by determining a maximum value and a minimum value in the graphic area, a range between the maximum value and the minimum value is used as the graphic feature range, thereby implementing the screening of the image blocks.
In an optional embodiment, the method for obtaining the target tile group set includes the steps of screening a tile group, in which primitive information of a target tile in an initial tile group set meets a screening condition, of the target tile group set, where the target tile group set includes:
judging whether the area of the image block of the target image block is within the graphic feature range; if yes, extracting line primitives in the primitive information; judging whether the number of the line primitives is more than or equal to four; if yes, judging whether the shape formed by the line drawing elements is a parallelogram or not; if yes, determining that the target image block meets the screening condition, and taking the set of the image block groups corresponding to the primitive information meeting the screening condition as the target image block group set.
In some embodiments, when the object to be identified is a parking space, the parking space generally includes a common parking space, a charging parking space, an alphabetical parking space, a barrier-free parking space, and the like, and for different types of parking spaces, the shapes of the patterns are generally parallelograms, and the shape of the pattern of a special parking space is a rectangle, so that the target pattern group set meeting the screening condition can be determined by the characteristics of the parallelograms.
Specifically, the graphic blocks may be analyzed to obtain the primitive information, and since the parking space may have graphic information except for the parking space frame, for example, a charging graphic or a character may be present in the charging parking space, it may be determined whether the graphic blocks satisfy the screening condition by extracting line primitives from the graphic information.
When the object to be identified is a parking space, the shape of the parking space is a parallelogram, the parallelogram comprises four crossed line segments, each line segment in the four line segments is parallel to the line segment, and the two line segments are crossed with the line segment; and if the target line primitive is any line primitive in the target image block, determining that the image shape of the image block is a parallelogram.
When the extracted primitive is a broken line primitive, the broken line primitive may be converted into a line primitive, and then the filtering in the above embodiment is performed.
And 204, identifying the object to be identified in the target image block according to the graphic characteristic information set.
In some embodiments, after the target image block is determined, the object to be identified in the target image block may be identified through the acquired graphic feature information set of the object to be identified.
In an optional embodiment, identifying the object to be identified in the target tile according to the graphic feature information set includes:
analyzing the target image block to obtain primitive information; determining target graphic characteristic information in the graphic characteristic information set according to the graphic element information, wherein the graphic element information is within a preset range of the target graphic characteristic information; and determining the object to be identified corresponding to the target graphic characteristic information as the object to be identified in the target graphic block.
In some embodiments, the determined target image block meets the screening condition, the image feature information set includes image feature information of multiple types of objects to be identified, and the primitive information of the target image block is compared with each type of image feature information, so that if the primitive information is within a preset range of the target image feature information, the object to be identified corresponding to the image feature information can be determined to be the object to be identified of the target image block.
Exemplarily, an object to be recognized is taken as a parking space, and for different types of parking spaces, the parking space size and the parking space area are different, so that a parallelogram surrounded by the middle primitive information of the target pattern block can be compared with the parking space size and the parking space area. For example, the size and the area of the parking space of the accessible parking space are large, and the size of the primitive in the target block is within the preset range of the size of the parking space, and the object to be identified in the target block is determined as the accessible parking space.
In a specific embodiment, taking an object to be identified as a parking space as an example, the method for identifying an object in an engineering drawing in the embodiment specifically includes:
firstly, extracting image blocks.
Firstly, reading a CAD drawing and uploading the CAD drawing to a file service, initiating drawing frame analysis according to file hash returned by a server, and initiating block analysis in a frame range by traversing frames one by one. And carrying out grouping extraction processing on the image block data to obtain different image block groups.
And secondly, preliminarily filtering the map block groups according to the parking space area.
And performing primary filtering processing on the extracted picture frame types according to the parking space area. The specific operation is as follows: according to the area requirement of equidimension parking stall not, the minimum area of parking stall of being less than and the block that is greater than the maximum parking stall maximum area is filtered and is excluded, only remains the block that the area size is in between minimum parking stall area to the maximum parking stall area.
It should be noted that, because of the problem that the picture frame area is larger than the parking space area caused by the problems of the side parking space, the visual error of the two-position figure and the like, the minimum parking space area and the maximum parking space area should be subjected to fault-tolerant processing, and the maximum value is reasonably set to avoid error screening and over screening.
And thirdly, performing secondary filtering according to the number of the graphic elements of the screened image blocks.
Firstly, extracting tile space and coordinate information of the tile groups reserved after screening.
Secondly, for the image block groups reserved after screening, each group respectively analyzes one image block. After the image blocks are analyzed, all primitives forming the image blocks are obtained, the types of the primitives are obtained, all Line primitives (namely single-segment Line primitives) and Polyline primitives (namely multi-segment Line primitives) are extracted, and the extracted Polyline primitives are converted into the Line primitives. And respectively judging whether the size of each parking space meets the standard requirements according to different types of primitives, specifically, calculating the length of each Line primitive, and screening out the Line primitives meeting the length and width of the type of parking space. And removing the interference graphic elements which do not accord with the parking space size of the type.
And thirdly, because the parking space image block at least comprises 4 Line primitives, after the primitive information contained in each image block group is obtained, the image block group which does not meet at least four Line primitives can be eliminated.
Fourthly, further filtering the image blocks by using the geometric characteristics of the parking spaces.
The parking space geometric characteristics refer to the judgment of intersection, parallelism and closure according to the coordinates of Line primitives. It can be understood that image recognition can also be performed on the primitive block obtained in the third step to determine whether the geometric characteristics of the parking space are satisfied.
Preferably, the scheme performs geometric characteristic judgment on the space and coordinate information of the Line primitive, and is specifically realized as follows:
traversing the Line primitives in each group of the image blocks, extracting an intersecting primitive of each primitive by using the space and coordinate information of each Line primitive, and regarding the intersecting primitive as a result of fast repulsion, a cross experiment and point range inference during approximate intersection (note that a fault tolerance range needs to be considered during intersection judgment). According to the intersection characteristics of the primitives of the four sides of the parking space, the group of the primitives which do not satisfy the condition that at least four intersected Line primitives are contained and each Line primitive has at least 2 Line primitives intersected with the Line primitive can be eliminated. Preferably, because there may be drawing errors, the coordinates of the Line primitive in each reserved image block are first expanded, and the coordinates of two end points of the Line primitive are appropriately extended, so as to increase the accuracy of subsequent geometric feature determination. For example, two end points of the Line primitive are respectively extended by 1 mm.
Traversing the Line primitives again, calculating and comparing the slope of the lines, and extracting the 'parallel primitives' of each Line primitive, wherein at least one opposite side of the parking space is certainly parallel (the slope error is set to be 0.15) in the parking space pattern block, so that the pattern block group which does not meet the requirement that 'at least four parallel Line primitives exist and each parallel Line primitive has at least one other parallel Line primitive' can be eliminated. It should be noted that the fault tolerance range needs to be considered when determining parallelism.
Traversing the Line primitives again, extracting the 'parallelogram' primitives according to the intersecting and parallel characteristics, and eliminating the primitive groups which do not satisfy 'at least 4 Line primitives, wherein each Line primitive has at least two Line primitives intersecting with the Line primitive and one Line primitive parallel to the Line primitive'.
And judging whether at least 4 Line primitives are connected end to form a closed structure.
And fifthly, confirming parking space pattern blocks and identifying all parking spaces in the drawing.
According to the pattern blocks (groups) reserved in the mode, all parking spaces in the picture frame are identified, and according to the unique id of the blocks, the coordinates are subjected to duplication elimination processing to finish the drawing parking space identification.
In the embodiment, based on the extraction and the analysis of the image blocks in the CAD drawing, the geometric rules of the image primitives of the image blocks are judged, so that the parking space image blocks in the drawing are identified, and the parking space of the whole drawing is identified by using the parking space image blocks. The method effectively solves the problem that the image recognition accuracy (including the recognition rate and the recognition accuracy) is not high due to unreasonable model construction and the existence of factors such as interfering primitives in the prior art.
Based on the same concept, the embodiment of the present application provides an apparatus for identifying an object in an engineering drawing, and specific implementation of the apparatus may refer to the description of the method embodiment, and repeated details are not repeated, as shown in fig. 3, the apparatus mainly includes:
the first acquisition module 301 is used for acquiring an engineering drawing to be identified;
a second obtaining module 302, configured to obtain a set of graphical feature information of an object to be identified;
the determining module 303 is configured to determine a target image block to be identified in the engineering drawing according to the graphic feature information set;
and the identification module 304 is used for identifying the object to be identified in the target image block according to the graphic feature information set.
Based on the same concept, an embodiment of the present application further provides an electronic device, as shown in fig. 4, the electronic device mainly includes: a processor 401, a memory 402 and a communication bus 403, wherein the processor 401 and the memory 402 communicate with each other via the communication bus 403. The memory 402 stores a program executable by the processor 401, and the processor 401 executes the program stored in the memory 402, so as to implement the following steps:
acquiring an engineering drawing to be identified;
acquiring a graphic characteristic information set of an object to be identified;
determining a target image block to be identified in the engineering drawing according to the graphic characteristic information set;
and identifying the object to be identified in the target image block according to the graphic characteristic information set.
The communication bus 403 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 403 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. 4, but this does not indicate only one bus or one type of bus.
The Memory 402 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 aforementioned processor 401.
The Processor 401 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc., and may also 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 still another embodiment of the present application, there is also provided a computer-readable storage medium having a computer program stored therein, which, when run on a computer, causes the computer to execute the object identification method in engineering drawings described in the above embodiments.
In the above embodiments, the implementation may be wholly or partially 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 (12)

1. A method for identifying an object in an engineering drawing is characterized by comprising the following steps:
acquiring an engineering drawing to be identified;
acquiring a graphic characteristic information set of an object to be identified;
determining a target image block to be identified in the engineering drawing according to the graphic characteristic information set;
and identifying the object to be identified in the target image block according to the graphic feature information set.
2. The method for identifying the object in the engineering drawing according to claim 1, wherein the determining the target block to be identified in the engineering drawing according to the graphic feature information set comprises:
dividing the image blocks in the engineering drawing into at least one image block group to obtain an initial image block group set;
screening the chart blocks in the initial chart block set according to the graph characteristic information set to obtain a target chart block set;
determining any tile in each tile group in the target tile group set as the target tile.
3. The method for identifying objects in engineering drawings according to claim 2, wherein the dividing of the drawing blocks in the engineering drawings into at least one drawing block group to obtain an initial drawing block group set comprises:
determining a drawing frame set in the engineering drawing;
extracting tile information in each frame in the frame set;
and dividing the picture blocks in the engineering drawing into at least one picture block group according to the picture block information to obtain the initial picture block group set, wherein the picture block information in each picture block group in the initial picture block group set is the same, and the picture block information in different picture block groups is different.
4. The method for identifying objects in engineering drawings according to claim 2, wherein the step of screening the diagram blocks in the initial diagram block set according to the graphic feature information set to obtain a target diagram block set comprises:
determining a screening condition according to the graphic feature information set;
analyzing the target image block to obtain primitive information in the target image block;
and screening the image group of which the primitive information of the target image block meets the screening condition in the initial image group set to obtain the target image group set.
5. The method for identifying the object in the engineering drawing according to claim 4, wherein the determining the screening condition according to the graphic feature information set comprises:
determining a graphic feature range in the graphic feature information set;
determining a graphic shape in the graphic feature information set;
and determining the graph shape and the graph characteristic range as the screening condition.
6. The method for identifying the object in the engineering drawing according to claim 5, wherein the determining the graphic feature range in the graphic feature information set comprises:
acquiring the maximum value and the minimum value of the graph area in the graph feature information set;
and determining the range within the maximum value and the minimum value as the graphic feature range.
7. The method for identifying the object in the engineering drawing according to claim 5, wherein the object to be identified is a parking space, the figure is in the shape of a parallelogram, and the step of screening the group of figures, in which the primitive information of the target figure block in the initial group of figures meets the screening condition, to obtain the target group of figures comprises:
judging whether the area of the image block of the target image block is within the graphic feature range;
if yes, extracting line primitives in the primitive information;
judging whether the number of the line primitives is more than four;
if so, judging whether the shape enclosed by the line graphics primitives is a parallelogram;
if yes, determining that the target image block meets the screening condition, and taking the set of image block sets corresponding to the primitive information meeting the screening condition as the target image block set.
8. The method for identifying the object in the engineering drawing according to claim 7, wherein the step of judging whether the shape enclosed by the line graphics primitives is a parallelogram comprises the following steps:
judging whether the target line primitive intersects with two line primitives or not aiming at any target line primitive, wherein the target line primitive is parallel to one line primitive; the target line graphic primitive is any line graphic primitive in the target graphic block;
and if so, determining that the shape defined by the line drawing elements is a parallelogram.
9. The method for identifying the object in the engineering drawing according to claim 1, wherein the identifying the object to be identified in the target image block according to the graphic feature information set comprises:
analyzing the target image block to obtain primitive information;
determining target graphic feature information in the graphic feature information set according to the primitive information, wherein the primitive information is within a preset range of the target graphic feature information;
and determining the object to be identified corresponding to the target graphic feature information as the object to be identified in the target image block.
10. An object recognition device in engineering drawings is characterized by comprising:
the first acquisition module is used for acquiring the engineering drawing to be identified;
the second acquisition module is used for acquiring a graphic characteristic information set of the object to be identified;
the determining module is used for determining a target image block to be identified in the engineering drawing according to the graphic characteristic information set;
and the identification module is used for identifying the object to be identified in the target image block according to the graphic feature information set.
11. An electronic device, comprising: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
the memory for storing a computer program;
the processor is used for executing the program stored in the memory and realizing the object identification method in the engineering drawing according to any one of claims 1 to 9.
12. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the method for identifying an object in an engineering drawing according to any one of claims 1 to 9.
CN202111536769.1A 2021-12-15 2021-12-15 Method and device for identifying object in engineering drawing, electronic equipment and storage medium Pending CN114283186A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111536769.1A CN114283186A (en) 2021-12-15 2021-12-15 Method and device for identifying object in engineering drawing, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111536769.1A CN114283186A (en) 2021-12-15 2021-12-15 Method and device for identifying object in engineering drawing, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114283186A true CN114283186A (en) 2022-04-05

Family

ID=80872624

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111536769.1A Pending CN114283186A (en) 2021-12-15 2021-12-15 Method and device for identifying object in engineering drawing, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114283186A (en)

Similar Documents

Publication Publication Date Title
US11455805B2 (en) Method and apparatus for detecting parking space usage condition, electronic device, and storage medium
CN111008597A (en) Space identification method and device for CAD drawing, electronic equipment and storage medium
CN112233240B (en) Three-dimensional vector data slicing method and device of three-dimensional vector map and electronic equipment
CN111782584B (en) Building drawing preprocessing system, method, electronic equipment and storage medium
CN109308386B (en) Engineering drawing wall body identification method and device and electronic equipment
CN114444168A (en) Method and device for identifying wall column in building drawing, electronic equipment and storage medium
CN113205024B (en) Engineering drawing preprocessing method and device, electronic equipment and storage medium
CN112132892B (en) Target position labeling method, device and equipment
CN114282288A (en) Axle network identification method, device, equipment and storage medium
CN113743187A (en) Method and device for identifying legend in engineering drawing, electronic equipment and storage medium
CN114283186A (en) Method and device for identifying object in engineering drawing, electronic equipment and storage medium
CN114283415A (en) Parking space identification method and device, electronic equipment and storage medium
CN114550187A (en) Method and device for identifying doors and windows in drawing, electronic equipment and storage medium
CN116343251A (en) Building drawing identification method and system based on AI building identification chart
CN111199357B (en) Express delivery point electronic fence diagnosis method and device
CN114936395A (en) Household type graph recognition method and device, computer equipment and storage medium
CN113435289A (en) Space division method, device, equipment and storage medium
CN113392453B (en) Space extraction method and device in engineering drawing, electronic equipment and storage medium
CN113205551B (en) Method, device and equipment for calculating height of building profile layer and storage medium
CN111709346A (en) Historical building identification and detection method based on deep learning and high-resolution images
CN115687673B (en) Picture archiving method and device, electronic equipment and readable storage medium
CN113393369B (en) Method for detecting sensing range in engineering drawing and related equipment
CN117314917B (en) Bridge crack detection method and device, computer equipment and storage medium
CN115239964A (en) Drainage ditch identification method and device, electronic equipment and storage medium
CN114444169A (en) Building outline recognition method, device, 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