CN114373188A - Drawing identification method and device, electronic equipment and storage medium - Google Patents

Drawing identification method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114373188A
CN114373188A CN202111482471.7A CN202111482471A CN114373188A CN 114373188 A CN114373188 A CN 114373188A CN 202111482471 A CN202111482471 A CN 202111482471A CN 114373188 A CN114373188 A CN 114373188A
Authority
CN
China
Prior art keywords
curve
graphic
characteristic
feature
views
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111482471.7A
Other languages
Chinese (zh)
Inventor
许林林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Caxa Technology Co Ltd
Original Assignee
Caxa 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 Caxa Technology Co Ltd filed Critical Caxa Technology Co Ltd
Priority to CN202111482471.7A priority Critical patent/CN114373188A/en
Publication of CN114373188A publication Critical patent/CN114373188A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a drawing identification method and device, electronic equipment and a storage medium. The identification method comprises the following steps: receiving a drawing to be checked, and traversing three-view information in the drawing; constructing a three-dimensional graph based on the three-view information; identifying each graphic feature in the three-dimensional graphic; and under the condition that the three-view information of the graphic features is wrong, identifying the wrong three-view information in the drawing. The invention solves the technical problem that in the related technology, only the format error of the drawing can be checked by comparing the object attribute in the drawing with the standard, and the error of the graphic characteristic of the drawing cannot be identified.

Description

Drawing identification method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of drawing processing, in particular to a drawing identification method and device, electronic equipment and a storage medium.
Background
In the related art, after a drawing is completed through drawing software (e.g., CAD software), it is necessary to check whether a drawing making content is wrong, and after a complex drawing is completed, some details are often easily ignored, such as few lines or multiple lines in the drawing process, size labeling errors, and the like.
Most of the existing drawing error review methods traverse the attributes of checked objects in the drawing and then compare the attributes with standards to judge errors. However, by comparing the attributes of the objects in the drawing with the standards, only format errors (such as incorrect line width, font size, etc.) occurring in the drawing can be detected, and errors of characteristics of the object in the drawing (such as errors of multiple lines or few lines, curve drawing errors, missing or redundant marks, etc.) cannot be identified.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides an identification method and an identification device of a drawing, electronic equipment and a storage medium, which are used for at least solving the technical problem that in the related technology, only format errors of the drawing can be detected and errors of graphic features of the drawing cannot be identified by comparing object attributes in the drawing with standards.
According to an aspect of an embodiment of the present invention, there is provided an identification method of a drawing sheet, including: receiving a drawing to be checked, and traversing three-view information in the drawing; constructing a three-dimensional graph based on the three-view information; identifying each graphic feature in the three-dimensional graphic; and under the condition that the three-view information of the graphic features is wrong, identifying the wrong three-view information in the drawing.
Optionally, the step of constructing a three-dimensional graph based on the three-view information includes: identifying an object circle, a contour curve and an internal loop curve in the drawing by respectively adopting three views; traversing the object circle to obtain geometric elements of the graphic features corresponding to the object circle, and marking the curves corresponding to the object circle as characteristic curves in the three views respectively; traversing the outline curve to obtain geometric elements of the graphic features corresponding to the outline curve, and respectively marking the curves corresponding to the outline curve as characteristic curves in three views; traversing the inner loop curve to obtain geometric elements of the graphic features corresponding to the inner loop curve, and respectively marking the curves corresponding to the inner loop curve as characteristic curves in three views; recombining the unmarked drawing curves, forming at least one boss feature by adopting three views, and recording the geometric elements of the graphic features corresponding to the boss feature; and integrating all the characteristic curves and the geometric elements of each graphic characteristic to construct the three-dimensional graph carrying the graphic characteristic.
Optionally, the step of traversing the object circle to obtain a geometric element of the graphic feature corresponding to the object circle includes: traversing the object circle by taking any one of the three views as a reference, and searching a curve corresponding to the object circle from the other two views; determining that the corresponding graphic feature of the object circle is a hole feature under the condition that the inside surrounded by the curve has no section line and the inside of the object circle has no section line; determining the corresponding graphic feature of the object circle as a cylindrical feature under the condition that the inside surrounded by the curve has a section line and/or the inside of the object circle has a section line; the geometric elements of the hole features and the cylindrical features are recorded.
Optionally, the step of traversing the contour curve to obtain a geometric element of the graphic feature corresponding to the contour curve includes: traversing the contour curve, and searching a concave curve combination in the contour curve according to the concavity and the convexity; traversing the concave curve combination, and determining the graph characteristic corresponding to the contour curve as a groove characteristic; the geometric elements of the groove features are recorded.
Optionally, the step of traversing the inner loop curve to obtain the geometric element of the graphic feature corresponding to the inner loop curve includes: determining the graph feature corresponding to the inner loop curve as a groove feature under the condition that any one of the three views is adopted for traversal to obtain the inner loop curve and no section line exists inside the corresponding curve in the other two views; the geometric elements of the groove features are recorded.
Optionally, the three-view information of the graphic feature includes: the method comprises the steps of characteristic curves, line types and characteristic labels, wherein the characteristic labels are used for labeling the graphic characteristics or the positions of the graphic characteristics.
Optionally, after identifying each graphic feature in the three-dimensional graphic, the identification method further comprises: comparing the characteristic curve of the graphic features with three views in a preset graphic library to obtain a comparison result, wherein the comparison result is used for indicating whether the characteristic curve of the graphic features in the drawing is drawn correctly or not; and respectively detecting whether the feature labels are accurate in the three views to obtain a detection result.
Optionally, when the three-view information of the graphic feature is incorrect, the step of identifying the incorrect three-view information in the drawing paper includes: under the condition that the characteristic curve of the graphic characteristic is drawn wrongly, identifying the characteristic curve which is drawn wrongly in the drawing paper by adopting a first color; and under the condition that the characteristic mark of the graphic characteristic is wrong, the characteristic mark which is wrong is identified in the drawing by adopting a second color.
According to another aspect of the embodiments of the present invention, there is also provided an identification apparatus of a drawing sheet, including: the traversing unit is used for receiving the drawing to be checked and traversing the three-view information in the drawing; the construction unit is used for constructing a three-dimensional graph based on the three-view information; the identification unit is used for identifying each graph feature in the three-dimensional graph; and the identification unit is used for identifying the three-view information with errors in the drawing under the condition that the three-view information with the graphic characteristics has errors.
Optionally, the construction unit comprises: the first identification module is used for identifying an object circle, a contour curve and an internal loop curve in the drawing by respectively adopting three views; the first traversal module is used for traversing the object circle to obtain geometric elements of the graphic features corresponding to the object circle, and marking the curves corresponding to the object circle as characteristic curves in the three views respectively; the second traversal module is used for traversing the outline curve to obtain the geometric elements of the graphic features corresponding to the outline curve, and marking the curves corresponding to the outline curve as characteristic curves in three views respectively; a third traversal module, configured to traverse the inner loop curve to obtain geometric elements of the graphical feature corresponding to the inner loop curve, and mark curves corresponding to the inner loop curve as feature curves in three views, respectively; the first recording module is used for recombining the unmarked drawing curve, forming at least one boss feature by adopting three views, and recording the geometric elements of the graphic features corresponding to the boss feature; and the first construction module is used for integrating all the characteristic curves and the geometric elements of each graphic characteristic to construct the three-dimensional graph carrying the graphic characteristic.
Optionally, the first traversal module comprises: the first traversal submodule is used for traversing the object circle by taking any one of the three views as a reference, and searching a curve corresponding to the object circle from the other two views; a first determining submodule, configured to determine, when there is no cross-hatching inside the curve and there is no cross-hatching inside the object circle, that the graphic feature corresponding to the object circle is a hole feature; the second determining submodule is used for determining that the corresponding graphic feature of the object circle is a cylindrical feature under the condition that a section line exists in the curve surrounding and/or the section line exists in the object circle; a first recording submodule for recording geometric features of the hole feature and the cylindrical feature.
Optionally, the second traversal module includes: the second traversal submodule is used for traversing the contour curve and searching a concave curve combination in the contour curve according to the concavity and the convexity; the third determination calendar module is used for traversing the concave curve combination and determining the graphic feature corresponding to the contour curve as a groove feature; a second recording submodule for recording geometric elements of the slot features.
Optionally, the third traversal module includes: a fourth determining submodule, configured to determine that the graph feature corresponding to the inner loop curve is a groove feature when the inner loop curve is obtained by traversing any one of the three views and a corresponding curve in the other two views has no cross-hatching inside; a third recording submodule for recording geometric elements of the slot features.
Optionally, the three-view information of the graphic feature includes: the method comprises the steps of characteristic curves, line types and characteristic labels, wherein the characteristic labels are used for labeling the graphic characteristics or the positions of the graphic characteristics.
Optionally, the identification device further includes: the comparison unit is used for comparing a characteristic curve of the graphic features with three views in a preset graphic library after each graphic feature in the three-dimensional graph is identified to obtain a comparison result, wherein the comparison result is used for indicating whether the characteristic curve of the graphic features in the drawing is drawn correctly or not; and the detection unit is used for detecting whether the feature labels are accurate in the three views respectively to obtain a detection result.
Optionally, the identification unit includes: the first identification module is used for identifying the characteristic curve with wrong drawing in the drawing paper by adopting a first color under the condition that the characteristic curve with wrong drawing of the graphic characteristic is drawn; and the second identification module is used for identifying the wrong characteristic label in the drawing by adopting a second color under the condition that the characteristic label of the graphic characteristic has errors.
According to another aspect of the embodiments of the present invention, there is also provided an electronic device, including: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform the method of identifying a mapping drawing of any of the above via execution of the executable instructions.
According to another aspect of the embodiment of the present invention, a computer-readable storage medium is further provided, where the computer-readable storage medium includes a stored computer program, and when the computer program runs, the apparatus on which the computer-readable storage medium is located is controlled to execute any one of the above-mentioned methods for identifying a drawing.
In the embodiment of the invention, the drawing to be checked is received, the three-view information in the drawing is traversed, the three-dimensional graph is constructed based on the three-view information, each graph feature in the three-dimensional graph is identified, and the three-view information with errors in the drawing is identified under the condition that the three-view information with the graph features has errors. In the embodiment, obvious graphic features (such as round holes, cylinders, grooves, bosses and the like) in the three-dimensional graph can be identified, then whether the three-view information of the graphic features has errors or not is checked, the errors of the graphic features of a plurality of drawings can be checked, the drawing and checking time of designers is saved, and the project delivery process is accelerated, so that the technical problem that in the related technology, only the format errors of the drawings can be checked by comparing the object attributes in the drawings with the standards, and the errors of the graphic features of the drawings cannot be identified is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a flow chart of an alternative method of identifying a drawing according to an embodiment of the present invention;
FIG. 2 is a flow diagram of an alternative sampled three-view intelligent audit drawing in accordance with an embodiment of the present invention;
FIG. 3 is a flow chart of an alternative three-view reconstructed three-dimensional graph with features according to an embodiment of the invention;
fig. 4 is a schematic view of an alternative drawing identification device according to an embodiment of the invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, 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 only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The invention can be applied to various project workpiece drawing systems, drawing software or drawing inspection systems, and the following embodiments of the invention are schematically illustrated by the drawing software.
The invention can identify errors with larger influence, such as few lines or multiple lines, line type errors, broken line not drawn, dimension marking errors and the like in the drawing, and can detect whether the position of the starting point and the end point of the straight line is correct, whether the straight line exists, whether the straight line is the broken line and the like. The present invention will be described in detail with reference to examples.
Example one
In accordance with an embodiment of the present invention, there is provided an identification method embodiment of a drawing sheet, it being noted that the steps illustrated in the flowchart of the figure may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than that presented herein.
Fig. 1 is a flowchart of an alternative method for identifying a drawing according to an embodiment of the present invention, and as shown in fig. 1, the method includes the following steps:
step S102, receiving a drawing to be checked, and traversing three-view information in the drawing;
step S104, constructing a three-dimensional graph based on the three-view information;
step S106, identifying each graph feature in the three-dimensional graph;
and step S108, under the condition that the three-view information of the graphic features is wrong, identifying the wrong three-view information in the drawing.
Through the steps, the drawing to be checked can be received firstly, the three-view information in the drawing is traversed, the three-dimensional graph is constructed based on the three-view information, each graph feature in the three-dimensional graph is identified, and the three-view information with errors in the drawing is identified under the condition that the three-view information with the graph features has errors. In the embodiment, obvious graphic features (such as round holes, cylinders, grooves, bosses and the like) in the three-dimensional graph can be identified, then whether the three-view information of the graphic features has errors or not is checked, the errors of the graphic features of a plurality of drawings can be checked, the drawing and checking time of designers is saved, and the project delivery process is accelerated, so that the technical problem that in the related technology, only the format errors of the drawings can be checked by comparing the object attributes in the drawings with the standards, and the errors of the graphic features of the drawings cannot be identified is solved.
The following describes embodiments of the present invention in detail with reference to the above-described respective implementation steps.
And step S102, receiving the drawing to be checked, and traversing the three-view information in the drawing.
The drawing in the embodiment of the invention can be drawn by drawing software installed on an external terminal (including but not limited to a PC, a tablet computer, a notebook computer and the like) by developers/designers, and the drawing is generated according to drawing standards.
The received drawing to be examined can be understood as a two-dimensional plane drawing, and at this time, the drawing includes information such as curves, standards, straight lines, models, line types and sizes.
After receiving the drawing to be checked, opening the drawing, and traversing to obtain three-view information in the drawing, wherein the three-view information optionally includes but is not limited to: curves, annotations, etc. of the three views.
And step S104, constructing a three-dimensional graph based on the three-view information.
Optionally, the step of constructing a three-dimensional graph based on the three-view information includes: identifying an object circle, a contour curve and an internal loop curve in a drawing by respectively adopting three views; traversing the object circle to obtain geometric elements of the graphic features corresponding to the object circle, and marking curves corresponding to the object circle as characteristic curves in the three views respectively; traversing the contour curve to obtain geometric elements of the graphic features corresponding to the contour curve, and respectively marking the curves corresponding to the contour curve as characteristic curves in the three views; traversing the inner loop curve to obtain geometric elements of the graphic features corresponding to the inner loop curve, and respectively marking the curves corresponding to the inner loop curve as characteristic curves in the three views; recombining the unmarked drawing curves, forming at least one boss feature by adopting three views, and recording the geometric elements of the graphic features corresponding to the boss feature; and integrating all the characteristic curves and the geometric elements of each graphic characteristic to construct a three-dimensional graph carrying the graphic characteristic.
In this embodiment, a three-dimensional graph carrying graph features may be constructed using three views. The three views or views may include: a front view, a top view and a left view, or a front view, a top view and a right view.
In this embodiment, after finding the circle, the contour curve (i.e., the boundary curve of the view), and the inner loop curve in each view, the geometric elements of the graphic feature may be determined respectively, and the corresponding curves are marked as feature curves in the three views.
Optionally, the inner loop curve of the present embodiment may refer to an inner loop curve of the profile curve.
In this embodiment, the three-view reconstruction of the three-dimensional graph with the features is based on the "projection law of the three views," and the projection law of the three views includes: 1) long alignment: the main and top views are aligned; 2) high flush: the front view and the left view are high and level; 3) the width is equal: the top view and the left view are equal in width and correspond to each other in front and back.
Another optional step of traversing the object circle to obtain the geometric elements of the graphic features corresponding to the object circle includes: traversing the object circle by taking any one of the three views as a reference, and searching a curve corresponding to the object circle from the other two views; determining the graphic feature corresponding to the object circle as a hole feature under the condition that the inside surrounded by the curve has no cross section line and the inside of the object circle has no cross section line; determining the graphic feature corresponding to the object circle as a cylindrical feature under the condition that the inside surrounded by the curve has a section line and/or the inside of the object circle has the section line; the geometric elements of the hole features and the cylindrical features are recorded.
In this embodiment, the hatching indicates a section of the product part corresponding to the drawing.
In this embodiment, after traversing the object circle, a curve corresponding to the object circle may be searched from the other two views, if there is no cross-hatching inside the curve enclosure and there is no cross-hatching inside the circle, it represents that the feature corresponding to the circle is a hole feature, otherwise, the corresponding feature is a cylinder feature, the geometric elements of the feature are recorded, and the corresponding curve is marked as the feature curve in the three views.
In this embodiment, the step of traversing the contour curve to obtain the geometric elements of the graphic features corresponding to the contour curve includes: traversing the contour curve, and searching a concave curve combination in the contour curve according to the concavity and the convexity; traversing the concave curve combination, and determining the graph characteristics corresponding to the contour curve as groove characteristics; the geometric elements of the groove features are recorded.
When the contour curve is traversed, the concave curve combination in the contour curve can be found according to the concave-convex property, the concave curve combination is traversed, the corresponding groove features are recorded, the geometric elements of the features are recorded, and the corresponding curve is marked as the feature curve in the three-view.
In this embodiment, the step of traversing the inner loop curve to obtain the geometric elements of the graphic features corresponding to the inner loop curve includes: determining the graph characteristic corresponding to the inner loop curve as a groove characteristic under the condition that any one of the three views is adopted to traverse to obtain the inner loop curve and no section line exists in the corresponding curve in the other two views; the geometric elements of the groove features are recorded.
When traversing the inner loop curve, if there is no cross-hatching inside the corresponding curve in the other two views, the corresponding feature is a groove feature, the geometric elements of the feature are recorded, and the corresponding curve is marked as the feature curve in the three views.
After traversing the circle, the contour curve and the inner loop curve respectively, the remaining unmarked curves can be recombined, then one or more boss features are formed according to the three views, and the geometric elements of the features are recorded.
In the embodiment of the invention, a three-view three-dimensional graph reconstruction mode is provided, the circular hole and the cylindrical feature which are easy to identify are firstly identified, the groove feature is then identified according to the concavity and convexity, the external contour curve and the internal loop curve, and the boss feature is finally identified.
And step S106, identifying each graph feature in the three-dimensional graph.
The graphical features in this embodiment include, but are not limited to: holes, cylinders, slots, bosses, etc.
Optionally, after identifying each graphic feature in the three-dimensional graphic, the identification method further includes: comparing the characteristic curve of the graphic features with the three views in a preset graphic library to obtain a comparison result, wherein the comparison result is used for indicating whether the characteristic curve of the graphic features in the drawing is drawn correctly or not; and respectively detecting whether the feature labels are accurate in the three views to obtain a detection result.
In this embodiment, it is mainly explained that whether the feature curve and the feature label of the feature of the inspection graph are correct or not, and whether the error is correctly inspected by inspecting the three views of the feature or not. If the corresponding curves and labels of the features in the three views are correct, the examination is passed, otherwise, the examination is not passed, and incorrect curves or labels are marked in the drawing.
Optionally, in this embodiment, it may also be checked whether an error such as a few-line or multi-line error, a line type error, a dotted line error, a size marking error, or the like occurs in the drawing.
The embodiment of the invention can check more errors of the drawing, because the embodiment carries out the reconstruction of the three-dimensional graph firstly, the embodiment can check less lines or more lines, line type errors, not drawn dotted lines and major errors of dimension marking according to the drawing standard.
And step S108, under the condition that the three-view information of the graphic features is wrong, identifying the wrong three-view information in the drawing.
Optionally, the three-view information of the graphic feature includes: the system comprises a characteristic curve, a line type and a characteristic mark, wherein the characteristic mark is used for marking a graphic characteristic or the position of the graphic characteristic.
As an optional implementation manner of this embodiment, in a case that the three-view information of the graphic feature is in error, the step of identifying the three-view information in which the error occurs in the drawing includes: under the condition that the characteristic curve of the graphic characteristic is drawn wrongly, identifying the characteristic curve which is drawn wrongly in the drawing by adopting a first color; and under the condition that the characteristic mark of the graphic characteristic has an error, adopting a second color to identify the wrong characteristic mark in the drawing.
In this embodiment, the first color and the second color may be the same or different, and the selection of the specific color may be preset or may be adjusted according to the user's requirement, for example, the first color is set to be red, and the second color is set to be green.
Compared with the prior art that only format errors (such as line width, incorrect font and size and the like) of the drawing can be checked by comparing the object attributes in the drawing with a standard library, the method can identify obvious graphic features (such as round holes, cylinders, grooves, bosses and the like) in the corresponding three-dimensional graphics according to the three views, then check the three-view information (including but not limited to curves, feature labels, line types, solid lines and dotted lines) of the graphic features, for example, compare the three-view curves with the three views in the standard library to obtain whether the drawing of the feature three-view curves is correct, check whether the graphic features and feature positioning are accurately labeled in the three views, and finally identify the wrong places in the drawing with different colors. According to the embodiment, the time for drawing and examining the drawing by designers can be saved, errors caused by manual omission are reduced, and the project delivery process is accelerated.
The invention is described in detail below with reference to an alternative embodiment.
Fig. 2 is a flowchart of an alternative sampling three-view intelligent review drawing according to an embodiment of the present invention, and as shown in fig. 2, the flowchart of the review drawing includes:
opening a CAD drawing to be examined, and traversing to obtain all curves and labels of three views in the drawing;
reconstructing a three-dimensional graph to be characterized according to the three views;
respectively obtaining the characteristics for examination;
judging whether the curves and marks of the features in the three views are correct or not;
if the characteristics are correct, judging whether the characteristics are still to be inspected, and if so, returning to respectively acquiring the characteristics for inspection;
in the case of errors, incorrect curves and labels are noted.
In the embodiment, the three-dimensional graph represented by the features (holes, cylinders, grooves, bosses and the like) can be reconstructed by referring to the drawing standard, the curves and the labels in the three views to be inspected, then all the features are traversed, and whether the three views of the features are inspected correctly or not can be checked incorrectly. If the corresponding curves and labels of the features in the three views are correct, the examination is passed, otherwise, the examination is not passed, and incorrect curves or labels are marked in the drawing.
The following describes a specific process for reconstructing a three-dimensional figure with features by using three views.
In this embodiment, the flow of reconstructing a three-dimensional graph with features by using three views is based on the "projection law of three views".
FIG. 3 is a flow chart of an alternative three-view reconstructed three-dimensional graph with features according to an embodiment of the invention, as shown in FIG. 3, including:
1) finding a circle in each view; identifying a contour curve (i.e., a boundary curve of a view) for each view; identifying an inner loop curve of the profile curve;
2) traversing the circle, searching a curve corresponding to the circle from the other two views, if the inside of the circle or the inside of the corresponding curve has a section line, determining the curve as a cylindrical characteristic, and if the curve is not the cylindrical characteristic, determining the curve as a hole characteristic, and recording and marking the curve;
after traversing a circle, searching a curve corresponding to the circle from the other two views, if the inside surrounded by the curve has no section line and the circle has no section line, representing that the corresponding feature of the circle is a hole feature, otherwise, recording the geometric elements of the feature, and marking the corresponding curve as the feature curve in the three views;
3) finding a concave curve combination in the profile curve, traversing the concave curve combination, recording and marking the corresponding characteristic as a groove characteristic;
in this embodiment, the contour curve is traversed, a concave curve combination in the contour curve is found according to the concavity and the convexity, the concave curve combination is traversed, the corresponding groove features are recorded, the geometric elements of the features are recorded, and the corresponding curve is marked as the feature curve in the three-view.
4) Traversing the inner loop curve, if no hatching exists in the corresponding curve in the other two views, the corresponding characteristic is a groove characteristic, recording the geometric elements of the characteristic, and marking the corresponding curve as the characteristic curve in the three views;
5) the remaining unmarked curves are recombined and then one or more plateau features are composed from the three views and the geometric elements of the features are recorded.
In the above fig. 3, a three-view three-dimensional graph reconstruction method is provided, which includes firstly identifying circular holes and cylindrical features which are easy to identify, then identifying groove features according to the concavity and convexity, the external contour curve and the internal loop curve, and finally identifying boss features.
Through the embodiment, the three-dimensional graph is reconstructed, so that fewer lines or multiple lines, line type errors, un-drawn dotted lines and major errors of size marking can be checked according to the drawing standard.
The invention is described below in connection with an alternative embodiment.
Example two
The embodiment provides a marking device for a drawing sheet, and a plurality of implementation units included in the marking device respectively correspond to the implementation steps in the first embodiment.
Fig. 4 is a schematic diagram of an alternative identification device of a drawing according to an embodiment of the present invention, and as shown in fig. 4, the identification device may include: a traversal unit 41, a construction unit 43, a recognition unit 45, an identification unit 47, wherein,
the traversing unit 41 is used for receiving the drawing to be checked and traversing the three-view information in the drawing;
a construction unit 43 configured to construct a three-dimensional graph based on the three-view information;
an identifying unit 45 for identifying each graphic feature in the three-dimensional graphic;
and the identifying unit 47 is used for identifying the three-view information with errors in the drawing under the condition that the three-view information of the graphic features has errors.
The drawing identification device for the drawing can receive the drawing to be checked through the traversing unit 41, traverse the three-view information in the drawing, construct the three-dimensional graph through the constructing unit 43 based on the three-view information, identify each graph feature in the three-dimensional graph through the identifying unit 45, and identify the three-view information with errors in the drawing through the identifying unit 47 under the condition that the three-view information with the graph features has errors. In the embodiment, obvious graphic features (such as round holes, cylinders, grooves, bosses and the like) in the three-dimensional graph can be identified, then whether the three-view information of the graphic features has errors or not is checked, the errors of the graphic features of a plurality of drawings can be checked, the drawing and checking time of designers is saved, and the project delivery process is accelerated, so that the technical problem that in the related technology, only the format errors of the drawings can be checked by comparing the object attributes in the drawings with the standards, and the errors of the graphic features of the drawings cannot be identified is solved.
Optionally, the building unit includes: the first identification module is used for identifying an object circle, a contour curve and an internal loop curve in the drawing by respectively adopting three views; the first traversal module is used for traversing the object circle to obtain geometric elements of the graphic features corresponding to the object circle, and marking the curves corresponding to the object circle as characteristic curves in the three views respectively; the second traversal module is used for traversing the contour curve to obtain geometric elements of the graphic features corresponding to the contour curve, and marking the curves corresponding to the contour curve as characteristic curves in the three views respectively; the third traversal module is used for traversing the internal loop curve to obtain geometric elements of the graphic features corresponding to the internal loop curve, and marking the curves corresponding to the internal loop curve as characteristic curves in the three views respectively; the first recording module is used for recombining the unmarked drawing curve, forming at least one boss feature by adopting three views, and recording the geometric elements of the graphic features corresponding to the boss feature; and the first construction module is used for integrating all the characteristic curves and the geometric elements of each graphic characteristic to construct a three-dimensional graph carrying the graphic characteristic.
Optionally, the first traversal module includes: the first traversal submodule is used for traversing the object circle by taking any one of the three views as a reference, and searching a curve corresponding to the object circle from the other two views; the first determining submodule is used for determining the graphic feature corresponding to the object circle as the hole feature under the condition that no cross section line exists in the curve surrounded and no cross section line exists in the object circle; the second determining submodule is used for determining the graphic feature corresponding to the object circle as the cylindrical feature under the condition that the inside surrounded by the curve has a section line and/or the inside of the object circle has the section line; a first recording submodule for recording the geometric features of the hole feature and the cylindrical feature.
Optionally, the second traversal module includes: the second traversal submodule is used for traversing the contour curve and searching a concave curve combination in the contour curve according to the concavity and the convexity; the third determination calendar submodule is used for traversing the concave curve combination and determining the graphic characteristics corresponding to the contour curve as the groove characteristics; and a second recording submodule for recording geometric elements of the slot features.
Optionally, the third traversal module includes: the fourth determining submodule is used for determining the graph characteristics corresponding to the inner loop curve as the groove characteristics under the condition that any one of the three views is adopted to traverse to obtain the inner loop curve and no section line exists in the corresponding curve in the other two views; and a third recording submodule for recording geometric elements of the groove features.
Optionally, the three-view information of the graphic feature includes: the system comprises a characteristic curve, a line type and a characteristic mark, wherein the characteristic mark is used for marking a graphic characteristic or the position of the graphic characteristic.
Optionally, the identification apparatus further includes: the comparison unit is used for comparing a characteristic curve of the graphic features with three views in a preset graphic library after each graphic feature in the three-dimensional graphic is identified to obtain a comparison result, wherein the comparison result is used for indicating whether the characteristic curve of the graphic features in the drawing is correctly drawn; and the detection unit is used for detecting whether the feature labels are accurate in the three views respectively to obtain a detection result.
Optionally, the identification unit includes: the first identification module is used for identifying the characteristic curve with the drawing error in the drawing by adopting a first color under the condition that the characteristic curve with the graphic characteristic is drawn with the error; and the second identification module is used for identifying the wrong characteristic label in the drawing by adopting a second color under the condition that the characteristic label of the graphic characteristic has the error.
The above-mentioned identification means may further comprise a processor and a memory, and the above-mentioned traversing unit 41, the constructing unit 43, the identifying unit 45, the identifying unit 47, etc. are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to implement the corresponding functions.
The processor comprises a kernel, and the kernel calls a corresponding program unit from the memory. The kernel can be set to be one or more than one, and the three-view information with errors in the drawing is identified by adjusting the kernel parameters under the condition that the three-view information with the graphic characteristics has errors.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
According to another aspect of the embodiments of the present invention, there is also provided an electronic device, including: a processor; and a memory for storing executable instructions for the processor; wherein the processor is configured to perform the method of identifying a mapping drawing of any of the above via execution of executable instructions.
According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program, and when the computer program runs, the apparatus on which the computer-readable storage medium is located is controlled to execute any one of the above methods for identifying a drawing.
The present application further provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device: receiving a drawing to be checked, and traversing three-view information in the drawing; constructing a three-dimensional graph based on the three-view information; identifying each graphic feature in the three-dimensional graphic; and under the condition that the three-view information of the graphic features is wrong, identifying the wrong three-view information in the drawing.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (11)

1. A method of identifying a drawing sheet, comprising:
receiving a drawing to be checked, and traversing three-view information in the drawing;
constructing a three-dimensional graph based on the three-view information;
identifying each graphic feature in the three-dimensional graphic;
and under the condition that the three-view information of the graphic features is wrong, identifying the wrong three-view information in the drawing.
2. The method of claim 1, wherein the step of constructing a three-dimensional graph based on the tri-view information comprises:
identifying an object circle, a contour curve and an internal loop curve in the drawing by respectively adopting three views;
traversing the object circle to obtain geometric elements of the graphic features corresponding to the object circle, and marking the curves corresponding to the object circle as characteristic curves in the three views respectively;
traversing the outline curve to obtain geometric elements of the graphic features corresponding to the outline curve, and respectively marking the curves corresponding to the outline curve as characteristic curves in three views;
traversing the inner loop curve to obtain geometric elements of the graphic features corresponding to the inner loop curve, and respectively marking the curves corresponding to the inner loop curve as characteristic curves in three views;
recombining the unmarked drawing curves, forming at least one boss feature by adopting three views, and recording the geometric elements of the graphic features corresponding to the boss feature;
and integrating all the characteristic curves and the geometric elements of each graphic characteristic to construct the three-dimensional graph carrying the graphic characteristic.
3. The method of claim 2, wherein traversing the object circle to obtain the geometric element of the graphical feature corresponding to the object circle comprises:
traversing the object circle by taking any one of the three views as a reference, and searching a curve corresponding to the object circle from the other two views;
determining that the corresponding graphic feature of the object circle is a hole feature under the condition that the inside surrounded by the curve has no section line and the inside of the object circle has no section line;
determining the corresponding graphic feature of the object circle as a cylindrical feature under the condition that the inside surrounded by the curve has a section line and/or the inside of the object circle has a section line;
the geometric elements of the hole features and the cylindrical features are recorded.
4. The method of identifying as claimed in claim 2, wherein the step of traversing the contour curve to obtain the geometric elements of the graphical feature corresponding to the contour curve comprises:
traversing the contour curve, and searching a concave curve combination in the contour curve according to the concavity and the convexity;
traversing the concave curve combination, and determining the graph characteristic corresponding to the contour curve as a groove characteristic;
the geometric elements of the groove features are recorded.
5. The method of claim 2, wherein traversing the inner loop curve to obtain the geometric elements of the graphical feature corresponding to the inner loop curve comprises:
determining the graph feature corresponding to the inner loop curve as a groove feature under the condition that any one of the three views is adopted for traversal to obtain the inner loop curve and no section line exists inside the corresponding curve in the other two views;
the geometric elements of the groove features are recorded.
6. The identification method according to claim 1, wherein the three-view information of the graphical feature comprises: the method comprises the steps of characteristic curves, line types and characteristic labels, wherein the characteristic labels are used for labeling the graphic characteristics or the positions of the graphic characteristics.
7. The identification method of claim 6, wherein after identifying each graphic feature in the three-dimensional graphic, the identification method further comprises:
comparing the characteristic curve of the graphic features with three views in a preset graphic library to obtain a comparison result, wherein the comparison result is used for indicating whether the characteristic curve of the graphic features in the drawing is drawn correctly or not;
and respectively detecting whether the feature labels are accurate in the three views to obtain a detection result.
8. The identification method according to claim 1, wherein the step of identifying the three-view information of the drawing in which an error occurs when the three-view information of the graphic feature is in error comprises:
under the condition that the characteristic curve of the graphic characteristic is drawn wrongly, identifying the characteristic curve which is drawn wrongly in the drawing paper by adopting a first color;
and under the condition that the characteristic mark of the graphic characteristic is wrong, the characteristic mark which is wrong is identified in the drawing by adopting a second color.
9. An identification device for a drawing sheet, comprising:
the traversing unit is used for receiving the drawing to be checked and traversing the three-view information in the drawing;
the construction unit is used for constructing a three-dimensional graph based on the three-view information;
the identification unit is used for identifying each graph feature in the three-dimensional graph;
and the identification unit is used for identifying the three-view information with errors in the drawing under the condition that the three-view information with the graphic characteristics has errors.
10. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the method of identifying a mapping drawing of any of claims 1-8 via execution of the executable instructions.
11. A computer-readable storage medium, comprising a stored computer program, wherein when the computer program runs, the computer-readable storage medium controls an apparatus to execute the method for identifying a drawing according to any one of claims 1 to 8.
CN202111482471.7A 2021-12-06 2021-12-06 Drawing identification method and device, electronic equipment and storage medium Pending CN114373188A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111482471.7A CN114373188A (en) 2021-12-06 2021-12-06 Drawing identification method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111482471.7A CN114373188A (en) 2021-12-06 2021-12-06 Drawing identification method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114373188A true CN114373188A (en) 2022-04-19

Family

ID=81140835

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111482471.7A Pending CN114373188A (en) 2021-12-06 2021-12-06 Drawing identification method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114373188A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115423992A (en) * 2022-08-22 2022-12-02 惠州市海葵信息技术有限公司 Engineering drawing space arrangement method, controller and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115423992A (en) * 2022-08-22 2022-12-02 惠州市海葵信息技术有限公司 Engineering drawing space arrangement method, controller and storage medium
CN115423992B (en) * 2022-08-22 2023-11-14 惠州市海葵信息技术有限公司 Engineering drawing space arrangement method, controller and storage medium

Similar Documents

Publication Publication Date Title
CN110795482B (en) Data benchmarking method, device and storage device
CN111078908A (en) Data annotation detection method and device
CN110908890A (en) Automatic test method and device for interface
CN111144493B (en) Method for automatically identifying algorithm index test, storage medium and electronic terminal
CN103488460B (en) The system and method for automatic mark source code
CN114373188A (en) Drawing identification method and device, electronic equipment and storage medium
CN114494274A (en) Building construction evaluation method, building construction evaluation device, electronic equipment and storage medium
WO2018188222A1 (en) A2l file merging method and device
CN112084302B (en) Method, system, device and storage medium for detecting inventory data of cost file
CA3142579A1 (en) Method and apparatus for validation of event tracking acquired data
CN106528665A (en) Method and system for searching testing document of AOI equipment
CN113868137A (en) Method, device and system for processing buried point data and server
CN114943219A (en) Method, device and equipment for generating bill of material test data and storage medium
CN111046878B (en) Data processing method and device, computer storage medium and computer
CN109710651B (en) Data type identification method and device
CN117152415B (en) Method, device, equipment and storage medium for detecting marker of medicine package
CN109815426A (en) Page info detection method and device, terminal and computer readable storage medium
CN113419739B (en) Node map difference detection method and device, electronic equipment and storage medium
CN115061922A (en) Code checking method and device, electronic equipment and computer readable storage medium
CN116305603A (en) Hardware graphic primitive detection method and related equipment
CN112612882B (en) Review report generation method, device, equipment and storage medium
CN112559195B (en) Database deadlock detection method and device, test terminal and medium
Clausen Opening schrödingers library: Semi-automatic QA reduces uncertainty in object transformation
CN117453487A (en) Method and device for determining abnormal root data of application program and electronic equipment
CN113869199A (en) Image detection method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination