CN111177445B - Standard primitive determination method, primitive identification method, device and electronic equipment - Google Patents

Standard primitive determination method, primitive identification method, device and electronic equipment Download PDF

Info

Publication number
CN111177445B
CN111177445B CN201911390084.3A CN201911390084A CN111177445B CN 111177445 B CN111177445 B CN 111177445B CN 201911390084 A CN201911390084 A CN 201911390084A CN 111177445 B CN111177445 B CN 111177445B
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.)
Active
Application number
CN201911390084.3A
Other languages
Chinese (zh)
Other versions
CN111177445A (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

Abstract

The invention provides a standard primitive determining method, a primitive identifying device and electronic equipment, wherein the standard primitive determining method comprises the following steps: 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 text description information in the legend description table is matched with service attribute description in the local configuration data; and if the graphic primitive characteristics are matched, extracting graphic primitive characteristics corresponding to the legend description table to obtain standard graphic primitives. According to the method, the graphic element characteristics are extracted from the legend description table corresponding to the drawing, and the standard graphic element is determined through the graphic element characteristics and the local configuration data.

Description

Standard primitive determination method, primitive identification method, device and electronic equipment
Technical Field
The present invention relates to the field of table processing technologies, and in particular, to a method for determining standard primitives, a method for identifying primitives, a device and an electronic apparatus.
Background
In the primitive identification method in the prior art, only a primitive library in the local configuration data of the background server is generally used as a standard primitive, so that the primitive identification is carried out on the drawing to be processed through the standard primitive, and the primitive library of the background server is inconsistent with the primitive used in the drawing to be processed due to the fact that design units of all areas are inconsistent with the design standard of the drawing, so that the primitive in the drawing to be processed is difficult to identify.
Disclosure of Invention
The invention aims to provide a standard primitive determining method, a primitive identifying device and electronic equipment, so as to improve the identification rate of primitives in a drawing to be processed.
In a first aspect, an embodiment of the present invention provides a method for determining standard primitives, where the method includes: 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; the legend specification 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 graphic primitive characteristics are matched, extracting graphic primitive characteristics corresponding to the legend description table to obtain standard graphic primitives.
In an optional embodiment, the step of analyzing the drawing submitted by the user to obtain drawing information includes: acquiring a drawing submitted by a user; determining a cell based on a 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 form and the text data corresponding to the form 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 comprises the following steps: reading text data of each form corresponding to the drawing; judging whether the text data is matched with a service field in the local configuration data; if so, a table corresponding to the text data matched with the service field is determined as an illustration 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 judging whether the text description information and the service attribute description in the local configuration data are matched comprises the following steps: checking whether the text description information of the graphic elements in the legend list is matched with the text description information of the graphic elements in the local configuration data; after the step of determining whether the text description information and the service attribute description in the local configuration data match, the method further includes: and if the service identifiers are matched with the text description information, mapping the text description information and the service attribute description in the local configuration data to obtain the service identifiers corresponding to the graphic elements in the legend description table.
In an alternative embodiment, the step of extracting the primitive feature in the legend description table includes: extracting the graphic elements from the tables corresponding to the legend description table; traversing each primitive to obtain primitive characteristics.
In an alternative embodiment, after the step of extracting the primitive feature corresponding to the legend description table to obtain the standard primitive, the method includes: the standard primitives are set to high priority and the local configuration data are set to 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 graphic primitive exists or not; the standard primitive is obtained by the method for determining the standard primitive according to any one of the previous embodiments; if the drawing to be processed exists, identifying the drawing element in the drawing to be processed through the standard drawing element; and if the graphic primitive does not exist, 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 a device for determining standard primitives, where the device includes: the drawing analysis module is used for analyzing the drawing submitted by the user to obtain drawing information; the explanation table determining module is used for obtaining a legend explanation table corresponding to the drawing based on preset local configuration data and drawing information; the legend specification table comprises text description information; the matching judging module is used for judging whether the text description information is matched with the service attribute description in the local configuration data; and the feature extraction module is used for extracting the primitive features corresponding to the legend specification table if the primitive features are matched with the primitive features to obtain the standard primitive.
In a fourth aspect, an embodiment of the present invention provides a primitive identifying device, including: the drawing acquisition module is used for acquiring a drawing to be processed; the judging module is used for judging whether the standard graphic primitive exists or not; the standard primitive is obtained by the method for determining the standard primitive according to any one of the previous embodiments; the primitive identification module is used for identifying the primitives in the drawing to be processed through the standard primitives if the primitives exist; and if the graphic primitive does not exist, 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, where the electronic device includes a processor and a memory, where the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the method for determining a standard primitive or the method for identifying a primitive.
The embodiment of the invention has the following beneficial effects:
the invention provides a standard primitive determining method, a primitive identifying device and electronic equipment, wherein a drawing submitted by a user is analyzed to obtain drawing information; further, based on preset local configuration data and drawing information, obtaining a legend description table corresponding to the drawing; judging whether text description information in the legend description table is matched with service attribute description in the local configuration data; and if the graphic primitive characteristics are matched, extracting graphic primitive characteristics corresponding to the legend description table to obtain standard graphic primitives. According to the method, the graphic element characteristics are extracted from the legend description table corresponding to the drawing, and the standard graphic element is determined through the graphic element characteristics and the local configuration data.
Additional features and advantages of the invention will be set forth in the description which follows, or in part will be obvious from the description, or may be learned by practice of the invention.
In order to make the above objects, features and advantages of the present invention more 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 that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a method for determining standard primitives according to an embodiment of the present invention;
FIG. 2 is a flowchart of another method for determining standard primitives according to an embodiment of the present invention;
FIG. 3 is a flowchart of a primitive identification method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a standard primitive determining device according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a primitive identifying device 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
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. The components of the 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 invention, as 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 made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Considering that only the primitive library in the local configuration data of the background server is used as a 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 device and electronic equipment.
For the convenience of understanding 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:
step S102, analyzing the drawing submitted by the user to obtain drawing information.
The drawings generally include tables, text data corresponding to the tables, and the like. In particular implementations, a user may draw a form using CAD (Computer Aided Design ) and populate the form with text data, may use form objects that the CAD has in drawing the form, and may also use discrete line segments and text to draw the form.
The drawing drawn by the user can be read from the background data of the CAD generally, and the drawing information is analyzed by analyzing the drawing. Text data is typically included in the drawing information, as well as graphic attributes, etc., which typically include lines, circles, rectangles, arcs, ellipses, fills, lines, line widths, colors, fonts, etc. The form in the drawing is typically made available by the graphical 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 text description information.
The preset local configuration data is usually stored in a local configuration file of the server, and the local configuration data is usually stored with service fields expressed in a legend specification table, the service fields are usually expression information of different services, and the services can 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, typically a table in the drawing that matches the local configuration data.
Step S106, judging whether the text description information and the service attribute description in the local configuration data are matched.
The service attribute description generally refers to that in the local configuration data of the server, text descriptions are provided for different legends to identify the text descriptions, for example, a legend service description formed by a straight line is a high-voltage line.
Judging whether the mapping relation exists between text description information corresponding to the graphic element in the drawing and service attribute description in the local configuration data, and judging whether the text description information is matched with the service attribute description in the local configuration data, if so, the text description is matched with the service attribute description; if there is no mapping relationship, no subsequent operation will be performed.
And step S108, if the graphic primitive features are matched, extracting the graphic primitive features corresponding to the legend description table to obtain the standard graphic primitive.
Firstly extracting the stored graphic elements in the table of the drawing, and then extracting the features of the graphic elements according to the legend description table to obtain the features of the graphic elements. The primitive features typically include: text description information, combined base graphic information, graphic attribute information, graphic outline information, graphic matrix information, and the like. And (5) corresponding the primitive characteristics to the primitives to obtain standard primitives.
In a specific implementation, if the text description information of the primitives corresponding to the legend table is matched with the service attribute description in the local configuration data, mapping is automatically performed. In the mapping process, the text description information of the graphic elements corresponding to the legend description table of the design units of each region can be mapped with the service attribute description in the local configuration data, so that standard graphic elements applicable to each region are obtained, and the accuracy rate and the recognition rate of graphic element recognition in the drawing are improved.
The invention provides a standard primitive determining method, which comprises the steps of firstly analyzing a drawing submitted by a user to obtain drawing information; further, based on preset local configuration data and drawing information, obtaining a legend description table corresponding to the drawing; judging whether text description information in the legend description table is matched with service attribute description in the local configuration data; and if the graphic primitive characteristics are matched, extracting graphic primitive characteristics corresponding to the legend description table to obtain standard graphic primitives. According to the method, the graphic element characteristics are extracted from the legend description table corresponding to the drawing, and the standard graphic element is determined through the graphic element characteristics and the local configuration data.
The embodiment of the invention also provides another standard primitive determining method, 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, drawing submitted by a user is obtained.
Step S204, determining the cell based on the line segment in the drawing.
Firstly, all vertical line segments and horizontal line segments in a drawing are extracted, and then all the extracted vertical line segments and horizontal line segments are intersected to obtain intersection points. And obtaining the cell according to the intersection point and the line segment.
Step S206, 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 form and text data corresponding to the form as drawing information.
In a specific implementation, the cells are combined into cell rows by using the positional relationship of the cells, the adjacent cells are combined into a table, and the cell rows adjacent to each other are combined into the table.
Step S208, reading text data of each table corresponding to the drawing.
The drawing generally comprises one or more tables, text data corresponding to the position coordinates can be positioned according to the position coordinates of the cells corresponding to each table, the text data is determined to be the text data corresponding to each cell, and then the text data corresponding to each table is obtained.
Step S210, judging whether the text data is matched with a service field in the local configuration data; if so, executing step S212; otherwise, ending.
The above-described traffic fields are typically regular expressions constructed from different traffic (e.g., legend traffic) data, where the regular expression is typically a logical formula corresponding to the different traffic data. When the method is concretely implemented, text data corresponding to each table is circularly traversed, whether the text data is matched with the regular expression is judged according to each text data, if the text data is matched with the regular expression, the legend description table is found, and if the text data is not matched with the regular expression, the corresponding legend description table is not found, the process of constructing the standard legend is ended, and at the moment, when the graphic elements in the drawing are identified, the graphic element pair of the local configuration data is generally extracted.
Step S212, a table corresponding to the text data matched with the service field is determined as a legend description table.
Step S214, checking whether the text description information of the primitive in the above-mentioned legend table matches with the text description information of the primitive in the local configuration data.
The text description information of the primitives in the local configuration data can be understood as the service attribute description, and the service attribute description further comprises a service identifier corresponding to the text description information of the primitives. The service identifier generally refers to an identifier that performs text description on different legends, for example, a legend service formed by a straight line is described as a high-voltage line.
Step S216, if the text description information and the service attribute description in the local configuration data are matched, mapping is carried out to obtain the service identifier corresponding to the graphic element in the legend description table; the service attribute description local configuration data comprises service identifiers corresponding to text description information of the graphic elements.
Step S218, extracting the primitive features corresponding to the legend list to obtain the standard primitive.
In a specific implementation, step S218 is generally implemented by the following steps 10-11:
and step 10, extracting the graphic primitive from the table corresponding to the legend description table.
And step 11, traversing each graphic primitive to obtain graphic primitive characteristics, namely obtaining text description information corresponding to each graphic primitive.
In a specific implementation, after the standard primitive is obtained, the standard primitive is set to be high-priority, and the local configuration data is set to be low-priority.
Because the first standard of user drawing is derived from the legend description table and the graphic element information for preferentially identifying the legend, the identification rate of the graphic element in the drawing can be effectively improved by setting high priority, wherein the identification of the priority is mainly whether the current standard graphic element loads the local configuration data or the legend description table.
In specific implementation, the local configuration data can be extracted according to the primitive characteristics to obtain corresponding primitive information, so that the primitive information can be used as the basis for primitive identification.
In the method for determining standard graphic elements, since the legend description tables exist in the design drawings of all the areas and are used for describing the legends used in the current graphic frame, the legends in the legend description tables are the first standard of drawing drawings drawn by users, and therefore, the mode uses the legends in the legend description tables as standard graphic elements, and the identification rate of graphic element identification 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:
step S302, a drawing to be processed is obtained.
Step S304, judging whether a standard graphic primitive exists or not; the standard graphic element is obtained by a standard graphic element determining method; if so, step S306 is performed; if not, step S308 is performed.
And step S306, identifying the primitives in the drawing to be processed through the standard primitives.
Step S308, identifying the graphic elements 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 characteristics to obtain corresponding primitive information, so that the primitive information can be used as the basis for primitive identification.
The primitive identification method comprises the steps of firstly obtaining a drawing to be processed, and then judging whether a standard primitive exists or not, wherein the standard primitive is obtained through a standard primitive determination method; if the drawing is in the drawing, identifying the drawing element in the drawing to be processed through the standard drawing element; otherwise, identifying the graphic elements in the drawing to be processed through preset local configuration data. According to the method, the primitive identification is preferentially carried out through the standard primitive, and under the condition that the standard primitive does not exist, the identification rate of the primitive identification can be improved through the primitive identification of the primitive information in the local configuration data.
Corresponding to the above embodiment of the method for determining standard primitives, an embodiment of the present invention provides a device for determining standard primitives, as shown in fig. 4, where the device includes:
the drawing analysis module 40 is configured to analyze a drawing submitted by a user to obtain drawing information.
The explanation table determining module 41 is configured to obtain a legend explanation table corresponding to the drawing based on the preset local configuration data and the drawing information; the legend table includes text description information.
And a matching judging module 42, configured to judge whether the text description information and the service attribute description in the local configuration data match.
And the feature extraction module 43 is configured to extract the primitive feature corresponding to the legend specification table if the primitive features are matched to obtain the standard primitive.
The implementation principle and the generated technical effects of the standard primitive determining device provided by the embodiment of the present invention are the same as those of the foregoing method embodiment, and for the sake of brevity, reference may be made to the corresponding content in the foregoing method embodiment where the device embodiment portion is not mentioned.
Corresponding to the above embodiment of the primitive identification method, an embodiment of the present invention provides a primitive identification device, as shown in fig. 5, including:
the drawing acquisition module 50 is used for acquiring a drawing to be processed.
A judging module 51, configured to judge whether a standard primitive exists; the standard graphic element is obtained by a standard graphic element determination method.
The primitive identifying module 52 is configured to identify, if any, a primitive in the drawing to be processed by using a standard primitive; and if the graphic primitive does not exist, identifying the graphic primitive in the drawing to be processed through preset local configuration data.
The primitive identifying device provided in the embodiment of the present invention has the same implementation principle and technical effects as those of the foregoing method embodiment, and for brevity description, reference may be made to corresponding contents in the foregoing method embodiment where the device embodiment is not mentioned.
The embodiment of the present invention further provides an electronic device, referring to fig. 6, where the electronic device includes a processor 101 and a memory 100, where the memory 100 stores machine executable instructions that can be executed by the processor 101, and the processor 101 executes the machine executable instructions to implement the above-mentioned standard primitive determining method or the above-mentioned primitive identifying method.
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, random Access Memory), and may further include a non-volatile memory (non-volatile memory), such as at least one magnetic disk memory. The communication connection between the system network element and at least one other network element is implemented via at least one communication interface 103 (which may be wired or wireless), and may use the internet, a wide area network, a local network, a metropolitan area network, etc. Bus 102 may be an ISA bus, a PCI bus, an EISA bus, or the like. The buses may be classified as address buses, data buses, control buses, etc. For ease of illustration, only one bi-directional arrow is shown in FIG. 6, but not only one bus or type of bus.
The processor 101 may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in the processor 101 or instructions in the form of software. The processor 101 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processor, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The disclosed methods, steps, and logic blocks 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 embodied directly in the execution of a hardware decoding processor, or in the execution of a combination of hardware and software modules in a decoding processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in the memory 100 and the processor 101 reads information in the memory 100 and in combination with its hardware performs the steps of the method of the previous embodiments.
The embodiment of the invention also provides a machine-readable storage medium, which stores machine-executable instructions that, when being called and executed by a processor, cause the processor to implement the above-mentioned standard primitive determination method or the above-mentioned primitive identification method, and the specific implementation can be referred to the method embodiment and will not be described herein.
The method for determining standard primitives, the method for identifying primitives, the device and the computer program product of the electronic equipment provided by the embodiments of the present invention include a computer readable storage medium storing program codes, and the instructions included in the program codes may be used to execute the method described in the foregoing method embodiment, and specific implementation may refer to the method embodiment and will not be described herein.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus and/or the electronic device described above may refer to the corresponding process in the foregoing method embodiment, which is not described in detail herein.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the invention.

Claims (8)

1. A method for determining standard primitives, 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 list comprises text description information;
judging whether the text description information is matched with the service attribute description in the local configuration data or not;
if the graphic primitive features are matched, extracting graphic primitive features corresponding to the legend description table to obtain standard graphic primitives;
analyzing a drawing submitted by a user to obtain drawing information, wherein the method comprises the following steps of:
acquiring a drawing submitted by a user;
determining a cell based on a 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;
determining the form and text data corresponding to the form as drawing information;
the preset local configuration data comprises a service field;
the step of obtaining a legend description table corresponding to the drawing based on the preset local configuration data and the drawing information comprises the following steps:
reading text data of each form corresponding to the drawing;
judging whether the text data is matched with a service field in the local configuration data or not;
if so, determining a table corresponding to the text data matched with the service field as a legend description table.
2. 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 comprises the following steps:
checking whether text description information of the graphic elements in the legend list is matched with text description information of the graphic elements in the local configuration data;
after the step of determining whether the text description information and the service attribute description in the local configuration data match, 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 identifier corresponding to the graphic element in the legend description table.
3. The method of claim 1, wherein the step of extracting primitive features in the legend table comprises:
extracting the graphic primitive from the table corresponding to the legend specification table;
and traversing each primitive to obtain the primitive characteristics.
4. The method according to claim 1, wherein after the step of extracting the primitive features corresponding to the legend table to obtain standard primitives, the method comprises:
setting the standard primitives to high priority and setting the local configuration data to secondary priority.
5. A method of primitive identification, the method comprising:
acquiring a drawing to be processed;
judging whether a standard graphic primitive exists or not; the standard primitive is obtained by the method for determining a standard primitive according to any one of claims 1 to 4;
if so, identifying the primitives in the drawing to be processed through the standard primitives;
and if the graphic primitive does not exist, identifying the graphic primitive in the drawing to be processed through preset local configuration data.
6. A device for determining standard primitives, the device comprising:
the drawing analysis module is used for analyzing the drawing submitted by the user to obtain drawing information;
the explanation table determining module is used for obtaining an illustration explanation table corresponding to the drawing based on preset local configuration data and the drawing information; the legend list comprises text description information;
the matching judging module is used for judging whether the text description information is matched with the service attribute description in the local configuration data or not;
the feature extraction module is used for extracting the primitive features corresponding to the legend description table if the primitive features are matched with each other so as to obtain standard primitives;
the drawing analysis module is also used for acquiring drawings submitted by users; determining a cell based on a 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; determining the form and text data corresponding to the form as drawing information; the preset local configuration data comprises a service field;
the explanation table determining module is further used for 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 or not; if so, determining a table corresponding to the text data matched with the service field as a legend description table.
7. A primitive identification device, the device comprising:
the drawing acquisition module is used for acquiring a drawing to be processed;
the judging module is used for judging whether the standard graphic primitive exists or not; the standard primitive is obtained by the method for determining a standard primitive according to any one of claims 1 to 4;
the primitive identification module is used for identifying the primitives in the drawing to be processed through the standard primitives if the primitives exist; 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 electronic device comprising a processor and a memory, the memory storing machine executable instructions executable by the processor to implement the method of determining standard primitives as claimed in any one of claims 1 to 4 or the primitive identification method as claimed in claim 5.
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 CN111177445A (en) 2020-05-19
CN111177445B true 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)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111737800B (en) * 2020-06-23 2024-01-12 广联达科技股份有限公司 Primitive selection method and device and electronic equipment
CN112613088B (en) * 2020-12-18 2023-10-27 湖南特能博世科技有限公司 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
CN113065475B (en) * 2021-04-08 2023-11-07 上海晓材科技有限公司 Rapid and accurate identification method for CAD (computer aided design) legend
CN112990092B (en) * 2021-04-09 2022-03-11 福建晨曦信息科技集团股份有限公司 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

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 深圳供电局有限公司 A kind of dispatching automation device information check method and 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 深圳供电局有限公司 A kind of dispatching automation device information check method and device
CN110598634A (en) * 2019-09-12 2019-12-20 山东文多网络科技有限公司 Machine room sketch identification method and device based on graph example library

Also Published As

Publication number Publication date
CN111177445A (en) 2020-05-19

Similar Documents

Publication Publication Date Title
CN111177445B (en) Standard primitive determination method, primitive identification method, 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
CN108427731B (en) Page code processing method and device, terminal equipment and medium
CN109508352B (en) Report data output method, device, equipment and storage medium
CN112861648A (en) Character recognition method and device, electronic equipment and storage medium
CN109670091B (en) Metadata intelligent maintenance method and device based on data standard
WO2019075968A1 (en) Cross-page recognition method for form information, electronic device, and computer-readable storage medium
CN115546809A (en) Table structure identification method based on cell constraint and application thereof
CN109871743B (en) Text data positioning method and device, storage medium and terminal
CN109656652B (en) Webpage chart drawing method, device, computer equipment and storage medium
CN109815243B (en) Structured storage method and device during document interface modification
CN110598115A (en) Sensitive webpage identification method and system based on artificial intelligence multi-engine
CN111079697A (en) Table extraction method and device and electronic equipment
CN112699634B (en) Typesetting processing method of electronic book, electronic equipment and storage medium
CN111125932B (en) Proxy entity processing method and device and electronic equipment
CN111160334B (en) Labeling attribution confirmation method, device and equipment
CN114240663A (en) Data reconciliation method, device, terminal and storage medium
CN114495144A (en) Method and device for extracting form key-value information in text image
CN113610854A (en) Cable defect detection method, terminal device and computer storage medium
CN111177448B (en) Discrete graph combination method and device and electronic equipment
CN111091128B (en) Character picture classification method and device and electronic equipment
CN115665286B (en) Interface clustering method and device, computer equipment and storage medium
CN114419075B (en) Point cloud cutting method and device and terminal equipment
CN115909348A (en) Method and device for identifying electronic receipt of bank

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