CN110765891A - Engineering drawing identification method, electronic equipment and related product - Google Patents

Engineering drawing identification method, electronic equipment and related product Download PDF

Info

Publication number
CN110765891A
CN110765891A CN201910940651.1A CN201910940651A CN110765891A CN 110765891 A CN110765891 A CN 110765891A CN 201910940651 A CN201910940651 A CN 201910940651A CN 110765891 A CN110765891 A CN 110765891A
Authority
CN
China
Prior art keywords
target
primitive
layer
determining
feature
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
CN201910940651.1A
Other languages
Chinese (zh)
Other versions
CN110765891B (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.)
Shenzhen Wanyi Digital 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 CN201910940651.1A priority Critical patent/CN110765891B/en
Publication of CN110765891A publication Critical patent/CN110765891A/en
Application granted granted Critical
Publication of CN110765891B publication Critical patent/CN110765891B/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
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • General Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Evolutionary Computation (AREA)
  • Biomedical Technology (AREA)
  • Molecular Biology (AREA)
  • Biophysics (AREA)
  • General Engineering & Computer Science (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Multimedia (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application discloses an engineering drawing identification method, electronic equipment and related products, which are applied to the electronic equipment, wherein the method comprises the following steps: acquiring a target primitive, wherein the target primitive is any primitive in a model space; determining target characteristics of the target graphic primitive; and determining the target primitive content corresponding to the target primitive according to the target characteristic. By the adoption of the method and the device, the picture element content can be accurately identified.

Description

Engineering drawing identification method, electronic equipment and related product
Technical Field
The application relates to the technical field of graphic processing, in particular to an engineering drawing identification method, electronic equipment and a related product.
Background
In life, in the engineering field, Computer Aided Design (CAD) is undoubtedly a Design software used by each Design unit at high frequency, and for various projects, CAD can be adopted for Design and finally saved in the form of electronic version.
In fact, when the engineering project design is completed, the design drawing is often intricate and complex, and therefore, it is difficult to accurately identify the primitive content corresponding to the primitive.
Disclosure of Invention
The embodiment of the application provides an engineering drawing identification method, electronic equipment and a related product, and picture element content can be accurately identified.
In a first aspect, an embodiment of the present application provides an engineering drawing identification method, which is applied to an electronic device, and the method includes:
acquiring a target primitive, wherein the target primitive is any primitive in a model space;
determining target characteristics of the target graphic primitive;
and determining the target primitive content corresponding to the target primitive according to the target characteristic.
In a second aspect, an embodiment of the present application provides an engineering drawing identification apparatus, which is applied to an electronic device, and the apparatus includes:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a target primitive which is any primitive in a model space;
the first determining unit is used for determining the target characteristics of the target graphic primitive;
and the second determining unit is used for determining the target graphic element content corresponding to the target graphic element according to the target characteristic.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing the steps in the first aspect of the embodiment of the present application.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program enables a computer to perform some or all of the steps described in the first aspect of the embodiment of the present application.
In a fifth aspect, embodiments of the present application provide a computer program product, where the computer program product includes a non-transitory computer-readable storage medium storing a computer program, where the computer program is operable to cause a computer to perform some or all of the steps as described in the first aspect of the embodiments of the present application. The computer program product may be a software installation package.
The embodiment of the application has the following beneficial effects:
the engineering drawing identification method, the electronic device and the related product are applied to the electronic device, the target primitive is obtained, the target primitive is any primitive in the model space, the target feature of the target primitive is determined, the target primitive content corresponding to the target primitive is determined according to the target feature, therefore, the feature of the primitive can be analyzed, the primitive content can be identified according to the feature of the primitive, the primitive content can be accurately identified, and the primitive identification precision is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application 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, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1A is a schematic flowchart of an engineering drawing identification method according to an embodiment of the present application;
fig. 1B is a schematic flowchart of another engineering drawing identification method provided in the embodiment of the present application;
FIG. 2 is a schematic flow chart diagram of another engineering drawing identification method provided in the embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 4 is a functional unit composition block diagram of an engineering drawing recognition apparatus according to an embodiment of the present application.
Detailed Description
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
In order to make the technical solutions of the present application better understood, 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 only a part of the embodiments of the present application, and not all of the 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.
The electronic device described in the embodiment of the present application may include a smart Phone (e.g., an Android Phone, an iOS Phone, a Windows Phone, etc.), a tablet computer, a palm computer, a notebook computer, a video matrix, a monitoring platform, a Mobile Internet device (MID, Mobile Internet Devices), or a wearable device, which are merely examples, but not exhaustive, and include but are not limited to the foregoing Devices, and of course, the electronic device may also be a server.
The following describes embodiments of the present application in detail.
Fig. 1A is a schematic flow chart of an engineering drawing identification method provided in an embodiment of the present application, and as shown in the drawing, the engineering drawing identification method includes:
101. and acquiring a target primitive which is any primitive in the model space.
The embodiments of the present application may be applied to a CAD scenario or other drawing tool scenarios, which are not limited herein. The CAD construction drawing can be imported into Building Information Modeling (BIM) model software. The electronic device may obtain any primitive in the model space as the target primitive.
In a specific implementation, a user can click a position in an operation process, and a primitive containing the position is taken as a target primitive.
In a possible example, the electronic device establishes a communication connection with an external device, and the step 101 of obtaining the target primitive may include the following steps:
11. determining a target position clicked by a user;
12. sending a shooting instruction to the external equipment, wherein the shooting instruction carries the target position and is used for indicating the external equipment to shoot the target position;
13. receiving a photographed image photographed by the external device;
14. determining a mapping position corresponding to the target position in the initial image;
15. and performing screenshot operation on the shot image according to the mapping position to obtain the target primitive.
In this embodiment of the present application, an external device may be understood as another electronic device, and a communication connection may be established between the electronic device and the external device, where the communication connection may be at least one of the following: a bluetooth communication connection, an Ad hoc network, an infrared communication network, a wireless fidelity (Wi-Fi) communication connection, a mobile network communication connection, an infrared communication connection, etc., which are not limited herein.
In a specific implementation, the electronic device may determine a target position of a target primitive, where the target position may be any position in a model space clicked by a user, and further, the electronic device may send a shooting instruction to the external device, where the shooting instruction may carry the target position, where the shooting instruction may be used to instruct the external device to shoot the target position, specifically, the external device may take the target position as a focus to shoot to obtain a shot image, and further, the shot image may be sent to the electronic device, the electronic device receives the shot image, may determine a point in the shot image corresponding to the target position as a mapping position, and perform a screenshot operation according to the mapping position, specifically, may perform a screenshot operation on an area within a certain range with the mapping position as a center to obtain the target primitive, or may perform a search using the mapping position, and obtaining a primitive closest to the mapping position, and performing screenshot operation on the primitive to obtain a target primitive.
102. And determining the target characteristics of the target graphic elements.
In this embodiment, the target feature may further include an element type, and the element type may be at least one of the following: the target feature may further include a feature point or a feature line, which is not limited herein, where the feature point may be obtained by a feature point extraction algorithm, and the feature point extraction algorithm may be at least one of the following: harris corner detection, Scale Invariant Feature Transform (SIFT), laplace transform, wavelet transform, contour wave transform, shear wave transform, and the like, without limitation, the characteristic texture may be obtained by a texture extraction algorithm, and the texture extraction algorithm may be at least one of the following: hough transform, canny operator, sobel operator, prewitt operator, etc., without limitation.
In particular, the electronic device may take some basic elements in the target primitive as target features, which may be the smallest units understood to constitute the target primitive.
In one possible example, the step 102 of determining the target feature of the target primitive may include the following steps:
21. detecting whether the target primitive is a block reference;
22. when the target graphic element is not referenced by the block, recording a first target layer corresponding to the target graphic element;
23. and taking the first target layer and the attribute information corresponding to the target graphic element as the target feature.
In this embodiment of the present application, the attribute information of the target primitive may be at least one of the following: basic elements, sizes, types of elements, numbers of elements corresponding to each type of elements, and the like, which are not limited herein, the types of elements may be at least one of the following: straight lines, curves, arcs, rectangles, triangles, circles, ellipses, diamonds, etc., without limitation thereto. The first target layer may be understood as a layer position, i.e. at which layer.
In a specific implementation, the electronic device may detect whether a target primitive is a block reference, and when the target primitive is not a block reference, may record a first target layer corresponding to the target primitive, and may use the first target layer and attribute information corresponding to the target primitive as a target feature.
Further, in one possible example, the following steps may also be included:
a1, when the target primitive is the block reference, executing the following steps:
a2, traversing a first primitive in the block reference, and detecting whether the first primitive is the block reference;
a3, when the first primitive is not the block reference, detecting whether the layer of the first primitive is 0;
a4, when the layer of the first primitive is 0, recording a second target layer of the first primitive;
and A5, taking the second target layer and the attribute information corresponding to the first graphic element as the target feature.
In specific implementation, when a target primitive is a block reference, the electronic device may traverse a first primitive in the block reference, where the first primitive may be understood as a primitive referenced by the target primitive, detect whether the first primitive is the block reference, and when the first primitive is not the block reference, may detect whether a layer of the first primitive is 0, and when the layer of the first primitive is 0, may record a second target layer of the first primitive, where the second target layer may be understood as a layer position, that is, which layer is located, and further, may use attribute information corresponding to the second target layer and the first primitive as a target feature.
Further, in one possible example, the following steps may also be included:
a6, when the layer of the first primitive is not 0, recording a third target layer of the first primitive;
and A7, taking the third target layer and the attribute information corresponding to the first primitive as the target feature.
The electronic device may record a third target layer of the first primitive when the layer of the first primitive is not 0, where the third target layer may be understood as a layer position, that is, which layer is located. Further, the attribute information of the third target layer and the first primitive may be used as a target feature.
103. And determining the target primitive content corresponding to the target primitive according to the target characteristic.
In this embodiment, the primitive content may be at least one of the following: walls, windows, doors, flower beds, sinks, stairs, etc., without limitation.
In a possible example, before the step 101, the flowchart shown in fig. 1B may be executed, specifically, traversing a primitive in a model space, detecting whether the primitive is a block reference, when the primitive is not a block reference, recording a layer where the primitive is located, when the primitive is a block reference, traversing a primitive in a block, detecting whether the primitive is a block reference, if so, circularly executing traversal of the primitive in the block until the primitive is not a block reference, determining whether a primitive layer of the primitive at that time is 0, if the primitive layer is 0, recording a layer of a block where the primitive is located, if the primitive layer is not 0, also recording the layers where the primitive is located, summarizing layers included in all the layers, determining contents of the layers according to a statistical rule of the primitives included in each layer, and determining the contents of the primitives corresponding to each type of primitive according to the method.
In a possible example, in step 103, determining the content of the target primitive corresponding to the target primitive according to the target feature may be implemented as follows:
and determining the target primitive content corresponding to the target feature according to a preset mapping relation between the feature and the primitive content.
In the embodiment of the application, a mapping relationship between preset features and primitive contents may be pre-stored in the electronic device, and then target primitive contents corresponding to the target features may be determined according to the mapping relationship. In a specific implementation, the electronic device may analyze each primitive, determine a corresponding feature thereof, and then establish a mapping relationship between the feature and the primitive content.
In a possible example, the step 103 of determining, according to the target feature, a target primitive content corresponding to the target primitive may include the following steps:
and inputting the target characteristics into a preset neural network model to obtain the target primitive content corresponding to the target characteristics.
The preset neural network model can be preset or default in a system, and the preset neural network model can be at least one of the following: the cyclic neural network model, the impulse neural network model, or the convolutional neural network model, which is not limited herein. In specific implementation, the preset neural network model can be obtained by training according to the characteristics of different primitives.
In one possible example, when the target feature is a target feature point set, in step 103, determining the target primitive content corresponding to the target primitive according to the target feature may include the following steps:
31. determining a module value corresponding to each feature point in the target feature point set to obtain a plurality of module values;
32. selecting a module value larger than a preset module value from the plurality of module values to obtain a plurality of target module values, and obtaining characteristic points corresponding to the plurality of target module values to obtain a plurality of target characteristic points;
33. matching the target characteristic points with a preset characteristic point set of a preset template primitive to obtain a plurality of pairs of successfully matched characteristic points;
34. selecting three pairs of characteristic point pairs with the maximum matching value from the plurality pairs of characteristic points which are successfully matched;
35. constructing a first triangle and a second triangle according to the three pairs of feature point pairs, wherein the first triangle is a feature point in the target image, and the second triangle is a feature point in the preset feature point set;
36. and when the first triangle is similar to the second triangle, confirming that the target feature point set is successfully matched with a preset feature point set of a preset template primitive, and taking the primitive content corresponding to the preset template primitive as the primitive content corresponding to the target feature.
In a specific implementation, the preset modulus value may be set by a user or default by a system, and the preset template primitive may be stored in the electronic device in advance.
Further, in the embodiment of the present application, each feature point may be understood as a vector, which includes a size and a direction, so that a module value corresponding to each feature point in a target feature point set may be determined to obtain a plurality of module values, a module value greater than a preset module value may be selected from the plurality of module values to obtain a plurality of target module values, and feature points corresponding to the plurality of target module values are obtained to obtain a plurality of target feature points, so that some feature points with good robustness, that is, feature points may be stabilized, which is helpful for subsequently improving recognition accuracy and reducing false recognition probability.
Further, the electronic device may match the plurality of target feature points with a preset feature point set of a preset template primitive to obtain a plurality of pairs of successfully matched feature points, and a feature point extraction algorithm for the preset feature point set may be at least one of the following: the method includes the steps of harris corner detection, Scale Invariant Feature Transform (SIFT), laplace transform, wavelet transform, contourlet transform, shear wave transform and the like, and is not limited herein, and further, three pairs of feature point pairs with the largest matching value can be selected from the multiple pairs of successfully matched feature points, and a first triangle and a second triangle can be constructed according to the three pairs of feature point pairs, wherein the first triangle is a feature point in a target image, the second triangle is a feature point in a preset feature point set, and when the first triangle is similar to the second triangle, it is determined that the target feature point set is successfully matched with the preset feature point set of a preset template primitive, and the primitive content of the preset template primitive can be used as the primitive content corresponding to the target feature. On the contrary, when the first triangle and the second triangle are not similar, the matching of the target feature point set and the preset feature point set of the preset template primitive is determined to fail, so that the primitive content identification of the primitive can be accurately realized.
The engineering drawing identification method is applied to electronic equipment, the target primitive is obtained, the target primitive is any primitive in the model space, the target feature of the target primitive is determined, and the target primitive content corresponding to the target primitive is determined according to the target feature.
Referring to fig. 2, fig. 2 is a schematic flow chart of an engineering drawing identification method according to an embodiment of the present application, and as shown in the figure, the engineering drawing identification method is applied to an electronic device, and includes:
201. and acquiring a target primitive which is any primitive in the model space.
202. And detecting whether the target primitive is a block reference.
203. And when the target graphic element is not referred by the block, recording a first target layer corresponding to the target graphic element.
204. And taking the first target layer and the attribute information corresponding to the target graphic element as the target feature.
205. And determining the target primitive content corresponding to the target primitive according to the target characteristic.
The detailed description of the steps 201 to 205 may refer to the corresponding steps of the engineering drawing identification method described in the above fig. 1A, and is not repeated herein.
The engineering drawing identification method described in the embodiment of the application can be seen, which is applied to electronic equipment, and is used for obtaining a target primitive, wherein the target primitive is any primitive in a model space, detecting whether the target primitive is a block reference, when the target primitive is not the block reference, recording a first target layer corresponding to the target primitive, and determining target primitive content corresponding to the target primitive according to the target characteristics by using the first target layer and attribute information corresponding to the target primitive as target characteristics.
In accordance with the foregoing embodiments, please refer to fig. 3, fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application, and as shown in the drawing, the electronic device includes a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and in an embodiment of the present application, the programs include instructions for performing the following steps:
acquiring a target primitive, wherein the target primitive is any primitive in a model space;
determining target characteristics of the target graphic primitive;
and determining the target primitive content corresponding to the target primitive according to the target characteristic.
The electronic device described in the embodiment of the application can be seen to be applied to an electronic device, a target primitive is obtained, the target primitive is any primitive in a model space, the target feature of the target primitive is determined, and the target primitive content corresponding to the target primitive is determined according to the target feature.
In one possible example, in said determining the target feature of the target primitive, the above program includes instructions for performing the steps of:
detecting whether the target primitive is a block reference;
when the target graphic element is not referenced by the block, recording a first target layer corresponding to the target graphic element;
and taking the first target layer and the attribute information corresponding to the target graphic element as the target feature.
In one possible embodiment, the program further includes instructions for performing the steps of:
when the target primitive is the block reference, executing the following steps:
traversing a first graphic element in the block reference, and detecting whether the first graphic element is the block reference;
detecting whether the layer of the first primitive is 0 or not if the first primitive is not the block reference;
when the layer of the first primitive is 0, recording a second target layer of the first primitive;
and taking the second target layer and the attribute information corresponding to the first graphic element as the target feature.
In one possible embodiment, the program further includes instructions for performing the steps of:
when the layer of the first primitive is not 0, recording a third target layer of the first primitive;
and taking the third target layer and the attribute information corresponding to the first graphic element as the target feature.
In a possible embodiment, in the aspect of determining the content of the target primitive corresponding to the target primitive according to the target feature, the program further includes instructions for performing the following steps:
and determining the target primitive content corresponding to the target feature according to a preset mapping relation between the feature and the primitive content.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the electronic device comprises corresponding hardware structures and/or software modules for performing the respective functions in order to realize the above-mentioned functions. Those of skill in the art will readily appreciate that the present application is capable of hardware or a combination of hardware and computer software implementing the various illustrative elements and algorithm steps described in connection with the embodiments provided herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the electronic device may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
Fig. 4 is a block diagram of functional units of an engineering drawing identification apparatus 400 according to an embodiment of the present application. This engineering drawing recognition device 400 is applied to electronic equipment, device 400 includes: an acquisition unit 401, a first determination unit 402, a second determination unit 403,
an obtaining unit 401, configured to obtain a target primitive, where the target primitive is any primitive in a model space;
a first determining unit 402, configured to determine a target feature of the target primitive;
a second determining unit 403, configured to determine, according to the target feature, a target primitive content corresponding to the target primitive.
The engineering drawing recognition device described in the embodiment of the application is applied to electronic equipment, and is used for acquiring a target primitive, wherein the target primitive is any primitive in a model space, determining the target characteristic of the target primitive, and determining the target primitive content corresponding to the target primitive according to the target characteristic.
In one possible example, in terms of the determining the target feature of the target primitive, the first determining unit 402 is specifically configured to:
detecting whether the target primitive is a block reference;
when the target graphic element is not referenced by the block, recording a first target layer corresponding to the target graphic element;
and taking the first target layer and the attribute information corresponding to the target graphic element as the target feature.
In a possible example, the first determining unit 402 is further specifically configured to:
when the target primitive is the block reference, executing the following steps:
traversing a first graphic element in the block reference, and detecting whether the first graphic element is the block reference;
detecting whether the layer of the first primitive is 0 or not if the first primitive is not the block reference;
when the layer of the first primitive is 0, recording a second target layer of the first primitive;
and taking the second target layer and the attribute information corresponding to the first graphic element as the target feature.
In a possible example, the first determining unit 402 is further specifically configured to:
when the layer of the first primitive is not 0, recording a third target layer of the first primitive;
and taking the third target layer and the attribute information corresponding to the first graphic element as the target feature.
In a possible example, in the aspect of determining the content of the target primitive corresponding to the target primitive according to the target feature, the second determining unit 403 is specifically configured to:
and determining the target primitive content corresponding to the target feature according to a preset mapping relation between the feature and the primitive content.
It can be understood that the functions of each program module of the engineering drawing identification device in this embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, the computer program enabling a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes an electronic device.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising an electronic device.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. The engineering drawing identification method is applied to electronic equipment, and comprises the following steps:
acquiring a target primitive, wherein the target primitive is any primitive in a model space;
determining target characteristics of the target graphic primitive;
and determining the target primitive content corresponding to the target primitive according to the target characteristic.
2. The method of claim 1, wherein determining the target feature of the target primitive comprises:
detecting whether the target primitive is a block reference;
when the target graphic element is not referenced by the block, recording a first target layer corresponding to the target graphic element;
and taking the first target layer and the attribute information corresponding to the target graphic element as the target feature.
3. The method of claim 2, further comprising:
when the target primitive is the block reference, executing the following steps:
traversing a first graphic element in the block reference, and detecting whether the first graphic element is the block reference;
when the first primitive is not the block reference, detecting whether the layer of the first primitive is 0;
when the layer of the first primitive is 0, recording a second target layer of the first primitive;
and taking the second target layer and the attribute information corresponding to the first graphic element as the target feature.
4. The method of claim 3, further comprising:
when the layer of the first primitive is not 0, recording a third target layer of the first primitive; and taking the third target layer and the attribute information corresponding to the first graphic element as the target feature.
5. The method according to any of claims 1-4, wherein said determining the content of the target primitive corresponding to the target primitive according to the target feature comprises:
and determining the target primitive content corresponding to the target feature according to a preset mapping relation between the feature and the primitive content.
6. The engineering drawing recognition device is applied to electronic equipment, and comprises: an acquisition unit, a first determination unit, and a second determination unit, wherein,
the acquisition unit is used for acquiring a target primitive, wherein the target primitive is any primitive in a model space;
the first determining unit is used for determining the target characteristics of the target graphic primitive;
and the second determining unit is used for determining the target primitive content corresponding to the target primitive according to the target characteristic.
7. The apparatus according to claim 6, wherein, in said determining the target feature of the target primitive, the first determining unit is specifically configured to:
detecting whether the target primitive is a block reference;
when the target graphic element is not referenced by the block, recording a first target layer corresponding to the target graphic element;
and taking the first target layer and the attribute information corresponding to the target graphic element as the target feature.
8. The apparatus according to claim 7, wherein the first determining unit is further specifically configured to:
when the target primitive is the block reference, executing the following steps:
traversing a first graphic element in the block reference, and detecting whether the first graphic element is the block reference;
when the first primitive is not the block reference, detecting whether the layer of the first primitive is 0;
when the layer of the first primitive is 0, recording a second target layer of the first primitive;
and taking the second target layer and the attribute information corresponding to the first graphic element as the target feature.
9. An electronic device comprising a processor, a memory for storing one or more programs and configured for execution by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-5.
10. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any one of claims 1-5.
CN201910940651.1A 2019-09-30 2019-09-30 Engineering drawing identification method, electronic equipment and related product Active CN110765891B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910940651.1A CN110765891B (en) 2019-09-30 2019-09-30 Engineering drawing identification method, electronic equipment and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910940651.1A CN110765891B (en) 2019-09-30 2019-09-30 Engineering drawing identification method, electronic equipment and related product

Publications (2)

Publication Number Publication Date
CN110765891A true CN110765891A (en) 2020-02-07
CN110765891B CN110765891B (en) 2022-05-17

Family

ID=69330345

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910940651.1A Active CN110765891B (en) 2019-09-30 2019-09-30 Engineering drawing identification method, electronic equipment and related product

Country Status (1)

Country Link
CN (1) CN110765891B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111310254A (en) * 2020-03-10 2020-06-19 广联达科技股份有限公司 CAD legend recognition method, device, storage medium and electronic equipment
CN111639142A (en) * 2020-05-29 2020-09-08 金现代信息产业股份有限公司 Method and system for realizing association between process diagram and equipment of oil depot equipment
CN111737800A (en) * 2020-06-23 2020-10-02 广联达科技股份有限公司 Primitive selection method and device and electronic equipment
CN112287773A (en) * 2020-10-10 2021-01-29 国家电网有限公司 Primary wiring diagram primitive identification method based on convolutional neural network
CN112598092A (en) * 2020-12-18 2021-04-02 湖南特能博世科技有限公司 Primitive identification matching method and device, computer equipment and readable storage medium
CN112906717A (en) * 2021-03-04 2021-06-04 广联达科技股份有限公司 Method and system for identifying engineering file content

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1997006512A2 (en) * 1995-08-04 1997-02-20 Microsoft Corporation Method and system for rendering graphical objects to image chunks and combining image layers into a display image
CN101561830A (en) * 2008-04-18 2009-10-21 北京数码大方科技有限公司 Dimension marking method for CAD and device thereof
CN101763439A (en) * 2010-03-05 2010-06-30 中国科学院软件研究所 Hypervideo construction method based on rough drawings
CN103605970A (en) * 2013-12-02 2014-02-26 华中师范大学 Drawing architectural element identification method and system based on machine learning
US20150170328A1 (en) * 2013-12-13 2015-06-18 Imagination Technologies Limited Primitive Processing in a Graphics Processing System With Tag Buffer Storage of Primitive Identifiers
CN108460056A (en) * 2017-02-22 2018-08-28 电子科技大学中山学院 Method for converting effective graphic elements of DXF file into JSON data
CN109191576A (en) * 2018-09-06 2019-01-11 宁波睿峰信息科技有限公司 A kind of figure layer classification method that architectural drawing is converted to three-dimensional BIM model
CN109255041A (en) * 2018-08-22 2019-01-22 国网山西省电力公司 A kind of intelligent identification Method of electric installation drawing
CN109993827A (en) * 2019-03-29 2019-07-09 宁波睿峰信息科技有限公司 A kind of elevation recognition methods that architectural drawing is converted to three-dimensional BIM model

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1997006512A2 (en) * 1995-08-04 1997-02-20 Microsoft Corporation Method and system for rendering graphical objects to image chunks and combining image layers into a display image
CN101561830A (en) * 2008-04-18 2009-10-21 北京数码大方科技有限公司 Dimension marking method for CAD and device thereof
CN101763439A (en) * 2010-03-05 2010-06-30 中国科学院软件研究所 Hypervideo construction method based on rough drawings
CN103605970A (en) * 2013-12-02 2014-02-26 华中师范大学 Drawing architectural element identification method and system based on machine learning
US20150170328A1 (en) * 2013-12-13 2015-06-18 Imagination Technologies Limited Primitive Processing in a Graphics Processing System With Tag Buffer Storage of Primitive Identifiers
CN108460056A (en) * 2017-02-22 2018-08-28 电子科技大学中山学院 Method for converting effective graphic elements of DXF file into JSON data
CN109255041A (en) * 2018-08-22 2019-01-22 国网山西省电力公司 A kind of intelligent identification Method of electric installation drawing
CN109191576A (en) * 2018-09-06 2019-01-11 宁波睿峰信息科技有限公司 A kind of figure layer classification method that architectural drawing is converted to three-dimensional BIM model
CN109993827A (en) * 2019-03-29 2019-07-09 宁波睿峰信息科技有限公司 A kind of elevation recognition methods that architectural drawing is converted to three-dimensional BIM model

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张应中等: "光栅图纸上典型图元的交互拾取", 《大连理工大学学报》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111310254A (en) * 2020-03-10 2020-06-19 广联达科技股份有限公司 CAD legend recognition method, device, storage medium and electronic equipment
CN111310254B (en) * 2020-03-10 2023-10-27 广联达科技股份有限公司 CAD legend identification method and device, storage medium and electronic equipment
CN111639142A (en) * 2020-05-29 2020-09-08 金现代信息产业股份有限公司 Method and system for realizing association between process diagram and equipment of oil depot equipment
CN111737800A (en) * 2020-06-23 2020-10-02 广联达科技股份有限公司 Primitive selection method and device and electronic equipment
CN111737800B (en) * 2020-06-23 2024-01-12 广联达科技股份有限公司 Primitive selection method and device and electronic equipment
CN112287773A (en) * 2020-10-10 2021-01-29 国家电网有限公司 Primary wiring diagram primitive identification method based on convolutional neural network
CN112598092A (en) * 2020-12-18 2021-04-02 湖南特能博世科技有限公司 Primitive identification matching method and device, computer equipment and readable storage medium
CN112598092B (en) * 2020-12-18 2022-10-18 湖南特能博世科技有限公司 Primitive identification matching method and device, computer equipment and readable storage medium
CN112906717A (en) * 2021-03-04 2021-06-04 广联达科技股份有限公司 Method and system for identifying engineering file content
CN112906717B (en) * 2021-03-04 2024-05-28 广联达科技股份有限公司 Method and system for identifying engineering file content

Also Published As

Publication number Publication date
CN110765891B (en) 2022-05-17

Similar Documents

Publication Publication Date Title
CN110765891B (en) Engineering drawing identification method, electronic equipment and related product
CN110796016A (en) Engineering drawing identification method, electronic equipment and related product
CN108579094B (en) User interface detection method, related device, system and storage medium
CN104239879B (en) The method and device of separating character
CN110765893B (en) Drawing file identification method, electronic equipment and related product
CN112818456B (en) Layer configuration method, electronic equipment and related products
CN110648363A (en) Camera posture determining method and device, storage medium and electronic equipment
CN112668566A (en) Form processing method and device, electronic equipment and storage medium
CN111783910A (en) Building project management method, electronic equipment and related products
CN113591683A (en) Attitude estimation method, attitude estimation device, electronic equipment and storage medium
CN115861400A (en) Target object detection method, training method and device and electronic equipment
CN111492407B (en) System and method for map beautification
CN114998433A (en) Pose calculation method and device, storage medium and electronic equipment
CN110780771A (en) Touch screen calibration method and related product
CN109711287B (en) Face acquisition method and related product
CN110580171A (en) APP classification method, related device and product
CN114596188A (en) Watermark detection method, model training method, device and electronic equipment
CN111783561A (en) Picture examination result correction method, electronic equipment and related products
EP3410389A1 (en) Image processing method and device
CN111160157A (en) Text extraction method based on DWG drawing and related product
CN113379826A (en) Method and device for measuring volume of logistics piece
CN111563898B (en) Image segmentation method, electronic equipment and related products
CN110765926A (en) Drawing book identification method and device, electronic equipment and storage medium
CN114898350A (en) Bank card identification method, identification system, electronic equipment and storage medium
CN114494960A (en) Video processing method and device, electronic equipment and computer readable 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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230621

Address after: A601, Zhongke Naneng Building, No. 06 Yuexing 6th Road, Gaoxin District Community, Yuehai Street, Nanshan District, Shenzhen City, Guangdong Province, 518063

Patentee after: Shenzhen Wanyi Digital Technology Co.,Ltd.

Address before: 519000 room 105-24914, No.6 Baohua Road, Hengqin New District, Zhuhai City, Guangdong Province (centralized office area)

Patentee before: WANYI TECHNOLOGY Co.,Ltd.