CN117664045A - Automatic detection method, device, equipment and storage medium for positioning structure - Google Patents
Automatic detection method, device, equipment and storage medium for positioning structure Download PDFInfo
- Publication number
- CN117664045A CN117664045A CN202311579564.0A CN202311579564A CN117664045A CN 117664045 A CN117664045 A CN 117664045A CN 202311579564 A CN202311579564 A CN 202311579564A CN 117664045 A CN117664045 A CN 117664045A
- Authority
- CN
- China
- Prior art keywords
- positioning structure
- detection
- hole
- positioning hole
- positioning
- 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
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 221
- 238000003860 storage Methods 0.000 title claims abstract description 15
- 238000000034 method Methods 0.000 claims description 29
- 238000007689 inspection Methods 0.000 claims description 16
- 238000009826 distribution Methods 0.000 claims description 9
- 238000010586 diagram Methods 0.000 description 17
- 238000004519 manufacturing process Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 5
- 230000013011 mating Effects 0.000 description 4
- 238000004364 calculation method Methods 0.000 description 3
- 238000011960 computer-aided design Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000005259 measurement Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000011895 specific detection Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01B—MEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
- G01B21/00—Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01B—MEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
- G01B21/00—Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant
- G01B21/10—Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant for measuring diameters
- G01B21/14—Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant for measuring diameters internal diameters
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01B—MEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
- G01B21/00—Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant
- G01B21/16—Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant for measuring distance of clearance between spaced objects
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01B—MEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
- G01B21/00—Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant
- G01B21/22—Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant for measuring angles or tapers; for testing the alignment of axes
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Life Sciences & Earth Sciences (AREA)
- General Life Sciences & Earth Sciences (AREA)
- Length Measuring Devices With Unspecified Measuring Means (AREA)
Abstract
The invention discloses an automatic detection method, device and equipment for a positioning structure and a storage medium, and belongs to the technical field of detection of positioning structures. The invention determines the detection type when detecting the part positioning structure; selecting a main positioning hole and an auxiliary positioning hole according to the detection type; acquiring a to-be-detected item detected by a part positioning structure; the main positioning hole and the auxiliary positioning hole are used for automatically detecting the part positioning structure of the item to be detected, so that the positioning structure can be quickly and accurately detected, and the detection accuracy and efficiency are improved.
Description
Technical Field
The present invention relates to the field of positioning structure detection technologies, and in particular, to a positioning structure automatic detection method, device, equipment, and storage medium.
Background
Part positioning structure inspection refers to ensuring the correct position and configuration of a part during manufacturing, assembly, etc., by using various techniques and methods. This is important to ensure product quality, improve production efficiency, and reduce production costs.
The existing positioning structure detection is to draw a table model composed of a plurality of basic elements, and set names of inspection clauses, judgment rule conditions and inspection parameters in the table model. The logical relationship between the checking terms and the checked part pairing is not clear, so that whether the pairing is missed or not can not be judged, and whether the pairing is accurate or not can not be judged.
Disclosure of Invention
The invention mainly aims to provide an automatic detection method, device and equipment for a positioning structure and a storage medium, and aims to solve the technical problem that the detection of the positioning structure is not accurate enough in the prior art.
In order to achieve the above object, the present invention provides an automatic detection method for a positioning structure, the method comprising the steps of:
when detecting the part positioning structure, determining the detection type;
selecting a main positioning hole and an auxiliary positioning hole according to the detection type;
acquiring a to-be-detected item detected by a part positioning structure;
and automatically detecting the part positioning structure of the item to be detected based on the main positioning hole and the auxiliary positioning hole.
Optionally, the automatic detection of the part positioning structure of the item to be detected based on the main positioning hole and the auxiliary positioning hole includes:
when the item to be detected is hole spacing detection of a part positioning structure, a reference plane is established by the main positioning hole;
acquiring a first center point of the main positioning hole and a second center point of the auxiliary positioning hole;
projecting the first center point and the second center point onto the reference plane respectively, and obtaining hole spacing between the first center point and the second center point;
and detecting the hole spacing to finish automatic detection of the part positioning structure.
Optionally, the detecting the hole pitch to complete automatic detection of the part positioning structure includes:
connecting the first center point with the second center point to obtain a first straight line;
performing point distribution on the first straight line, performing rays on the position of the main positioning hole at the point distribution position, and recording a target point meeting the ray position;
and calculating the ratio of the hole spacing to the target point, and determining whether the part positioning holes meet the requirement according to the ratio to finish automatic detection of the part positioning structure.
Optionally, the automatic detection of the part positioning structure of the item to be detected based on the main positioning hole and the auxiliary positioning hole includes:
when the item to be detected is the direction and the profile detection of the part positioning structure, a first datum plane is used for main positioning Kong Jianli, and a second datum plane is used for auxiliary positioning Kong Jianli;
respectively acquiring a first normal vector of the first reference plane and a second normal vector of the second reference plane;
detecting whether the first normal vector is parallel to the second normal vector;
and (5) finishing automatic detection of the part positioning structure according to the detection result.
Optionally, the automatic detection of the part positioning structure of the item to be detected based on the main positioning hole and the auxiliary positioning hole includes:
when the item to be detected is size detection of a part positioning structure, a first aperture of the main positioning hole and a second aperture of the auxiliary positioning hole are obtained;
obtaining an aperture radius according to the first aperture and the second aperture;
establishing a reference plane through the main positioning hole and the auxiliary positioning hole, and acquiring a normal vector of the reference plane;
taking the normal vector as a ray direction to radiate an object in assembly, and determining a matching part of the hole;
acquiring the radius of the matching component;
and obtaining a dimension detection result according to the aperture radius and the radius of the matching component.
Optionally, the automatic detection of the part positioning structure of the item to be detected based on the main positioning hole and the auxiliary positioning hole includes:
when the item to be detected is the axle center detection of the part positioning structure, determining the type of the hole to be detected;
when the type is a round hole, a reference plane is established by the main positioning hole, and a normal vector of the reference plane is obtained;
acquiring a first center point of the main positioning hole and a second center point of the auxiliary positioning hole;
acquiring target points which meet the preset distance with the first center point and the second center point;
projecting the target point, the first central point and the second central point onto the reference plane according to the normal vector, and connecting the first central point, the second central point and the target point projected onto the reference plane to obtain a first straight line and a second straight line;
and detecting the axle center of the automatic detection of the part positioning structure based on the first straight line and the second straight line.
Optionally, the axle center detection for automatically detecting the part positioning structure based on the first straight line and the second straight line includes:
acquiring an included angle value between the first straight line and the second straight line;
comparing the included angle value with a preset included angle value;
and (5) finishing the axle center detection of the automatic detection of the part positioning structure according to the comparison result.
In addition, in order to achieve the above object, the present invention also provides an automatic detection device for a positioning structure, the automatic detection device for a positioning structure comprising:
the determining module is used for determining the detection type when detecting the part positioning structure;
the selection module is used for selecting a main positioning hole and an auxiliary positioning hole according to the detection type;
the acquisition module is used for acquiring items to be detected, which are detected by the part positioning structure;
and the detection module is used for automatically detecting the part positioning structure of the item to be detected based on the main positioning hole and the auxiliary positioning hole.
In addition, to achieve the above object, the present invention also proposes an automatic detection apparatus for a positioning structure, comprising: the system comprises a memory, a processor and a positioning structure automatic detection program stored on the memory and capable of running on the processor, wherein the positioning structure automatic detection program is configured to realize the steps of the positioning structure automatic detection method.
In addition, in order to achieve the above object, the present invention also proposes a storage medium having a positioning structure automatic detection program stored thereon, which when executed by a processor, implements the steps of the positioning structure automatic detection method as described above.
The invention determines the detection type when detecting the part positioning structure; selecting a main positioning hole and an auxiliary positioning hole according to the detection type; acquiring a to-be-detected item detected by a part positioning structure; the main positioning hole and the auxiliary positioning hole are used for automatically detecting the part positioning structure of the item to be detected, so that the positioning structure can be quickly and accurately detected, and the detection accuracy and efficiency are improved.
Drawings
FIG. 1 is a schematic diagram of a device for automatically detecting a positioning structure of a hardware running environment according to an embodiment of the present invention;
FIG. 2 is a flowchart of a first embodiment of an automatic detection method for a positioning structure according to the present invention;
FIG. 3 is a functional schematic of an NX software program according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating a user interface of a positioning structure plug-in according to an embodiment of the present invention;
FIG. 5 is a schematic diagram showing selection parameters for detecting a hole set according to an embodiment of the automatic detection method of a positioning structure of the present invention;
FIG. 6 is a schematic diagram showing a detection result of an embodiment of an automatic detection method for a positioning structure according to the present invention;
FIG. 7 is a flowchart of a second embodiment of an automatic detection method for a positioning structure according to the present invention;
FIG. 8 is a schematic diagram showing a calculation ratio between a target point and a distance between two holes according to an embodiment of the automatic detection method of a positioning structure of the present invention;
FIG. 9 is a flowchart of a third embodiment of an automatic detection method for a positioning structure according to the present invention;
FIG. 10 is a schematic diagram illustrating detection of a first normal vector and a second normal vector according to an embodiment of the present invention;
FIG. 11 is a flowchart of a fourth embodiment of an automatic detection method for a positioning structure according to the present invention;
FIG. 12 is a flowchart of a fifth embodiment of an automatic detection method for a positioning structure according to the present invention;
FIG. 13 is a schematic diagram illustrating a method for automatically detecting a positioning structure according to an embodiment of the present invention, wherein a second center point is connected to a first center point and a target point, respectively;
fig. 14 is a block diagram of an automatic detection device for positioning structure according to a first embodiment of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an automatic detection device for a positioning structure of a hardware running environment according to an embodiment of the present invention.
As shown in fig. 1, the positioning structure automatic detection apparatus may include: a processor 1001, such as a central processing unit (Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, a memory 1005. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a Wireless interface (e.g., a Wireless-Fidelity (Wi-Fi) interface). The Memory 1005 may be a high-speed random access Memory (Random Access Memory, RAM) or a stable nonvolatile Memory (NVM), such as a disk Memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
It will be appreciated by those skilled in the art that the structure shown in fig. 1 is not limiting of the positioning structure automatic detection apparatus and may include more or fewer components than shown, or certain components may be combined, or a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and a positioning structure automatic detection program may be included in the memory 1005 as one type of storage medium.
In the positioning structure automatic detection device shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the positioning structure automatic detection apparatus of the present invention may be provided in the positioning structure automatic detection apparatus, and the positioning structure automatic detection apparatus invokes a positioning structure automatic detection program stored in the memory 1005 through the processor 1001 and executes the positioning structure automatic detection method provided by the embodiment of the present invention.
An embodiment of the present invention provides a method for automatically detecting a positioning structure, and referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of the method for automatically detecting a positioning structure according to the present invention.
In this embodiment, the method for automatically detecting a positioning structure includes the following steps:
step S10: when the part positioning structure is detected, the detection type is determined.
It should be noted that, the execution body of the embodiment may be a positioning structure automatic detection device, or may be other devices that may implement the same or similar, which is not limited in this embodiment, and the positioning structure automatic detection device is described as an example in this embodiment. An NX software program is installed in the positioning structure automatic detection apparatus, and "NX" is a software for Computer Aided Design (CAD), computer Aided Manufacturing (CAM), and Computer Aided Engineering (CAE). NX software is a worldwide solution for manufacturing oriented to support product design, engineering, and manufacturing. Part positioning structure detection can be performed by operating an NX software program in the positioning structure automatic detection apparatus.
In a specific implementation, after the NX software program may be opened or restarted, the digital-analog is opened, as shown in fig. 3, fig. 3 is a functional schematic diagram of the NX software program, and the plug-in operation is as follows. And selecting the 'general assembly spot inspection' tab, and clicking the 'positioning structure' button to run the positioning structure plug-in.
After the positioning structure plug-in is operated, the operation can be performed so as to determine the detection type, as shown in fig. 4, fig. 4 is a schematic diagram of a user operation interface of the positioning structure plug-in, two groups of holes and a single hole are separated, a specific detection type can be selected according to requirements, for example, the detection type is selected to be hole group detection, detection standard parameters of the corresponding type set on the premise of reading the EXCEL table can be read by selecting different types, as shown in fig. 5, fig. 5 is a schematic diagram of selection parameters of hole group detection, and the detection type is hole group detection. The detection standard parameters comprise Bobach general requirements, lower vehicle body requirements, side wall requirements and two-door and two-cover requirements.
Step S20: and selecting a main positioning hole and an auxiliary positioning hole according to the detection type.
In a specific implementation, the main positioning hole and the auxiliary positioning hole can be selected according to the detection type, the auxiliary positioning hole is the secondary positioning hole, and as shown in fig. 5, the selected object comprises the main positioning hole and the secondary positioning hole, and the items to be detected can comprise interval detection, direction and profile detection, size detection, axis detection, Z-axis plane, Y-axis parallel detection and the like. After the detection of the selection hole group, the edges of the main positioning holes and the secondary positioning holes can be respectively selected in a digital-analog mode, wherein the selection mode of the main positioning holes is single selection, and the selection mode of the secondary positioning holes is multiple selection.
Step S30: and acquiring a to-be-detected item detected by the part positioning structure.
It should be noted that, the function to be detected may be checked on the program and then the "execute" button may be clicked, so that the checked function may be detected to obtain the item to be detected.
Step S40: and automatically detecting the part positioning structure of the item to be detected based on the main positioning hole and the auxiliary positioning hole.
In the implementation, the automatic detection of the part positioning structure of the item to be detected can be performed based on the main positioning hole and the auxiliary positioning hole, so that a detection result is obtained.
The items to be detected comprise hole spacing detection, direction and profile detection, size detection, axle center detection, Z-axis plane detection, Y-axis parallel detection and the like of the part positioning structure.
As shown in fig. 6, fig. 6 is a schematic diagram showing a detection result, wherein the detection type is hole group detection, the items to be detected include pitch detection, the detection result is NG, the detection value is 0.32, the items to be detected are direction and profile detection, the detection result is OK, the items to be detected are size detection, the detection value is NG, the detection value is-1, the items to be detected are axle center detection, the detection result is NG, and the detection value is 36 degrees and 47 minutes.
In the embodiment, the detection type is determined when the part positioning structure is detected; selecting a main positioning hole and an auxiliary positioning hole according to the detection type; acquiring a to-be-detected item detected by a part positioning structure; the main positioning hole and the auxiliary positioning hole are used for automatically detecting the part positioning structure of the item to be detected, so that the positioning structure can be quickly and accurately detected, and the detection accuracy and efficiency are improved.
Referring to fig. 7, fig. 7 is a flowchart illustrating a second embodiment of an automatic detection method for a positioning structure according to the present invention.
Based on the above-mentioned first embodiment, the step S40 of the method for automatically detecting a positioning structure according to this embodiment includes:
step S401: when the item to be detected is hole spacing detection of the part positioning structure, a reference plane is established by the main positioning holes.
It should be noted that, when the item to be detected is to detect the hole spacing of the part positioning structure, a reference plane can be established by the main positioning hole, so that the subsequent detection is convenient.
Step S402: and acquiring a first center point of the main positioning hole and a second center point of the auxiliary positioning hole.
In a specific implementation, a center point of the main positioning hole, i.e., a first center point, may be obtained, and a center point of the auxiliary positioning hole, i.e., a second center point, may be obtained.
Step S403: and respectively projecting the first center point and the second center point onto the reference plane, and acquiring the hole spacing between the first center point and the second center point.
It will be appreciated that the first and second center points may be projected onto the established reference plane, respectively, to obtain the distance between the first and second center points, resulting in the hole spacing between the first and second center points.
Step S404: and detecting the hole spacing to finish automatic detection of the part positioning structure.
It can be understood that the hole spacing can be detected to obtain a detection result, so that the hole spacing detection in the detection of the part positioning structure is realized.
Optionally, the step of detecting the hole spacing to complete automatic detection of the part positioning structure includes: connecting the first center point with the second center point to obtain a first straight line; performing point distribution on the first straight line, performing rays on the position of the main positioning hole at the point distribution position, and recording a target point meeting the ray position; and calculating the ratio of the hole spacing to the target point, and determining whether the part positioning holes meet the requirement according to the ratio to finish automatic detection of the part positioning structure.
It should be understood that the first center point and the second center point may be connected in a straight line on the reference plane, and the two end points of the first center point and the second center point extend the first straight line, and the points are uniformly distributed on the first straight line. And starting to scan the body of the main positioning hole by rays at the end point of the point distribution, namely, carrying out rays on the position of the main positioning hole, wherein the ray direction is the normal vector of the reference plane, the first point in the secondary shooting is a point target point A, as shown in fig. 8, and fig. 8 is a schematic diagram of the calculation ratio between the target point and the distance between two holes. Recording a first point of a main positioning hole body which is shot in the ray process, if a plurality of subsequent points are shot, the point is the other end point of the point A, so that the other end point of the point A is circularly judged, finally, the ratio of the distance between two holes to the target point A is calculated, whether the part positioning hole meets the requirement can be judged according to the distance from 2/3A to 5/6A, the standard distance can be set, and the ratio is compared with the standard distance, so that whether the part positioning hole meets the requirement is determined.
In a specific implementation, after automatic detection of the part positioning structure is performed, a detection result can be obtained, and the detection result is output, so that non-conforming parts are marked.
When the item to be detected is hole spacing detection of a part positioning structure, a reference plane is established by the main positioning holes; acquiring a first center point of the main positioning hole and a second center point of the auxiliary positioning hole; projecting the first center point and the second center point onto the reference plane respectively, and obtaining hole spacing between the first center point and the second center point; the hole spacing is detected to finish automatic detection of the part positioning structure, and each hole spacing can be accurately detected, so that rapid detection of the hole spacing of the part positioning structure is realized.
Referring to fig. 9, fig. 9 is a flowchart of a third embodiment of the automatic detection method for a positioning structure according to the present invention.
Based on the above-mentioned first embodiment, the step S40 of the method for automatically detecting a positioning structure according to this embodiment includes:
step S401': when the items to be detected are the direction and the profile of the part positioning structure, the main positioning Kong Jianli is used as a first reference plane, and the auxiliary positioning Kong Jianli is used as a second reference plane.
It should be noted that, when the item to be detected is to detect the direction and the profile of the part positioning structure, specific detection logic is as follows: reference planes are generated by the main positioning holes and the secondary positioning holes respectively, and then the first reference plane is positioned by the main positioning Kong Jianli to assist in positioning Kong Jianli the second reference plane.
Step S402': and respectively acquiring a first normal vector of the first reference plane and a second normal vector of the second reference plane.
In a specific implementation, a first normal vector of the first reference plane and a second normal vector of the second reference plane may be respectively acquired.
Step S403': detecting whether the first normal vector is parallel to the second normal vector.
In a specific implementation, the first normal vector and the second normal vector may be detected, so as to detect whether the first normal vector and the second normal vector are parallel, and obtain a detection result, as shown in fig. 10, fig. 10 is a schematic diagram of detection of the first normal vector and the second normal vector, where the detection result may be that the first normal vector is parallel to the second normal vector, or that the first normal vector and the second normal vector are not parallel.
Step S404': and (5) finishing automatic detection of the part positioning structure according to the detection result.
It should be noted that, automatic detection of the component positioning structure can be completed according to the detection result, for example, if the first normal vector and the second normal vector are parallel, the detection of the direction and the profile is considered to be qualified, and if the first normal vector and the second normal vector are not parallel, the detection of the direction and the profile is considered to be unqualified.
In this embodiment, when the item to be detected is the direction and the profile of the component positioning structure, the first reference plane is used for the main positioning Kong Jianli, and the second reference plane is used for the auxiliary positioning Kong Jianli; respectively acquiring a first normal vector of the first reference plane and a second normal vector of the second reference plane; detecting whether the first normal vector is parallel to the second normal vector; and the automatic detection of the part positioning structure is finished according to the detection result, the automatic detection of the direction and the molded surface of the part positioning structure can be realized, and the detection range and the efficiency are improved.
Referring to fig. 11, fig. 11 is a flowchart illustrating a fourth embodiment of an automatic detection method for a positioning structure according to the present invention.
Based on the above-mentioned first embodiment, the step S40 of the method for automatically detecting a positioning structure according to this embodiment includes:
step S401": and when the item to be detected is the size detection of the part positioning structure, acquiring the first aperture of the main positioning hole and the second aperture of the auxiliary positioning hole.
In a specific implementation, when the item to be detected is size detection of the part positioning structure, a first aperture of the main positioning hole and a second aperture of the auxiliary positioning hole can be obtained.
Step S402": and obtaining the aperture radius according to the first aperture and the second aperture.
It should be noted that, all sides of the main positioning hole and all sides of the auxiliary positioning hole may be obtained first, the center of the hole is obtained, and then the nearest point from the point to all points of the hole is obtained, and the distance between the two points is the aperture radius, so as to obtain the aperture radius.
Step S403": and establishing a reference plane through the main positioning hole and the auxiliary positioning hole, and acquiring a normal vector of the reference plane.
In a specific implementation, a reference plane can be established through the main positioning hole and the auxiliary positioning hole, and a normal vector of the reference plane is obtained.
Step S404": and taking the normal vector as a ray direction to radiate an object in assembly, and determining the matching part of the hole.
It should be noted that, all objects in the assembly can be traversed, in the traversing process, the center points of the main positioning hole and the auxiliary positioning hole are respectively used as the starting points of rays, and the normal vector is used as the ray direction to carry out rays on all objects in the assembly, so as to determine the matching parts of the holes.
In particular, it may be determined whether an object in assembly is hit or not, and if hit and the centre point of the hole is within the object, the object is a mating part of the hole.
Step S405": a radius of the mating component is obtained.
In specific implementation, the radius of the matching component can be obtained, specifically, the center point of the hole is set as a point, and any direction of the reference plane is the radial direction, so that the surface of the matching component is obtained, the minimum distance between the center point and the surface of the matching component is obtained, and the minimum distance is taken as the radius of the matching component.
Step S406": and obtaining a dimension detection result according to the aperture radius and the radius of the matching component.
It will be appreciated that the calculation may be based on the aperture radius and the radius of the mating component to obtain a dimensional measurement.
In a specific implementation, the radius difference may be obtained by subtracting the radius of the mating component from the radius of the aperture, and multiplying the radius difference by 2 to obtain the final dimension measurement. The size detection value may be compared with a standard size value to determine a size detection result, which is a size detection passing or a size detection failing, for example, the size detection value is equal to or smaller than the standard size value, and the size detection result is a size detection passing. If the size detection value is larger than the standard size value, determining that the size detection result is that the size detection is not passed.
In the embodiment, when the item to be detected is size detection of a part positioning structure, a first aperture of the main positioning hole and a second aperture of the auxiliary positioning hole are obtained; obtaining an aperture radius according to the first aperture and the second aperture; establishing a reference plane through the main positioning hole and the auxiliary positioning hole, and acquiring a normal vector of the reference plane; taking the normal vector as a ray direction to radiate an object in assembly, and determining a matching part of the hole; acquiring the radius of the matching component; and obtaining a dimension detection result according to the aperture radius and the radius of the matched part, so that the dimension automatic detection of the part positioning structure can be realized, and the detection range and efficiency are improved.
Referring to fig. 12, fig. 12 is a flowchart of a fifth embodiment of an automatic detection method for a positioning structure according to the present invention.
Based on the above-mentioned first embodiment, the step S40 of the method for automatically detecting a positioning structure according to this embodiment includes:
step S401' ": and when the item to be detected is the axle center detection of the part positioning structure, determining the type of the hole to be detected.
It should be noted that, when the item to be detected is the axle center detection of the part positioning structure, the type of the hole to be detected can be determined first. The detection type of the hole to be detected can be round holes, approximate round holes or non-round holes, the specific judgment mode is that firstly, the center point of the auxiliary positioning hole is obtained, the minimum and maximum distances from the center point to all sides of the hole are obtained, whether the difference value between the maximum distance and the minimum distance is 0.1 or not is judged, if the difference value is smaller than 0.1, the hole is considered to be the round hole, the axle center is detected to be qualified, and if the difference value is not smaller than 0.1, the included angle between the center point and the hole is required to be judged.
Step S402' ": and when the type is a round hole, establishing a reference plane by the main positioning hole, and acquiring a normal vector of the reference plane.
In specific implementation, if the type of the hole to be detected is a round hole, a reference plane is established by the main positioning hole, and a normal vector of the established reference plane is obtained.
Step S403' ": and acquiring a first center point of the main positioning hole and a second center point of the auxiliary positioning hole.
In a specific implementation, the first center point of the main positioning hole and the second center point of the auxiliary positioning hole can be obtained in a containing block mode.
Step S404' ": and acquiring target points which meet the preset distance with the first center point and the second center point.
It should be noted that, the preset distance is the maximum distance from the second center point to the hole edge, and the target point is the maximum distance from the second center point to the hole edge.
Step S405' ": and projecting the target point, the first central point and the second central point onto the reference plane according to the normal vector, and connecting the first central point, the second central point and the target point projected onto the reference plane to obtain a first straight line and a second straight line.
It will be appreciated that the first center point, the second center point, and the target point may be projected onto the reference plane according to a normal vector of the reference plane, and the second center point projected onto the reference plane may be connected to the first center point and the target point, respectively, as shown in fig. 13, and fig. 13 is a schematic diagram connecting the second center point to the first center point and the target point, respectively, so as to form a first straight line and a second straight line.
Step S406' ": and detecting the axle center of the automatic detection of the part positioning structure based on the first straight line and the second straight line.
The axial detection result can be obtained by detecting the axis of the automatic detection of the part positioning structure based on the first line and the second line.
Optionally, the step of performing axle center detection for automatic detection of the part positioning structure based on the first line and the second line specifically includes: acquiring an included angle value between the first straight line and the second straight line; comparing the included angle value with a preset included angle value; and (5) finishing the axle center detection of the automatic detection of the part positioning structure according to the comparison result.
It can be understood that the included angle value between the first straight line and the second straight line can be obtained, and the included angle value is compared with the preset included angle value, so that the automatic detection of the axis of the part positioning structure is completed according to the comparison result, and the comparison result can be that the included angle value is larger than the preset included angle value, and the included angle value is smaller than or equal to the preset included angle value.
And when the included angle value is smaller than or equal to a preset included angle value, determining that the axle center in the part positioning structure is qualified in detection, and when the included angle value is larger than the preset included angle value, determining that the axle center in the part positioning structure is unqualified in detection.
In the embodiment, when the item to be detected is the axle center detection of the part positioning structure, the type of the hole to be detected is determined; when the type is a round hole, a reference plane is established by the main positioning hole, and a normal vector of the reference plane is obtained; acquiring a first center point of the main positioning hole and a second center point of the auxiliary positioning hole; acquiring target points which meet the preset distance with the first center point and the second center point; projecting the target point, the first central point and the second central point onto the reference plane according to the normal vector, and connecting the first central point, the second central point and the target point projected onto the reference plane to obtain a first straight line and a second straight line; and the axle center detection of the automatic detection of the part positioning structure is carried out based on the first straight line and the second straight line, so that the automatic axle center detection of the part positioning structure can be realized, and the detection range and the detection efficiency are improved.
Referring to fig. 14, fig. 14 is a block diagram of a first embodiment of an automatic positioning structure detecting device according to the present invention.
As shown in fig. 14, the automatic detection device for a positioning structure according to the embodiment of the present invention includes:
a determining module 10, configured to determine a detection type when detecting the part positioning structure.
And a selection module 20 for selecting the main positioning hole and the auxiliary positioning hole according to the detection type.
And the acquisition module 30 is used for acquiring the item to be detected by the part positioning structure.
The detection module 40 is configured to automatically detect a part positioning structure of the item to be detected based on the main positioning hole and the auxiliary positioning hole.
In the embodiment, the detection type is determined when the part positioning structure is detected; selecting a main positioning hole and an auxiliary positioning hole according to the detection type; acquiring a to-be-detected item detected by a part positioning structure; the main positioning hole and the auxiliary positioning hole are used for automatically detecting the part positioning structure of the item to be detected, so that the positioning structure can be quickly and accurately detected, and the detection accuracy and efficiency are improved.
In an embodiment, the detecting module 40 is further configured to establish a reference plane with the main positioning hole when the item to be detected is hole pitch detection of the part positioning structure; acquiring a first center point of the main positioning hole and a second center point of the auxiliary positioning hole; projecting the first center point and the second center point onto the reference plane respectively, and obtaining hole spacing between the first center point and the second center point; and detecting the hole spacing to finish automatic detection of the part positioning structure.
In an embodiment, the detection module 40 is further configured to connect the first center point and the second center point to obtain a first straight line; performing point distribution on the first straight line, performing rays on the position of the main positioning hole at the point distribution position, and recording a target point meeting the ray position; and calculating the ratio of the hole spacing to the target point, and determining whether the part positioning holes meet the requirement according to the ratio to finish automatic detection of the part positioning structure.
In an embodiment, the detecting module 40 is further configured to use the primary positioning Kong Jianli as a first reference plane and the auxiliary positioning Kong Jianli as a second reference plane when the item to be detected is the direction and the profile of the component positioning structure; respectively acquiring a first normal vector of the first reference plane and a second normal vector of the second reference plane; detecting whether the first normal vector is parallel to the second normal vector; and (5) finishing automatic detection of the part positioning structure according to the detection result.
In an embodiment, the detecting module 40 is further configured to obtain a first aperture of the main positioning hole and a second aperture of the auxiliary positioning hole when the item to be detected is size detection of the part positioning structure; obtaining an aperture radius according to the first aperture and the second aperture; establishing a reference plane through the main positioning hole and the auxiliary positioning hole, and acquiring a normal vector of the reference plane; taking the normal vector as a ray direction to radiate an object in assembly, and determining a matching part of the hole; acquiring the radius of the matching component; and obtaining a dimension detection result according to the aperture radius and the radius of the matching component.
In an embodiment, the detecting module 40 is further configured to determine a type of the hole to be detected when the item to be detected is the axial center detection of the part positioning structure; when the type is a round hole, a reference plane is established by the main positioning hole, and a normal vector of the reference plane is obtained; acquiring a first center point of the main positioning hole and a second center point of the auxiliary positioning hole; acquiring target points which meet the preset distance with the first center point and the second center point; projecting the target point, the first central point and the second central point onto the reference plane according to the normal vector, and connecting the first central point, the second central point and the target point projected onto the reference plane to obtain a first straight line and a second straight line; and detecting the axle center of the automatic detection of the part positioning structure based on the first straight line and the second straight line.
In an embodiment, the detection module 40 is further configured to obtain an angle value between the first line and the second line; comparing the included angle value with a preset included angle value; and (5) finishing the axle center detection of the automatic detection of the part positioning structure according to the comparison result.
In addition, the embodiment of the invention also provides a storage medium, wherein the storage medium stores a positioning structure automatic detection program, and the positioning structure automatic detection program realizes the steps of the positioning structure automatic detection method when being executed by a processor.
Because the storage medium adopts all the technical schemes of all the embodiments, the storage medium has at least all the beneficial effects brought by the technical schemes of the embodiments, and the description is omitted here.
It should be understood that the foregoing is illustrative only and is not limiting, and that in specific applications, those skilled in the art may set the invention as desired, and the invention is not limited thereto.
It should be noted that the above-described working procedure is merely illustrative, and does not limit the scope of the present invention, and in practical application, a person skilled in the art may select part or all of them according to actual needs to achieve the purpose of the embodiment, which is not limited herein.
In addition, technical details not described in detail in the present embodiment may refer to the automatic detection method for a positioning structure provided in any embodiment of the present invention, which is not described herein.
Furthermore, it should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. Read Only Memory)/RAM, magnetic disk, optical disk) and including several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.
Claims (10)
1. The automatic detection method for the positioning structure is characterized by comprising the following steps of:
when detecting the part positioning structure, determining the detection type;
selecting a main positioning hole and an auxiliary positioning hole according to the detection type;
acquiring a to-be-detected item detected by a part positioning structure;
and automatically detecting the part positioning structure of the item to be detected based on the main positioning hole and the auxiliary positioning hole.
2. The automatic inspection method of positioning structure according to claim 1, wherein said automatic inspection of the positioning structure of the item to be inspected based on the main positioning hole and the auxiliary positioning hole comprises:
when the item to be detected is hole spacing detection of a part positioning structure, a reference plane is established by the main positioning hole;
acquiring a first center point of the main positioning hole and a second center point of the auxiliary positioning hole;
projecting the first center point and the second center point onto the reference plane respectively, and obtaining hole spacing between the first center point and the second center point;
and detecting the hole spacing to finish automatic detection of the part positioning structure.
3. The automated inspection method of a positioning structure of claim 2, wherein said detecting the hole spacing to accomplish the automated inspection of the positioning structure of the part comprises:
connecting the first center point with the second center point to obtain a first straight line;
performing point distribution on the first straight line, performing rays on the position of the main positioning hole at the point distribution position, and recording a target point meeting the ray position;
and calculating the ratio of the hole spacing to the target point, and determining whether the part positioning holes meet the requirement according to the ratio to finish automatic detection of the part positioning structure.
4. The automatic inspection method of positioning structure according to claim 1, wherein said automatic inspection of the positioning structure of the item to be inspected based on the main positioning hole and the auxiliary positioning hole comprises:
when the item to be detected is the direction and the profile detection of the part positioning structure, a first datum plane is used for main positioning Kong Jianli, and a second datum plane is used for auxiliary positioning Kong Jianli;
respectively acquiring a first normal vector of the first reference plane and a second normal vector of the second reference plane;
detecting whether the first normal vector is parallel to the second normal vector;
and (5) finishing automatic detection of the part positioning structure according to the detection result.
5. The automatic inspection method of positioning structure according to claim 1, wherein said automatic inspection of the positioning structure of the item to be inspected based on the main positioning hole and the auxiliary positioning hole comprises:
when the item to be detected is size detection of a part positioning structure, a first aperture of the main positioning hole and a second aperture of the auxiliary positioning hole are obtained;
obtaining an aperture radius according to the first aperture and the second aperture;
establishing a reference plane through the main positioning hole and the auxiliary positioning hole, and acquiring a normal vector of the reference plane;
taking the normal vector as a ray direction to radiate an object in assembly, and determining a matching part of the hole;
acquiring the radius of the matching component;
and obtaining a dimension detection result according to the aperture radius and the radius of the matching component.
6. The automatic inspection method of positioning structure according to claim 1, wherein said automatic inspection of the positioning structure of the item to be inspected based on the main positioning hole and the auxiliary positioning hole comprises:
when the item to be detected is the axle center detection of the part positioning structure, determining the type of the hole to be detected;
when the type is a round hole, a reference plane is established by the main positioning hole, and a normal vector of the reference plane is obtained;
acquiring a first center point of the main positioning hole and a second center point of the auxiliary positioning hole;
acquiring target points which meet the preset distance with the first center point and the second center point;
projecting the target point, the first central point and the second central point onto the reference plane according to the normal vector, and connecting the first central point, the second central point and the target point projected onto the reference plane to obtain a first straight line and a second straight line;
and detecting the axle center of the automatic detection of the part positioning structure based on the first straight line and the second straight line.
7. The method of automatic inspection of a positioning structure according to claim 6, wherein the detecting of the axis of the automatic inspection of the positioning structure of the part based on the first straight line and the second straight line includes:
acquiring an included angle value between the first straight line and the second straight line;
comparing the included angle value with a preset included angle value;
and (5) finishing the axle center detection of the automatic detection of the part positioning structure according to the comparison result.
8. The utility model provides a location structure automatic checkout device which characterized in that, location structure automatic checkout device includes:
the determining module is used for determining the detection type when detecting the part positioning structure;
the selection module is used for selecting a main positioning hole and an auxiliary positioning hole according to the detection type;
the acquisition module is used for acquiring items to be detected, which are detected by the part positioning structure;
and the detection module is used for automatically detecting the part positioning structure of the item to be detected based on the main positioning hole and the auxiliary positioning hole.
9. A positioning structure automatic detection apparatus, characterized in that the positioning structure automatic detection apparatus comprises: a memory, a processor, and a localization-structure-automatic-detection program stored on the memory and executable on the processor, the localization-structure-automatic-detection program configured to implement the localization-structure-automatic-detection method of any one of claims 1 to 7.
10. A storage medium, wherein a positioning structure automatic detection program is stored on the storage medium, and when executed by a processor, the positioning structure automatic detection program realizes the positioning structure automatic detection method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311579564.0A CN117664045A (en) | 2023-11-22 | 2023-11-22 | Automatic detection method, device, equipment and storage medium for positioning structure |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311579564.0A CN117664045A (en) | 2023-11-22 | 2023-11-22 | Automatic detection method, device, equipment and storage medium for positioning structure |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117664045A true CN117664045A (en) | 2024-03-08 |
Family
ID=90079985
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311579564.0A Pending CN117664045A (en) | 2023-11-22 | 2023-11-22 | Automatic detection method, device, equipment and storage medium for positioning structure |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117664045A (en) |
-
2023
- 2023-11-22 CN CN202311579564.0A patent/CN117664045A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7433797B2 (en) | Method for verifying scan precision of a laser measurement machine | |
Lalehpour et al. | Adaptive data reduction with neighbourhood search approach in coordinate measurement of planar surfaces | |
US7194387B1 (en) | Apparatus and method for determining the minimum zone for an array of features with a true position tolerance | |
CN112556625B (en) | Method, device and equipment for measuring angle of hub mounting surface and storage medium | |
CN112361958B (en) | Line laser and mechanical arm calibration method | |
Ren et al. | A task specific uncertainty analysis method for least-squares-based form characterization of ultra-precision freeform surfaces | |
CN110823156B (en) | Measuring method, device and equipment for curved surface part and storage medium | |
CN117664045A (en) | Automatic detection method, device, equipment and storage medium for positioning structure | |
CN106154980B (en) | Consider the detection method and system in the detection path that false boss and part soma relate to | |
US11781932B2 (en) | Product imbalance analysis methods and related systems and apparatuses | |
CN115597524A (en) | Hole axis perpendicularity error measuring method, device and equipment | |
CN111861123B (en) | Identifiable performance evaluation method, identifiable performance evaluation system and identifiable storage medium applicable to five-axis machine tool | |
CN113345005A (en) | Finite random search method suitable for target ball center resolving | |
CN113870275A (en) | Rivet expansion amount detection method and device, storage medium and equipment | |
CN117282995B (en) | Method for detecting and processing machining allowance of space spinning box bottom and electronic equipment | |
CN107818582B (en) | Detection system and method for full-automatically identifying carrier tape reel angle and bar code information | |
CN113899280B (en) | Blisk blade four-axis linkage scanning path planning method and system | |
CN116070972B (en) | Method and device for spot inspection of automobile parts, electronic equipment and storage medium | |
Hodgson et al. | Evaluation of cylindricity using combinatorics | |
Tian et al. | Automatically pick fiducial markers in electron tomography tilt images | |
CN117952565B (en) | BIM model-based intelligent management method and system for fabricated building | |
Wu et al. | Effects of measuring instrument and measuring points on circular coordinate measurement precision | |
Zhao et al. | Position measurement of the hole group based on point cloud registration algorithm | |
CN114491953A (en) | Method and device for automatically correcting and detecting workpiece | |
CN117781934A (en) | Method for detecting roundness of pipe fitting after welding, electronic equipment and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |