CN111222186A - Method and device for identifying primitive and server - Google Patents

Method and device for identifying primitive and server Download PDF

Info

Publication number
CN111222186A
CN111222186A CN202010009121.8A CN202010009121A CN111222186A CN 111222186 A CN111222186 A CN 111222186A CN 202010009121 A CN202010009121 A CN 202010009121A CN 111222186 A CN111222186 A CN 111222186A
Authority
CN
China
Prior art keywords
primitive
standard
identified
primitives
information corresponding
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
CN202010009121.8A
Other languages
Chinese (zh)
Other versions
CN111222186B (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.)
Hunan Teneng Boshi Technology Co ltd
Original Assignee
Hunan Teneng Boshi 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 Hunan Teneng Boshi Technology Co ltd filed Critical Hunan Teneng Boshi Technology Co ltd
Priority to CN202010009121.8A priority Critical patent/CN111222186B/en
Publication of CN111222186A publication Critical patent/CN111222186A/en
Application granted granted Critical
Publication of CN111222186B publication Critical patent/CN111222186B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Processing Or Creating Images (AREA)
  • Image Analysis (AREA)

Abstract

The invention provides a method, a device and a server for identifying a primitive, which relate to the technical field of primitive identification, and are characterized in that after characteristic information corresponding to a primitive to be identified is extracted, a standard primitive matched with the primitive to be identified is determined according to the characteristic information; judging whether the number of standard primitives matched with the primitives to be identified is greater than a preset number threshold value or not; if so, identifying the primitive to be identified according to the pre-constructed position topological relation; the method, the device and the server for identifying the primitives can be used for identifying each primitive on the CAD drawing, so that the problems of low drawing examination efficiency, human errors and the like caused by manual examination are effectively solved.

Description

Method and device for identifying primitive and server
Technical Field
The present invention relates to the technical field of primitive identification, and in particular, to a method, an apparatus, and a server for primitive identification.
Background
CAD (Computer Aided Design) is an important technology in the development and application of Computer science and technology, and is a Computer application technology which assists engineers such as engineers, designers, architects and the like in product Design, engineering drawing and data management by using the rapid numerical calculation and the powerful image-text processing function of CAD.
The computer aided design has very important significance in improving the design quality, accelerating the design speed, saving labor and time and improving the automation degree of the design work. Now, the method becomes an essential key technology for factories, enterprises and scientific research departments to improve the technical innovation capability, accelerate the product development speed and promote the self rapid development.
For example, at present, the power grid industry mostly uses CAD software to draw construction drawings, but drawn CAD drawings can only be used after being qualified through manual review, and the problems of low drawing review efficiency, human errors and the like exist because the workload of manual review is tedious and time-consuming.
Disclosure of Invention
In view of the above, the present invention provides a method, an apparatus and a server for primitive recognition, so as to alleviate the above technical problems.
In a first aspect, an embodiment of the present invention provides a method for primitive recognition, where the method includes: extracting characteristic information corresponding to the graphic primitive to be identified, wherein the characteristic information comprises one or more of the following components: the number of basic graphs, the number of closed graphs, the type of basic geometric graphs, texts, outline description, colors, line types, line widths, the type of maximum entity geometric graphs and bitmap matrixes; determining a standard primitive matched with the primitive to be identified according to the characteristic information; judging whether the number of standard primitives matched with the primitives to be identified is greater than a preset number threshold value or not; and if so, identifying the primitive to be identified according to the pre-constructed position topological relation.
With reference to the first aspect, an embodiment of the present invention provides a first possible implementation manner of the first aspect, where the step of determining, according to the feature information, a standard primitive that matches the primitive to be recognized includes: acquiring characteristic information corresponding to each standard primitive in a standard primitive library, wherein the standard primitive library comprises a first standard primitive library which is constructed in advance and a second standard primitive library which is prestored, and the first standard primitive library and the second standard primitive library store the characteristic information and the service description information corresponding to the standard primitives; calculating the recognition rate of the primitives to be recognized and each standard primitive by utilizing the characteristic information corresponding to the primitives to be recognized and the characteristic information corresponding to the standard primitives; comparing each calculated recognition rate with a preset recognition rate threshold value; and determining the standard primitive with the recognition rate smaller than the recognition rate threshold value as the standard primitive matched with the primitive to be recognized.
With reference to the first possible implementation manner of the first aspect, an embodiment of the present invention provides a second possible implementation manner of the first aspect, where the building step of the first standard primitive library includes: extracting a drawing frame of a drawing drawn by a primitive to be identified; searching whether a legend identifier corresponding to the legend description table exists in the drawing frame; and if so, extracting characteristic information and service description information corresponding to the primitives in the illustration list to construct a first standard primitive library.
With reference to the first aspect, an embodiment of the present invention provides a third possible implementation manner of the first aspect, where the method further includes: and if the number of the standard primitives matched with the primitives to be identified is judged to be 1, identifying the primitives to be identified as the standard primitives.
With reference to the first aspect, an embodiment of the present invention provides a fourth possible implementation manner of the first aspect, where the identifying, according to a pre-constructed position topological relation, the to-be-identified primitive includes: acquiring service description information corresponding to the graphic primitive to be identified based on the position topological relation; matching the service description information corresponding to the graphic element to be identified with the service description information corresponding to a plurality of matched standard graphic elements; and identifying the primitive to be identified as a standard primitive corresponding to the service description information matched with the service description information corresponding to the primitive to be identified.
With reference to the fourth possible implementation manner of the first aspect, an embodiment of the present invention provides a fifth possible implementation manner of the first aspect, where the step of constructing the location topological relation includes: extracting key coordinate information corresponding to each primitive to be identified; determining the connection relation between every two primitives to be identified according to the key coordinate information; and constructing a position topological relation based on the connection relation.
With reference to the fifth possible implementation manner of the first aspect, an embodiment of the present invention provides a sixth possible implementation manner of the first aspect, where the step of determining, according to the key coordinate information, a connection relationship between every two primitives to be recognized includes: calculating the intersection value of every two primitives to be identified according to the key coordinate information; judging whether the intersection value exists or not; if yes, a connection relation exists between the two primitives to be identified; and if not, the connection relation does not exist between the two primitives to be identified.
In a second aspect, an embodiment of the present invention further provides an apparatus for primitive recognition, where the apparatus includes: the extraction module is used for extracting the characteristic information corresponding to the primitive to be identified, wherein the characteristic information comprises one or more of the following components: the number of basic graphs, the number of closed graphs, the type of basic geometric graphs, texts, outline description, colors, line types, line widths, the type of maximum entity geometric graphs and bitmap matrixes; the determining module is used for determining a standard primitive matched with the primitive to be identified according to the characteristic information; the judging module is used for judging whether the number of the standard primitives matched with the primitives to be identified is greater than a preset number threshold value; and the identification module is used for identifying the primitive to be identified according to the pre-constructed position topological relation if the judgment module judges that the primitive to be identified is positive.
In a third aspect, an embodiment of the present invention further provides a server, where the server includes a processor and a memory, where the memory stores machine executable instructions capable of being executed by the processor, and the processor executes the machine executable instructions to implement the foregoing method.
In a fourth aspect, embodiments of the present invention also provide a machine-readable storage medium, where the machine-readable storage medium stores machine-executable instructions, which when called and executed by a processor, cause the processor to implement the above-mentioned method.
The embodiment of the invention has the following beneficial effects:
according to the method, the device and the server for identifying the primitive, provided by the embodiment of the invention, after the characteristic information corresponding to the primitive to be identified is extracted, the standard primitive matched with the primitive to be identified is determined according to the characteristic information; judging whether the number of standard primitives matched with the primitives to be identified is greater than a preset number threshold value or not; if so, identifying the primitive to be identified according to the pre-constructed position topological relation; the method, the device and the server for identifying the primitives can be used for identifying each primitive on the CAD drawing, so that the problems of low drawing examination efficiency, human errors and the like caused by manual examination are effectively solved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and drawings.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
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 that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a method for primitive recognition according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an association list according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a device for primitive recognition according to an embodiment of the present invention;
fig. 4 is a block diagram of a server according to an embodiment of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. 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 invention.
The design of the 10 kV power distribution network is a leading link of the whole power distribution network construction, and is also a basic basis of links and services of power distribution network construction, commissioning, emergency repair, scheduling and the like. The design quality of the 10 kV power distribution network has important influence on normal production and life of people, the power distribution network is used as a terminal of the whole power distribution network and is directly connected with users, and the importance of the power distribution network is self-evident. However, the practical design scheme of the 10 kv power distribution network engineering is different from the standardized design, the wiring mode is complex, the equipment types are various, the equipment quality is uneven, and the power supply technology is lagged behind, so that the overhaul in the operation and maintenance is difficult, and the power supply reliability is reduced. However, the quality of the power distribution network design is improved to a certain extent by drawing the construction drawing by using the CAD software, and the quality and benefit of the power distribution network engineering construction are improved from the design source.
At present, drawn CAD drawings can be used only after being qualified through manual review, and the problems of low drawing review efficiency, human errors and the like exist because the workload of the manual review is complex and time-consuming.
Therefore, the method, the device and the server for identifying the primitive provided by the embodiment of the invention can alleviate the technical problem.
For the convenience of understanding the embodiment, a method for identifying a primitive disclosed in the embodiment of the present invention is first described in detail.
The first embodiment is as follows:
an embodiment of the present invention provides a method for identifying a primitive, such as a flowchart of the method for identifying a primitive shown in fig. 1, where the method includes the following steps:
step S102, extracting characteristic information corresponding to the graphic primitive to be identified, wherein the characteristic information comprises one or more of the following components: the number of basic graphs, the number of closed graphs, the type of basic geometric graphs, texts, outline description, colors, line types, line widths, the type of maximum entity geometric graphs and bitmap matrixes;
during specific implementation, a complete CAD drawing consists of a plurality of different graphic primitives, and the graphic primitive is the minimum graphic element identified by the CAD definition, so that the CAD drawing can be used for construction only after each graphic primitive in the CAD drawing is effectively identified; in this embodiment, the extracted feature information is different for different primitives to be identified, for example, for simple primitives such as wires, less feature information may be extracted, for example, feature information such as the number of basic patterns, the number of closed patterns, color, line width, and the like is extracted; for complex primitives such as transformers, more characteristic information is extracted, for example, the number of basic graphs, the number of closed graphs, the type of basic geometric graphs, texts, outline description, colors, line types, line widths, the type of maximum entity geometric graphs and bitmap matrixes are extracted; the number and types of the different primitive extraction feature information may be set according to actual needs, and in this embodiment, the number and types of the primitive extraction feature information are not limited.
The characteristic information corresponding to the primitive to be identified comprises one or more of the following items: the number of basic figures, the number of closed figures, the type of basic geometric figure, text, outline description, color, line type, line width, maximum entity geometric figure type and bitmap matrix.
Step S104, determining a standard primitive matched with the primitive to be identified according to the characteristic information;
step S106, judging whether the number of standard primitives matched with the primitives to be identified is greater than a preset number threshold value;
and S108, if so, identifying the primitive to be identified according to the pre-constructed position topological relation.
Specifically, the standard primitive refers to a known primitive, in the process of identifying the primitive to be identified, the feature information corresponding to the primitive to be identified is used for matching with the feature information corresponding to the standard primitive, if there are a plurality of standard primitives matching with the primitive to be identified in the matching process, the primitive to be identified needs to be further identified, the primitive to be identified is identified according to the pre-constructed position topological relation, and the primitive to be identified is specifically one of the plurality of standard primitives.
According to the method for identifying the primitive provided by the embodiment of the invention, after the characteristic information corresponding to the primitive to be identified is extracted, the standard primitive matched with the primitive to be identified is determined according to the characteristic information; judging whether the number of standard primitives matched with the primitives to be identified is greater than a preset number threshold value or not; if so, identifying the primitive to be identified according to the pre-constructed position topological relation; the method, the device and the server for identifying the primitives can be used for identifying each primitive on the CAD drawing, so that the problems of low drawing examination efficiency, human errors and the like caused by manual examination are effectively solved.
Specifically, in step S104, determining the standard primitive matched with the primitive to be recognized according to the feature information may be implemented in steps S11 to S13:
step S11, acquiring characteristic information corresponding to each standard primitive in a standard primitive library, wherein the standard primitive library comprises a first standard primitive library which is pre-constructed and a second standard primitive library which is pre-stored, and the first standard primitive library and the second standard primitive library store characteristic information and service description information corresponding to the standard primitives;
specifically, the first standard primitive library stores characteristic information and service description information corresponding to primitives included in an illustration description table in a drawing drawn by the primitives to be identified, and the second standard primitive library stores characteristic information and service description information corresponding to the primitives in a local standard characteristic library file and a related service data configuration file; in actual use, if the first standard primitive library stores characteristic information and service description information corresponding to primitives, normally, the primitive to be identified is firstly matched with the standard primitive stored in the first standard primitive library, and then the primitive to be identified is matched with the standard primitive stored in the second standard primitive library; and if the standard primitive is not stored in the first standard primitive library, directly matching the primitive to be identified with the standard primitive stored in the second standard primitive library.
In practical application, the building step of the first standard primitive library comprises the following steps: extracting a drawing frame of a drawing drawn by a primitive to be identified; searching whether a legend identifier corresponding to the legend description table exists in the drawing frame; and if so, extracting characteristic information and service description information corresponding to the primitives in the illustration list to construct a first standard primitive library.
Preferably, if the extracted drawing frame includes two words of the keyword "legend", it is determined that the drawing drawn by the primitive to be recognized includes the legend, and if the drawing frame does not include two words of the keyword "legend", it is determined that the drawing drawn by the primitive to be recognized does not include the legend, and after it is determined that the drawing includes the legend, further, feature information and service description information corresponding to the primitive in the legend table are extracted to construct the first standard primitive library.
Step S12, calculating the recognition rate of the primitives to be recognized and each standard primitive by using the characteristic information corresponding to the primitives to be recognized and the characteristic information corresponding to the standard primitives;
specifically, the method for calculating the recognition rate may be divided into two types according to the type of the primitive to be recognized, and for the simple primitive to be recognized, the calculation of the bitmap matrix is not required due to the simple primitive, and the recognition rate is obtained by directly using the extracted feature information for matching, for example, the feature information of the extracted simple primitive to be recognized is the number of the basic figures, the number of the closed figures, the color and the line width, the feature information corresponding to the primitive to be recognized is used for matching with the feature information corresponding to each standard primitive in the standard primitive library, if the feature information corresponding to the standard primitive is completely matched with the feature information of the basic figures, the number of the closed figures, the color and the line width corresponding to the primitive to be recognized, the recognition rate of the primitive to be recognized and the standard primitive is set to 0, and if the feature information corresponding to the standard primitive is completely matched with the number of the basic figures, and if one or more of the characteristic information of the number, the color and the line width of the closed graphs is not matched, the recognition rate of the to-be-recognized graphic element and the standard graphic element is set to be 1. The setting of the simple primitive recognition rate value to be recognized can be set according to actual needs, and in this embodiment, the recognition rate value is not limited. For the complex primitive to be recognized, because the primitive is complex, the bitmap matrix corresponding to the primitive to be recognized and the bitmap matrix corresponding to each standard primitive need to be matched and calculated, and the recognition rate of the primitive to be recognized and each standard primitive is obtained.
Step S13, comparing each calculated recognition rate with a preset recognition rate threshold value; and determining the standard primitive with the recognition rate smaller than the recognition rate threshold value as the standard primitive matched with the primitive to be recognized.
Specifically, the calculated recognition rate of the primitive to be recognized and each standard primitive is compared with a preset recognition rate threshold, the standard primitive of which the recognition rate is smaller than the recognition rate threshold is determined as the standard primitive matched with the primitive to be recognized, and the standard primitive matched with the primitive to be recognized and the calculated recognition rate between the primitive to be recognized and the standard primitive matched with the primitive to be recognized can be stored in an association list, for convenience of understanding, fig. 2 shows a structural schematic diagram of the association list, as shown in fig. 2, the standard primitives matched with the primitive to be recognized are a standard primitive 1, a standard primitive 2 and a standard primitive 3 respectively, the recognition rate of the primitive to be recognized and the standard primitive 1 is 0, the recognition rate of the primitive to be recognized and the standard primitive 2 is 0.1, and the recognition rate of the primitive to be recognized and the standard primitive 3 is 0.4.
Specifically, if the number of the standard primitives matched with the primitives to be recognized is judged to be 1, the primitives to be recognized are recognized as the standard primitives.
In specific application, after the primitive to be recognized is matched with each standard primitive in the standard primitive library, if only one standard primitive is successfully matched with the primitive to be recognized, the primitive to be recognized can be directly determined as the standard primitive successfully matched with the standard primitive to be recognized.
In practical application, if the number of standard primitives to be matched with the primitive to be recognized is greater than the preset number threshold, the primitive to be recognized needs to be recognized according to the pre-constructed position topological relation, wherein step S108 can be implemented by steps S21 to S23:
step S21, acquiring service description information corresponding to the graphic primitive to be identified based on the position topological relation;
specifically, the service description information corresponding to the primitive to be identified is a connection relationship between the primitive to be identified and other primitives, in this embodiment, in order to obtain the service description information corresponding to the primitive to be identified, it is first necessary to know a position topological relationship between the primitive to be identified and other primitives, where the position topological relationship is constructed by: extracting key coordinate information corresponding to each primitive to be identified; determining the connection relation between every two primitives to be identified according to the key coordinate information; and constructing a position topological relation based on the connection relation.
Specifically, the intersection value of every two primitives to be identified is calculated according to the key coordinate information; judging whether the intersection value exists or not; if yes, a connection relation exists between the two primitives to be identified; and if not, the connection relation does not exist between the two primitives to be identified.
In specific application, the key coordinate information refers to coordinate information capable of representing the graphic position characteristics of the primitive to be recognized, for example, if the graphic of the primitive to be recognized is a circle, the key coordinate information is a circle center and a radius, if the graphic of the primitive to be recognized is a line segment, the key coordinate information is two endpoint coordinate information of the line segment, the extracted key coordinate information is used for calculating the intersection value of every two primitives to be recognized, if the intersection value exists, the connection relationship between the two primitives to be recognized is indicated, otherwise, the connection relationship does not exist between the two primitives to be recognized.
Step S22, matching the service description information corresponding to the primitive to be identified with the service description information corresponding to a plurality of matched standard primitives;
and step S23, identifying the primitive to be identified as a standard primitive corresponding to the service description information matched with the service description information corresponding to the primitive to be identified.
During specific implementation, when a plurality of standard primitives are matched with the primitive to be identified, the service description information corresponding to the primitive to be identified is matched with the service description information corresponding to the plurality of matched standard primitives, and the primitive to be identified is identified as the standard primitive corresponding to the service description information matched with the service description information corresponding to the primitive to be identified; for example, if a standard primitive matched with a primitive to be recognized has a cable line and an overhead line, in order to further recognize the type of the primitive to be recognized, it is necessary to perform matching of service description information, if the service description information of the standard primitive cable line is a terminal, the service description information of the standard primitive overhead line is a telegraph pole, and the service description information corresponding to the primitive to be recognized, which is obtained based on the key coordinate information, is the terminal, and since the service description information corresponding to the primitive to be recognized is consistent with the service description information corresponding to the standard primitive cable line, the primitive to be recognized is finally recognized as the cable line.
Example two:
an embodiment of the present invention provides a device for identifying a primitive, such as a schematic structural diagram of the device for identifying a primitive shown in fig. 3, where the device includes:
an extracting module 302, configured to extract feature information corresponding to a primitive to be identified, where the feature information includes one or more of the following: the number of basic graphs, the number of closed graphs, the type of basic geometric graphs, texts, outline description, colors, line types, line widths, the type of maximum entity geometric graphs and bitmap matrixes;
the determining module 304 is configured to determine, according to the feature information, a standard primitive matched with the primitive to be identified;
the judging module 306 is configured to judge whether the number of the standard primitives matched with the primitive to be recognized is greater than a preset number threshold;
and the identifying module 308 is configured to identify the primitive to be identified according to the pre-constructed position topological relation if the determining module determines that the primitive is the primitive to be identified.
The primitive recognition device provided by the embodiment of the invention has the same technical characteristics as the primitive recognition method provided by the embodiment, so that the same technical problems can be solved, and the same technical effects can be achieved.
The embodiment of the present invention further provides a server, where the server includes a processor and a memory, where the memory stores machine executable instructions capable of being executed by the processor, and the processor executes the machine executable instructions to implement the above method for primitive recognition.
Further, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method for identifying a primitive are performed.
Referring to fig. 4, a block diagram of a server is shown, which includes: the system comprises a processor 700, a memory 701, a bus 702 and a communication interface 703, wherein the processor 700, the communication interface 703 and the memory 701 are connected through the bus 702; the processor 700 is adapted to execute executable modules, such as computer programs, stored in the memory 701.
The Memory 701 may include a high-speed Random Access Memory (RAM) and may further include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 703 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like may be used.
Bus 702 can be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 4, but that does not indicate only one bus or one type of bus.
The processor 700 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 700. The Processor 700 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 701, and the processor 700 reads the information in the memory 701, and completes the steps of the method in combination with the hardware thereof.
The method, the apparatus, and the computer program product of the server for primitive recognition provided in the embodiments of the present invention include a computer-readable storage medium storing a program code, where instructions included in the program code may be used to execute the method described in the foregoing method embodiments, and specific implementation may refer to the method embodiments, and will not be described herein again.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the server and the apparatus described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes 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 method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Finally, it should be noted that: although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that the following embodiments are merely illustrative of the present invention, and not restrictive, and the scope of the present invention is not limited thereto: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method for primitive recognition, the method comprising:
extracting feature information corresponding to a primitive to be identified, wherein the feature information comprises one or more of the following: the number of basic graphs, the number of closed graphs, the type of basic geometric graphs, texts, outline description, colors, line types, line widths, the type of maximum entity geometric graphs and bitmap matrixes;
determining a standard primitive matched with the primitive to be identified according to the characteristic information;
judging whether the number of standard primitives matched with the primitives to be identified is greater than a preset number threshold value or not;
and if so, identifying the graphic primitive to be identified according to the pre-constructed position topological relation.
2. The method according to claim 1, characterized in that the step of determining from the feature information a standard primitive matching the primitive to be recognized comprises:
acquiring characteristic information corresponding to each standard primitive in a standard primitive library, wherein the standard primitive library comprises a first standard primitive library which is constructed in advance and a second standard primitive library which is prestored, and the first standard primitive library and the second standard primitive library store characteristic information and service description information corresponding to the standard primitives;
calculating the recognition rate of the primitives to be recognized and each standard primitive by utilizing the characteristic information corresponding to the primitives to be recognized and the characteristic information corresponding to the standard primitives;
comparing each calculated recognition rate with a preset recognition rate threshold value;
and determining the standard primitive with the recognition rate smaller than the recognition rate threshold value as the standard primitive matched with the primitive to be recognized.
3. The method of claim 2, wherein the step of constructing the first standard primitive library comprises:
extracting a drawing frame of a drawing drawn by the primitive to be identified;
searching whether a legend identifier corresponding to a legend description table exists in the drawing frame;
and if the primitive exists, extracting characteristic information and service description information corresponding to the primitive in the illustration list to construct the first standard primitive library.
4. The method of claim 1, further comprising:
and if the number of the standard primitives matched with the primitives to be identified is judged to be 1, identifying the primitives to be identified as the standard primitives.
5. The method according to claim 1, wherein the step of identifying the primitive to be identified according to the pre-constructed position topological relation comprises:
acquiring service description information corresponding to the graphic primitive to be identified based on the position topological relation;
matching the service description information corresponding to the primitive to be identified with the service description information corresponding to the plurality of matched standard primitives;
and identifying the primitive to be identified as a standard primitive corresponding to the service description information matched with the service description information corresponding to the primitive to be identified.
6. The method according to claim 5, wherein the step of constructing the location topology relationship comprises:
extracting key coordinate information corresponding to each primitive to be identified;
determining the connection relation between every two primitives to be identified according to the key coordinate information;
and constructing the position topological relation based on the connection relation.
7. The method according to claim 6, wherein the step of determining the connection relationship between each two primitives to be identified according to the key coordinate information comprises:
calculating the intersection value of every two primitives to be identified according to the key coordinate information;
judging whether the intersection value exists or not;
if yes, the connection relation exists between the two primitives to be identified;
and if not, the connection relation does not exist between the two primitives to be identified.
8. An apparatus for primitive recognition, the apparatus comprising:
the extraction module is used for extracting the characteristic information corresponding to the primitive to be identified, wherein the characteristic information comprises one or more of the following components: the number of basic graphs, the number of closed graphs, the type of basic geometric graphs, texts, outline description, colors, line types, line widths, the type of maximum entity geometric graphs and bitmap matrixes;
the determining module is used for determining a standard primitive matched with the primitive to be identified according to the characteristic information;
the judging module is used for judging whether the number of the standard primitives matched with the primitives to be identified is greater than a preset number threshold value;
and the identification module is used for identifying the primitive to be identified according to the pre-constructed position topological relation if the judgment module judges that the primitive to be identified is positive.
9. A server, comprising a processor and a memory, the memory storing machine executable instructions executable by the processor, the processor executing the machine executable instructions to implement the method of any one of claims 1 to 7.
10. A machine-readable storage medium having stored thereon machine-executable instructions which, when invoked and executed by a processor, cause the processor to implement the method of any of claims 1 to 7.
CN202010009121.8A 2020-01-03 2020-01-03 Method, device and server for identifying graphic primitives Active CN111222186B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010009121.8A CN111222186B (en) 2020-01-03 2020-01-03 Method, device and server for identifying graphic primitives

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010009121.8A CN111222186B (en) 2020-01-03 2020-01-03 Method, device and server for identifying graphic primitives

Publications (2)

Publication Number Publication Date
CN111222186A true CN111222186A (en) 2020-06-02
CN111222186B CN111222186B (en) 2023-06-02

Family

ID=70832234

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010009121.8A Active CN111222186B (en) 2020-01-03 2020-01-03 Method, device and server for identifying graphic primitives

Country Status (1)

Country Link
CN (1) CN111222186B (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111782583A (en) * 2020-06-12 2020-10-16 万翼科技有限公司 Intelligent image examination method and related device
CN111881947A (en) * 2020-07-09 2020-11-03 广联达科技股份有限公司 Feature point set pair screening method, target matching method and device and electronic equipment
CN111984813A (en) * 2020-08-10 2020-11-24 广联达科技股份有限公司 Primitive matching method and device in building drawing
CN112598092A (en) * 2020-12-18 2021-04-02 湖南特能博世科技有限公司 Primitive identification matching method and device, computer equipment and readable storage medium
CN112613395A (en) * 2020-12-18 2021-04-06 湖南特能博世科技有限公司 Primitive position relation matching method and device and computer equipment
CN112613088A (en) * 2020-12-18 2021-04-06 湖南特能博世科技有限公司 Pattern recognition method, pattern recognition device and computer equipment
CN112883475A (en) * 2021-03-02 2021-06-01 广联达科技股份有限公司 Model alignment method and device and electronic equipment
CN112990092A (en) * 2021-04-09 2021-06-18 福建省晨曦信息科技股份有限公司 Legend identification method, computer device and readable storage medium
CN113592886A (en) * 2021-07-28 2021-11-02 金地(集团)股份有限公司 Method and device for examining architectural drawings, electronic equipment and medium
CN113627118A (en) * 2021-10-12 2021-11-09 广州中大中鸣科技有限公司 Method, device, equipment and storage medium for automatically extracting coordinates of lamp
CN113743187A (en) * 2021-06-22 2021-12-03 万翼科技有限公司 Method and device for identifying legend in engineering drawing, electronic equipment and storage medium
CN114049598A (en) * 2022-01-13 2022-02-15 国网浙江省电力有限公司宁波供电公司 State identification method and device of power primitive, storage medium and electronic equipment
CN114722440A (en) * 2022-04-02 2022-07-08 广东顺德电力设计院有限公司 CAD file data extraction, identification and inspection method, system, equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120008836A1 (en) * 2010-07-12 2012-01-12 International Business Machines Corporation Sequential event detection from video
CN102693334A (en) * 2012-03-01 2012-09-26 成都鹏业软件股份有限公司 Dynamic construction member identifying method based on CAD (computer-aided design) electronic drawing
CN103955889A (en) * 2013-12-31 2014-07-30 广东工业大学 Drawing-type-work reviewing method based on augmented reality technology
US20140253558A1 (en) * 2013-03-08 2014-09-11 Pei Zhan Systems and methods for sketch processing
CN108875599A (en) * 2018-05-30 2018-11-23 成都小智审图科技有限公司 A kind of identification check of drawings method of building trade ENGINEERING CAD drawing
CN109255041A (en) * 2018-08-22 2019-01-22 国网山西省电力公司 A kind of intelligent identification Method of electric installation drawing
WO2019096177A1 (en) * 2017-11-14 2019-05-23 深圳码隆科技有限公司 Image recognition method and system, and electronic device
CN110188496A (en) * 2019-06-04 2019-08-30 湖南特能博世科技有限公司 Graphical survey data generation method, device and terminal
CN110502984A (en) * 2019-07-11 2019-11-26 万翼科技有限公司 Drawing review method, apparatus, computer equipment and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120008836A1 (en) * 2010-07-12 2012-01-12 International Business Machines Corporation Sequential event detection from video
CN102693334A (en) * 2012-03-01 2012-09-26 成都鹏业软件股份有限公司 Dynamic construction member identifying method based on CAD (computer-aided design) electronic drawing
US20140253558A1 (en) * 2013-03-08 2014-09-11 Pei Zhan Systems and methods for sketch processing
CN103955889A (en) * 2013-12-31 2014-07-30 广东工业大学 Drawing-type-work reviewing method based on augmented reality technology
WO2019096177A1 (en) * 2017-11-14 2019-05-23 深圳码隆科技有限公司 Image recognition method and system, and electronic device
CN108875599A (en) * 2018-05-30 2018-11-23 成都小智审图科技有限公司 A kind of identification check of drawings method of building trade ENGINEERING CAD drawing
CN109255041A (en) * 2018-08-22 2019-01-22 国网山西省电力公司 A kind of intelligent identification Method of electric installation drawing
CN110188496A (en) * 2019-06-04 2019-08-30 湖南特能博世科技有限公司 Graphical survey data generation method, device and terminal
CN110502984A (en) * 2019-07-11 2019-11-26 万翼科技有限公司 Drawing review method, apparatus, computer equipment and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
"《计算机集成制造系统》2010年总目次", 《计算机集成制造系统》, no. 12 *
宋晓宇等: "基于拓扑结构的工程图纸识别方法", 《沈阳建筑大学学报(自然科学版)》, no. 04, pages 776 - 781 *
李晓英等: "AutoCAD环境下字符的识别", 《计算机工程与设计》, no. 15 *

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111782583B (en) * 2020-06-12 2023-08-18 万翼科技有限公司 Intelligent drawing examining method and related device
CN111782583A (en) * 2020-06-12 2020-10-16 万翼科技有限公司 Intelligent image examination method and related device
CN111881947A (en) * 2020-07-09 2020-11-03 广联达科技股份有限公司 Feature point set pair screening method, target matching method and device and electronic equipment
CN111881947B (en) * 2020-07-09 2024-05-14 广联达科技股份有限公司 Feature point set pair screening method, target matching method, device and electronic equipment
CN111984813A (en) * 2020-08-10 2020-11-24 广联达科技股份有限公司 Primitive matching method and device in building drawing
CN111984813B (en) * 2020-08-10 2024-02-20 广联达科技股份有限公司 Primitive matching method and device in building drawing
CN112613088A (en) * 2020-12-18 2021-04-06 湖南特能博世科技有限公司 Pattern recognition method, pattern recognition device and computer equipment
CN112598092B (en) * 2020-12-18 2022-10-18 湖南特能博世科技有限公司 Primitive identification matching method and device, computer equipment and readable storage medium
CN112598092A (en) * 2020-12-18 2021-04-02 湖南特能博世科技有限公司 Primitive identification matching method and device, computer equipment and readable storage medium
CN112613395A (en) * 2020-12-18 2021-04-06 湖南特能博世科技有限公司 Primitive position relation matching method and device and computer equipment
CN112613088B (en) * 2020-12-18 2023-10-27 湖南特能博世科技有限公司 Pattern recognition method, pattern recognition device and computer equipment
CN112883475B (en) * 2021-03-02 2024-04-12 广联达科技股份有限公司 Model pairing method and device and electronic equipment
CN112883475A (en) * 2021-03-02 2021-06-01 广联达科技股份有限公司 Model alignment method and device and electronic equipment
CN112990092A (en) * 2021-04-09 2021-06-18 福建省晨曦信息科技股份有限公司 Legend identification method, computer device and readable storage medium
CN113743187A (en) * 2021-06-22 2021-12-03 万翼科技有限公司 Method and device for identifying legend in engineering drawing, electronic equipment and storage medium
CN113592886B (en) * 2021-07-28 2024-03-19 金地(集团)股份有限公司 Drawing examining method and device for building drawing, electronic equipment and medium
CN113592886A (en) * 2021-07-28 2021-11-02 金地(集团)股份有限公司 Method and device for examining architectural drawings, electronic equipment and medium
CN113627118B (en) * 2021-10-12 2022-02-22 广州中大中鸣科技有限公司 Method, device, equipment and storage medium for automatically extracting coordinates of lamp
CN113627118A (en) * 2021-10-12 2021-11-09 广州中大中鸣科技有限公司 Method, device, equipment and storage medium for automatically extracting coordinates of lamp
CN114049598A (en) * 2022-01-13 2022-02-15 国网浙江省电力有限公司宁波供电公司 State identification method and device of power primitive, storage medium and electronic equipment
CN114722440A (en) * 2022-04-02 2022-07-08 广东顺德电力设计院有限公司 CAD file data extraction, identification and inspection method, system, equipment and storage medium

Also Published As

Publication number Publication date
CN111222186B (en) 2023-06-02

Similar Documents

Publication Publication Date Title
CN111222186A (en) Method and device for identifying primitive and server
CN110609759B (en) Fault root cause analysis method and device
CN111177445B (en) Standard primitive determination method, primitive identification method, device and electronic equipment
CN107992490A (en) A kind of data processing method and data processing equipment
CN109190326B (en) Method and device for generating process flow chart
CN112116288B (en) Method, system, equipment and medium for ensuring consistency of key parts
CN114202027A (en) Execution configuration information generation method, model training method and device
CN114169536A (en) Data management and control method and related device
CN109615087B (en) Method for improving operation and maintenance efficiency of power grid with assistance of label
CN115329759B (en) Information processing method, device, equipment and storage medium
CN115146653B (en) Dialogue scenario construction method, device, equipment and storage medium
CN110705232A (en) Method and system for generating service state analysis report of power communication network maintenance influence
CN111679899B (en) Task scheduling method, device, platform equipment and storage medium
CN113887101A (en) Visualization method and device of network model, electronic equipment and storage medium
CN114037700A (en) Panel defect detection method and device, electronic equipment and storage medium
CN113626605A (en) Information classification method and device, electronic equipment and readable storage medium
CN113691403A (en) Topological node configuration method, related device and computer program product
CN114443205A (en) Fault analysis method, device and non-transitory computer readable storage medium
CN113066153B (en) Method, device and equipment for generating pipeline flow chart and storage medium
CN114167223B (en) Power supply abnormity detection method and device and computer readable storage medium
CN113591477B (en) Fault positioning method, device, equipment and storage medium based on associated data
CN113535594B (en) Method, device, equipment and storage medium for generating service scene test case
CN115168597A (en) Regulation and control system operation event rule analysis method and device, medium and equipment
CN113139729A (en) Power grid operation risk analysis method, system, terminal and storage medium
CN115329843A (en) Label processing 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
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Method, device, and server for graphic recognition

Effective date of registration: 20231220

Granted publication date: 20230602

Pledgee: Bank of Changsha Limited by Share Ltd. science and Technology Branch

Pledgor: Hunan Teneng Boshi Technology Co.,Ltd.

Registration number: Y2023980073086

PE01 Entry into force of the registration of the contract for pledge of patent right