CN111177445A - Standard primitive determining method, primitive identifying method and device and electronic equipment - Google Patents

Standard primitive determining method, primitive identifying method and device and electronic equipment Download PDF

Info

Publication number
CN111177445A
CN111177445A CN201911390084.3A CN201911390084A CN111177445A CN 111177445 A CN111177445 A CN 111177445A CN 201911390084 A CN201911390084 A CN 201911390084A CN 111177445 A CN111177445 A CN 111177445A
Authority
CN
China
Prior art keywords
primitive
standard
configuration data
local configuration
legend
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
CN201911390084.3A
Other languages
Chinese (zh)
Other versions
CN111177445B (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 CN201911390084.3A priority Critical patent/CN111177445B/en
Publication of CN111177445A publication Critical patent/CN111177445A/en
Application granted granted Critical
Publication of CN111177445B publication Critical patent/CN111177445B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/5866Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, manually generated location and time information
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • G06F16/334Query execution
    • 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

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Library & Information Science (AREA)
  • Image Generation (AREA)

Abstract

The invention provides a method for determining a standard primitive, a method for identifying the primitive, a device and electronic equipment, wherein the method for determining the standard primitive comprises the following steps: analyzing a drawing submitted by a user to obtain drawing information; obtaining a legend description table corresponding to a drawing based on preset local configuration data and drawing information; judging whether the text description information in the legend table is matched with the service attribute description in the local configuration data; and if the primitive features are matched, extracting the primitive features corresponding to the legend table to obtain the standard primitive. The method extracts the primitive features of the legend table corresponding to the drawing, determines the standard primitive through the primitive features and the local configuration data, can dynamically determine the standard primitive according to different drawings, and improves the recognition rate of the primitive in the drawing compared with the traditional method for recognizing the primitive through the local configuration data.

Description

Standard primitive determining method, primitive identifying method and device and electronic equipment
Technical Field
The invention relates to the technical field of table processing, in particular to a method for determining a standard primitive, a method and a device for identifying the primitive and electronic equipment.
Background
In the primitive identification method in the prior art, usually only the primitive library in the local configuration data of the background server is used as a standard primitive, so that the drawing to be processed is subjected to primitive identification through the standard primitive, and since the design standards of the drawing by design units in various regions are not uniform, the primitive library of the background server is inconsistent with the primitives used in the drawing to be processed, so that the primitives in the drawing to be processed are difficult to identify.
Disclosure of Invention
The invention aims to provide a method for determining a standard primitive, a method and a device for identifying the primitive and electronic equipment, so as to improve the identification rate of the primitive in a drawing to be processed.
In a first aspect, an embodiment of the present invention provides a method for determining a standard primitive, where the method includes: analyzing a drawing submitted by a user to obtain drawing information; obtaining a legend description table corresponding to a drawing based on preset local configuration data and drawing information; the legend table comprises text description information; judging whether the text description information is matched with the service attribute description in the local configuration data; and if the primitive features are matched, extracting the primitive features corresponding to the legend table to obtain the standard primitive.
In an optional embodiment, the step of parsing the drawing submitted by the user to obtain the drawing information includes: acquiring a drawing submitted by a user; determining a cell based on a line segment in a drawing; determining a form corresponding to the drawing and text data corresponding to the form according to the position relation of the cells; and determining the table and the text data corresponding to the table as drawing information.
In an optional embodiment, the preset local configuration data includes a service field; the step of obtaining the legend description table corresponding to the drawing based on the preset local configuration data and the drawing information includes: reading text data of each table corresponding to the drawing; judging whether the text data is matched with a service field in the local configuration data; if so, the table corresponding to the text data matching the service field is determined as the legend table.
In an optional embodiment, the service attribute description includes a service identifier corresponding to text description information of a primitive in the local configuration data; the step of determining whether the text description information matches the service attribute description in the local configuration data includes: checking whether the text description information of the graphic primitive in the legend table is matched with the text description information of the graphic primitive in the local configuration data; after the step of determining whether the text description information matches the service attribute description in the local configuration data, the method further includes: and if the service attributes are matched with the service attributes, mapping the text description information and the service attribute description in the local configuration data to obtain the service identification corresponding to the graphic element in the legend table.
In an optional embodiment, the step of extracting primitive features in the legend table includes: extracting a graphic element from a table corresponding to the legend table; and traversing each primitive to obtain the primitive characteristics.
In an optional embodiment, after the step of extracting primitive features corresponding to the illustration table to obtain the standard primitive, the method includes: and setting the standard primitive as a high priority and setting the local configuration data as a secondary priority.
In a second aspect, an embodiment of the present invention provides a primitive identification method, where the method includes: acquiring a drawing to be processed; judging whether a standard primitive exists or not; the standard primitive is obtained by the method for determining the standard primitive according to any one of the embodiments; if yes, identifying the graphic primitive in the drawing to be processed through the standard graphic primitive; and if not, identifying the graphic primitive in the drawing to be processed through preset local configuration data.
In a third aspect, an embodiment of the present invention provides an apparatus for determining a standard primitive, where the apparatus includes: the drawing analysis module is used for analyzing the drawing submitted by the user to obtain drawing information; the description table determining module is used for obtaining a legend description table corresponding to the drawing based on preset local configuration data and drawing information; the legend table comprises text description information; the matching judgment module is used for judging whether the text description information is matched with the service attribute description in the local configuration data; and the characteristic extraction module is used for extracting the primitive characteristics corresponding to the legend description table to obtain the standard primitive if the primitive characteristics are matched.
In a fourth aspect, an embodiment of the present invention provides a primitive recognition apparatus, where the apparatus includes: the drawing acquisition module is used for acquiring a drawing to be processed; the judging module is used for judging whether the standard graphics primitives exist or not; the standard primitive is obtained by the method for determining the standard primitive according to any one of the embodiments; the primitive identification module is used for identifying a primitive in the drawing to be processed through a standard primitive if the primitive exists; and if not, identifying the graphic primitive in the drawing to be processed through preset local configuration data.
In a fifth aspect, an embodiment of the present invention provides an electronic device, which 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 method for determining the standard primitive or the method for identifying the primitive.
The embodiment of the invention has the following beneficial effects:
the invention provides a method for determining a standard primitive, a method for identifying the primitive, a device and an electronic device, which are characterized in that firstly, a drawing submitted by a user is analyzed to obtain drawing information; obtaining a legend description table corresponding to the drawing based on preset local configuration data and drawing information; judging whether the text description information in the legend table is matched with the service attribute description in the local configuration data; and if the primitive features are matched, extracting the primitive features corresponding to the legend table to obtain the standard primitive. The method extracts the primitive features of the legend table corresponding to the drawing, determines the standard primitive through the primitive features and the local configuration data, can dynamically determine the standard primitive according to different drawings, and improves the recognition rate of the primitive in the drawing compared with the traditional method for recognizing the primitive through the local configuration data.
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 as set forth above.
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 determining a standard primitive according to an embodiment of the present invention;
fig. 2 is a flowchart of another method for determining a standard primitive according to an embodiment of the present invention;
fig. 3 is a flowchart of a primitive recognition method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a device for determining a standard primitive according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a primitive recognition apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the 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.
In consideration of the mode that only the primitive library in the local configuration data of the background server is used as the standard primitive and the primitive identification is carried out on the drawing to be processed through the standard primitive, the problem that the primitive library of the background server is inconsistent with the primitive used in the drawing to be processed exists. The embodiment of the invention provides a standard primitive determining method, a primitive identifying method, a device and electronic equipment.
To facilitate understanding of the present embodiment, first, a method for determining a standard primitive disclosed in the present embodiment is described in detail, as shown in fig. 1; the method comprises the following specific steps:
and step S102, analyzing the drawing submitted by the user to obtain drawing information.
The drawings typically include tables, text data corresponding to the tables, and the like. In specific implementation, a user may draw a table by using a CAD (Computer Aided Design) and fill text data in the table, and may draw the table by using a table object carried by the CAD, and may also draw the table by using discrete line segments and text.
Usually, a drawing drawn by a user can be read from the background data of the CAD, and the drawing information can be analyzed by analyzing the drawing. The drawing information typically includes text data, and graphic attributes, which typically include lines, circles, rectangles, arcs, ellipses, fills, line shapes, line widths, colors, fonts, and the like. The table in the drawing is usually obtained by the graphic attribute.
Step S104, obtaining a legend description table corresponding to the drawing based on preset local configuration data and the drawing information; the legend table includes textual description information.
The preset local configuration data is usually stored in a local configuration file of the server, and the local configuration data usually stores service fields expressed in a legend description table, where the service fields are usually description information for different services, and the services may be legends formed by straight lines, rectangles, and the like.
By matching the drawing information with the local configuration data, it can be determined whether the drawing includes a legend table, and usually, a table in the drawing matched with the local configuration data is determined as the legend table.
Step S106, judging whether the text description information is matched with the service attribute description in the local configuration data.
The service attribute description generally refers to that in local configuration data of a service end, different legends are all identified by text description, for example, a legend service composed of a straight line is described as a high-voltage line.
Judging whether the text description information corresponding to the graphic element in the drawing has a mapping relation with the service attribute description in the local configuration data, judging whether the text description information is matched with the service attribute description in the local configuration data, and if the mapping relation exists, matching the text description with the service attribute description; if no mapping relation exists, no subsequent operation is carried out.
And step S108, if the primitive features are matched, extracting the primitive features corresponding to the legend description table to obtain a standard primitive.
Firstly, extracting the primitives stored in the table of the drawing, and then extracting the characteristics of the primitives according to the legend description table to obtain the characteristics of the primitives. The primitive features generally include: text description information, combined base graphic information, graphic attribute information, graphic profile information, graphic matrix information, and the like. And corresponding the primitive features to the primitives to obtain standard primitives.
In a specific implementation, if the graphic description information of the primitive corresponding to the legend table matches with the service attribute description in the local configuration data, the mapping is performed automatically. In the mapping process, the text description information of the primitive corresponding to the legend explanatory table of the design unit of each region can be mapped with the service attribute description in the local configuration data, so that the standard primitive which can be suitable for each region is obtained, and the accuracy and the recognition rate of primitive recognition in the drawing can be improved.
The invention provides a method for determining a standard primitive, which comprises the steps of firstly analyzing a drawing submitted by a user to obtain drawing information; obtaining a legend description table corresponding to the drawing based on preset local configuration data and drawing information; judging whether the text description information in the legend table is matched with the service attribute description in the local configuration data; and if the primitive features are matched, extracting the primitive features corresponding to the legend table to obtain the standard primitive. The method extracts the primitive features of the legend table corresponding to the drawing, determines the standard primitive through the primitive features and the local configuration data, can dynamically determine the standard primitive according to different drawings, and improves the recognition rate of the primitive in the drawing compared with the traditional method for recognizing the primitive through the local configuration data.
The embodiment of the invention also provides another method for determining the standard primitive, which is realized on the basis of the method of the embodiment; as shown in fig. 2, the method comprises the steps of:
step S202, acquiring a drawing submitted by a user.
And step S204, determining a cell based on the line segment in the drawing.
Firstly, extracting all vertical line segments and horizontal line segments in a drawing, and then intersecting all the extracted vertical line segments and horizontal line segments to obtain an intersection point. And obtaining a cell according to the intersection point and the line segment.
Step S206, determining a form corresponding to the drawing and text data corresponding to the form according to the position relation of the cells; and determining the table and the text data corresponding to the table as drawing information.
In the concrete implementation, the position relation of the cells is utilized to combine the cells which are on the same side and adjacent to each other into a cell row, and the cell rows which are adjacent to each other up and down are combined into a table.
And step S208, reading the text data of each table corresponding to the drawing.
The drawing usually includes one or more tables, and according to the position coordinates of the cells corresponding to each table, the text data corresponding to the position coordinates can be located, and the text data is determined as the text data corresponding to each cell, so as to obtain the text data corresponding to each table.
Step S210, judging whether the text data is matched with a service field in the local configuration data; if yes, go to step S212; otherwise, ending.
The service field is usually a regular expression constructed according to different service (e.g., legend service) data, wherein the regular expression is usually a logic formula corresponding to the different service data. In specific implementation, text data corresponding to each table is circularly traversed, whether the text data is matched with the regular expression or not is judged according to each text data, if the text data is matched with the regular expression, a legend description table is determined to be found, if the text data is not matched with the regular expression, a corresponding legend description table is not found, the process of constructing a standard legend is finished, and at the moment, when a primitive in a drawing is identified, a primitive pair of local configuration data is usually extracted to identify the primitive in the drawing.
Step S212, determining the table corresponding to the text data matched with the service field as a legend table.
Step S214, check whether the text description information of the primitive in the legend table matches the text description information of the primitive in the local configuration data.
The text description information of the primitive in the local configuration data may be understood as the service attribute description, and the service attribute description further includes a service identifier corresponding to the text description information of the primitive. The service identifier is usually an identifier that describes a text for a different legend, for example, a legend service composed of a straight line is described as a high-voltage line.
Step S216, if the two are matched, mapping the text description information and the service attribute description in the local configuration data to obtain a service identifier corresponding to the primitive in the legend table; the service attribute describes a service identifier corresponding to text description information of a primitive in the local configuration data.
In step S218, the primitive features corresponding to the legend table are extracted to obtain the standard primitive.
In particular implementations, step S218 is generally implemented by steps 10-11 as follows:
step 10, extracting the primitive from the table corresponding to the illustration table.
And 11, traversing each primitive to obtain primitive characteristics, namely obtaining text description information corresponding to each primitive.
In specific implementation, after a standard primitive is obtained, the standard primitive is set to be in a high priority level, and local configuration data is set to be in a secondary priority level.
The first standard of drawing by the user is from the legend description table and the primitive information which is preferentially identified by the legend, so that the identification rate of the primitives in the drawing can be effectively improved by setting high priority, wherein the identification of the priority is mainly whether the current standard primitive is loaded with local configuration data or the legend description table.
In specific implementation, the local configuration data can be extracted according to the primitive features to obtain corresponding primitive information, so that the primitive information can be used as a basis for primitive identification.
In the method for determining the standard primitive, since the design drawing of each region has the legend description table for describing the legend used in the current drawing frame, and the legend in the legend description table is the first standard for drawing the drawing by the user, the legend in the legend description table is used as the standard primitive in the method, so that the recognition rate of primitive recognition can be effectively improved.
The embodiment of the invention also provides a primitive identification method, which is realized on the basis of the method of the embodiment; as shown in fig. 3, the method comprises the steps of:
and step S302, acquiring a drawing to be processed.
Step S304, judging whether a standard primitive exists or not; the standard primitive is obtained by a method for determining the standard primitive; if yes, executing step S306; if not, step S308 is performed.
And step S306, identifying the graphic primitive in the drawing to be processed through the standard graphic primitive.
And step S308, identifying the graphic primitive in the drawing to be processed through preset local configuration data.
In specific implementation, the local configuration data can be extracted according to the primitive features to obtain corresponding primitive information, so that the primitive information can be used as a basis for primitive identification.
The primitive identification method comprises the steps of firstly obtaining a drawing to be processed, judging whether a standard primitive exists or not, and obtaining the standard primitive through a standard primitive determining method; if yes, identifying the graphic primitive in the drawing to be processed through the standard graphic primitive; otherwise, identifying the graphic primitive in the drawing to be processed through the preset local configuration data. The method preferentially identifies the primitive through the standard primitive, and can improve the identification rate of the primitive identification through identifying the primitive through the primitive information in the local configuration data under the condition that the standard primitive does not exist.
Corresponding to the above method embodiment for determining a standard primitive, an embodiment of the present invention provides a device for determining a standard primitive, as shown in fig. 4, where the device includes:
and the drawing analysis module 40 is used for analyzing the drawing submitted by the user to obtain the drawing information.
The description table determining module 41 is configured to obtain a legend description table corresponding to the drawing based on preset local configuration data and drawing information; the legend table includes textual description information.
And the matching judgment module 42 is configured to judge whether the text description information matches the service attribute description in the local configuration data.
And a feature extraction module 43, configured to, if the primitive features match, extract primitive features corresponding to the legend table to obtain a standard primitive.
The implementation principle and the technical effect of the apparatus for determining the standard primitive provided by the embodiment of the present invention are the same as those of the method embodiment described above, and for the sake of brief description, no mention is made in the apparatus embodiment, and reference may be made to the corresponding contents in the method embodiment described above.
Corresponding to the above primitive identification method embodiment, an embodiment of the present invention provides a primitive identification apparatus, as shown in fig. 5, where the apparatus includes:
and the drawing obtaining module 50 is used for obtaining the drawing to be processed.
A judging module 51, configured to judge whether a standard primitive exists; the standard primitive is obtained by a standard primitive determining method.
The primitive identifying module 52 is configured to identify a primitive in the drawing to be processed through a standard primitive if the primitive exists; and if not, identifying the graphic primitive in the drawing to be processed through preset local configuration data.
The primitive recognition apparatus provided in the embodiment of the present invention has the same implementation principle and technical effect as those of the foregoing method embodiments, and for brief description, reference may be made to corresponding contents in the foregoing method embodiments for the parts of the apparatus embodiments that are not mentioned.
An embodiment of the present invention further provides an electronic device, as shown in fig. 6, the electronic device includes a processor 101 and a memory 100, the memory 100 stores machine executable instructions capable of being executed by the processor 101, and the processor 101 executes the machine executable instructions to implement the method for determining the standard primitive or the method for identifying the primitive.
Further, the electronic device shown in fig. 6 further includes a bus 102 and a communication interface 103, and the processor 101, the communication interface 103, and the memory 100 are connected through the bus 102.
The Memory 100 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 103 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like can be used. The bus 102 may 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. 6, but that does not indicate only one bus or one type of bus.
The processor 101 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 101. The Processor 101 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 100, and the processor 101 reads the information in the memory 100, and completes the steps of the method of the foregoing embodiment in combination with the hardware thereof.
The embodiment of the present invention further provides a machine-readable storage medium, where the machine-readable storage medium stores machine-executable instructions, and when the machine-executable instructions are called and executed by a processor, the machine-executable instructions cause the processor to implement the method for determining the standard primitive or the method for identifying the primitive, and specific implementation may refer to method embodiments, and is not described herein again.
The standard primitive determining method, the primitive identifying method, the standard primitive determining device, and the computer program product of the electronic device 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 implementations may refer to the method embodiments and are not 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 apparatus and/or the electronic device described above may refer to corresponding processes in the foregoing method embodiments, and are not described herein again.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for determining a standard primitive, the method comprising:
analyzing a drawing submitted by a user to obtain drawing information;
obtaining a legend description table corresponding to the drawing based on preset local configuration data and the drawing information; the legend table comprises text description information;
judging whether the text description information is matched with the service attribute description in the local configuration data;
and if the primitive features are matched, extracting the primitive features corresponding to the legend table to obtain the standard primitive.
2. The method of claim 1, wherein the step of parsing the drawing submitted by the user to obtain drawing information comprises:
acquiring a drawing submitted by a user;
determining a cell based on the line segment in the drawing;
determining a table corresponding to the drawing and text data corresponding to the table according to the position relation of the cells;
and determining the table and the text data corresponding to the table as drawing information.
3. The method according to claim 2, wherein the preset local configuration data includes a service field;
the step of obtaining a legend description table corresponding to the drawing based on preset local configuration data and the drawing information includes:
reading text data of each table corresponding to the drawing;
judging whether the text data is matched with a service field in the local configuration data;
and if so, determining the table corresponding to the text data matched with the service field as a legend table.
4. The method according to claim 1, wherein the service attribute description includes a service identifier corresponding to text description information of a primitive in the local configuration data;
the step of judging whether the text description information is matched with the service attribute description in the local configuration data includes:
checking whether text description information of primitives in the legend table matches text description information of primitives in the local configuration data;
after the step of determining whether the text description information matches the service attribute description in the local configuration data, the method further includes:
and if the text description information is matched with the service attribute description in the local configuration data, mapping the text description information and the service attribute description in the local configuration data to obtain the service identification corresponding to the graphic element in the graphic illustration table.
5. The method of claim 1, wherein the step of extracting primitive features in the legend table comprises:
extracting a primitive from a table corresponding to the legend table;
and traversing each primitive to obtain the primitive characteristics.
6. A method according to claim 1, wherein after the step of extracting primitive features corresponding to the legend table to obtain standard primitives, the method comprises:
and setting the standard primitive as a high priority and setting the local configuration data as a secondary priority.
7. A method for primitive recognition, the method comprising:
acquiring a drawing to be processed;
judging whether a standard primitive exists or not; the standard graphic element is obtained by the method for determining the standard graphic element according to any one of claims 1 to 6;
if yes, identifying the graphic primitive in the drawing to be processed through the standard graphic primitive;
and if the graphic primitive does not exist, identifying the graphic primitive in the drawing to be processed through preset local configuration data.
8. An apparatus for determining a standard primitive, the apparatus comprising:
the drawing analysis module is used for analyzing the drawing submitted by the user to obtain drawing information;
the description table determining module is used for obtaining a legend description table corresponding to the drawing based on preset local configuration data and the drawing information; the legend table comprises text description information;
the matching judgment module is used for judging whether the text description information is matched with the service attribute description in the local configuration data;
and the characteristic extraction module is used for extracting the primitive characteristics corresponding to the legend description table to obtain the standard primitive if the primitive characteristics are matched.
9. An apparatus for identifying a primitive, the apparatus comprising:
the drawing acquisition module is used for acquiring a drawing to be processed;
the judging module is used for judging whether the standard graphics primitives exist or not; the standard graphic element is obtained by the method for determining the standard graphic element according to any one of claims 1 to 6;
the primitive identification module is used for identifying the primitive in the drawing to be processed through the standard primitive if the primitive exists; and if the graphic primitive does not exist, identifying the graphic primitive in the drawing to be processed through preset local configuration data.
10. An electronic device 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 determining a standard primitive according to any one of claims 1 to 6 or the method of identifying a primitive according to claim 7.
CN201911390084.3A 2019-12-30 2019-12-30 Standard primitive determination method, primitive identification method, device and electronic equipment Active CN111177445B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911390084.3A CN111177445B (en) 2019-12-30 2019-12-30 Standard primitive determination method, primitive identification method, device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911390084.3A CN111177445B (en) 2019-12-30 2019-12-30 Standard primitive determination method, primitive identification method, device and electronic equipment

Publications (2)

Publication Number Publication Date
CN111177445A true CN111177445A (en) 2020-05-19
CN111177445B CN111177445B (en) 2023-05-23

Family

ID=70654204

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911390084.3A Active CN111177445B (en) 2019-12-30 2019-12-30 Standard primitive determination method, primitive identification method, device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111177445B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111737800A (en) * 2020-06-23 2020-10-02 广联达科技股份有限公司 Primitive selection method and device and electronic equipment
CN112464903A (en) * 2020-12-16 2021-03-09 广联达科技股份有限公司 Primitive identification method and device of municipal construction drawing and electronic equipment
CN112507938A (en) * 2020-12-16 2021-03-16 广联达科技股份有限公司 Geometric feature calculation method, geometric feature recognition method and geometric feature recognition device for text primitives
CN112613088A (en) * 2020-12-18 2021-04-06 湖南特能博世科技有限公司 Pattern recognition method, pattern recognition device and computer equipment
CN112883800A (en) * 2021-01-20 2021-06-01 上海品览智造科技有限公司 Method for identifying lightning protection grade in CAD lightning protection plan
CN112906717A (en) * 2021-03-04 2021-06-04 广联达科技股份有限公司 Method and system for identifying engineering file content
CN112990092A (en) * 2021-04-09 2021-06-18 福建省晨曦信息科技股份有限公司 Legend identification method, computer device and readable storage medium
CN113065475A (en) * 2021-04-08 2021-07-02 上海晓材科技有限公司 Rapid and accurate CAD (computer aided design) legend identification method
CN113392256A (en) * 2021-06-15 2021-09-14 万翼科技有限公司 Edge component object generation method, device, equipment and storage medium
CN116664520A (en) * 2023-05-31 2023-08-29 深圳市莱创云信息技术有限公司 Intelligent detection system of electronic product

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109255041A (en) * 2018-08-22 2019-01-22 国网山西省电力公司 A kind of intelligent identification Method of electric installation drawing
CN109829612A (en) * 2018-12-26 2019-05-31 深圳供电局有限公司 Information checking method and device for dispatching automation device
CN110598634A (en) * 2019-09-12 2019-12-20 山东文多网络科技有限公司 Machine room sketch identification method and device based on graph example library

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109255041A (en) * 2018-08-22 2019-01-22 国网山西省电力公司 A kind of intelligent identification Method of electric installation drawing
CN109829612A (en) * 2018-12-26 2019-05-31 深圳供电局有限公司 Information checking method and device for dispatching automation device
CN110598634A (en) * 2019-09-12 2019-12-20 山东文多网络科技有限公司 Machine room sketch identification method and device based on graph example library

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN112464903A (en) * 2020-12-16 2021-03-09 广联达科技股份有限公司 Primitive identification method and device of municipal construction drawing and electronic equipment
CN112507938A (en) * 2020-12-16 2021-03-16 广联达科技股份有限公司 Geometric feature calculation method, geometric feature recognition method and geometric feature recognition device for text primitives
CN112613088B (en) * 2020-12-18 2023-10-27 湖南特能博世科技有限公司 Pattern recognition method, pattern recognition device and computer equipment
CN112613088A (en) * 2020-12-18 2021-04-06 湖南特能博世科技有限公司 Pattern recognition method, pattern recognition device and computer equipment
CN112883800A (en) * 2021-01-20 2021-06-01 上海品览智造科技有限公司 Method for identifying lightning protection grade in CAD lightning protection plan
CN112906717A (en) * 2021-03-04 2021-06-04 广联达科技股份有限公司 Method and system for identifying engineering file content
CN113065475A (en) * 2021-04-08 2021-07-02 上海晓材科技有限公司 Rapid and accurate CAD (computer aided design) legend identification method
CN113065475B (en) * 2021-04-08 2023-11-07 上海晓材科技有限公司 Rapid and accurate identification method for CAD (computer aided design) legend
CN112990092A (en) * 2021-04-09 2021-06-18 福建省晨曦信息科技股份有限公司 Legend identification method, computer device and readable storage medium
CN113392256A (en) * 2021-06-15 2021-09-14 万翼科技有限公司 Edge component object generation method, device, equipment and storage medium
CN116664520A (en) * 2023-05-31 2023-08-29 深圳市莱创云信息技术有限公司 Intelligent detection system of electronic product

Also Published As

Publication number Publication date
CN111177445B (en) 2023-05-23

Similar Documents

Publication Publication Date Title
CN111177445A (en) Standard primitive determining method, primitive identifying method and device and electronic equipment
CN111222186B (en) Method, device and server for identifying graphic primitives
CN107688789B (en) Document chart extraction method, electronic device and computer readable storage medium
CN110502985B (en) Form identification method and device and form identification equipment
WO2016065701A1 (en) Image text recognition method and device
CN108334879B (en) Region extraction method, system and terminal equipment
CN112906695B (en) Form recognition method adapting to multi-class OCR recognition interface and related equipment
CN112560862A (en) Text recognition method and device and electronic equipment
CN114005126A (en) Table reconstruction method and device, computer equipment and readable storage medium
CN115546809A (en) Table structure identification method based on cell constraint and application thereof
CN111160234A (en) Table recognition method, electronic device and computer storage medium
CN113486881B (en) Text recognition method, device, equipment and medium
CN109815243B (en) Structured storage method and device during document interface modification
CN108268868B (en) Method and device for acquiring inclination value of identity card image, terminal and storage medium
CN111079697A (en) Table extraction method and device and electronic equipment
CN117496521A (en) Method, system and device for extracting key information of table and readable storage medium
CN110363092B (en) Histogram identification method, apparatus, device and computer readable storage medium
CN115841679A (en) Drawing sheet extraction method, system, computer and readable storage medium
CN113269153B (en) Form identification method and device
CN114511863B (en) Table structure extraction method and device, electronic equipment and storage medium
CN111160334B (en) Labeling attribution confirmation method, device and equipment
CN113486976B (en) Automatic classification method and device for map annotation content
CN112991489B (en) Isobaric line drawing method and device, electronic equipment and storage medium
CN112699634B (en) Typesetting processing method of electronic book, electronic equipment and storage medium
CN114399617A (en) Method, device, equipment and medium for identifying shielding pattern

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: Methods for determining standard graphics, graphic recognition methods, devices, and electronic devices

Effective date of registration: 20231220

Granted publication date: 20230523

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