Hole alignment detection method, apparatus, and storage medium for parts assembly

By combining laser and data processing units, hole alignment detection is achieved with simplified operation and improved accuracy, solving the problems of large equipment size, high price and human factors in existing technologies. It is suitable for hole alignment detection in confined spaces.

CN115711593BActive Publication Date: 2026-03-17BEIJING MECHANICAL EQUIP INST
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-19
Publication Date
2026-03-17

AI Technical Summary

Technical Problem

Existing hole alignment inspection equipment is large, expensive, and complex to operate. Human factors affect the alignment accuracy, making it difficult to perform hole alignment inspection efficiently in confined spaces.

Method used

By combining a laser generator and receiver with a data processing unit, and through Gaussian filtering and elliptical image analysis, the operation process is simplified, the centering is automatically calculated, and the position calibration step is avoided.

Benefits of technology

It enables efficient and convenient hole alignment detection in confined spaces, improves alignment accuracy, reduces the impact of human factors, and simplifies operation procedures.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115711593B_ABST
    Figure CN115711593B_ABST
Patent Text Reader

Abstract

This invention discloses a method, apparatus, and storage medium for hole alignment detection in parts assembly. The detection method includes the following steps: First, Gaussian filtering is applied to received data to obtain an elliptical image. Then, an elliptical equation is constructed in an image coordinate system based on the elliptical image, and a coordinate transformation is performed on the obtained elliptical equation to obtain a first standard circle equation. Next, Gaussian filtering is applied to received data to obtain an irregular image curve. Five points on the irregular image curve are selected to construct an elliptical equation in an image coordinate system, and a coordinate transformation is performed on the obtained elliptical equation to obtain a second standard circle equation. The alignment degree of the first and second parts to be assembled is obtained by the length of the line connecting the centers of the first and second standard circles. This invention is suitable for alignment detection in confined spaces, the alignment operation is simple, and the alignment accuracy is not affected by the operator.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of hole alignment assembly technology, and in particular to a hole alignment detection method, device and storage medium for parts assembly. Background Technology

[0002] Alignment of rotating features is a common scenario in mechanical product assembly, such as shaft-hole alignment, shaft-shaft alignment, and hole-hole alignment. Currently, mature equipment such as laser alignment machines are available to ensure alignment accuracy when two shafts are joined. However, laser alignment machines are bulky and expensive, making them unsuitable for hole alignment inspection in confined spaces. Furthermore, existing hole alignment methods require calibration of the laser generator and receiver of the laser alignment machine before alignment, making the alignment operation complex. The operator's experience can also affect the time and accuracy required for alignment. Summary of the Invention

[0003] In view of the problems existing in the prior art, the purpose of this invention is to provide a hole alignment detection method that is suitable for alignment detection in confined spaces, has simple alignment operation, and whose alignment accuracy is not affected by the operator.

[0004] Another objective of this invention is to provide an alignment detection device for performing the above-described hole alignment method.

[0005] Another objective of this invention is to provide a storage medium for storing the above-described hole alignment method.

[0006] To achieve the above objectives, a first aspect of the present invention provides a hole alignment detection method for part assembly, utilizing a laser generating device, a laser receiving device, and a data processing unit. The hole alignment method includes the following steps:

[0007] The laser generator emits a laser into the mounting hole of the first component to be installed. The laser light passes through the mounting hole and is received by the laser receiver. The laser receiver then transmits the received data to the data processing unit.

[0008] The data processing unit performs Gaussian filtering on the received data to obtain an elliptical image, constructs an elliptical equation in the image coordinate system based on the elliptical image, and performs coordinate transformation based on the obtained elliptical equation to obtain the first standard circle equation in the orthographic projection coordinate system.

[0009] The second component to be installed is moved to the mounting hole of the first component to be installed, and a laser is emitted through the laser emitting device. The laser passes through the first and second components to be installed and is received by the laser receiving device. The received data information is transmitted to the data processing unit through the laser receiving device.

[0010] The data processing unit performs Gaussian filtering on the received data to obtain an irregular image curve. Five points on the irregular image curve are selected to construct an ellipse equation in the image coordinate system. Based on the obtained ellipse equation, a coordinate transformation is performed to obtain the second standard circle equation in the orthographic projection coordinate system.

[0011] The alignment of the first and second parts to be assembled is obtained by the length of the line connecting the centers of the first and second standard circles.

[0012] Furthermore, constructing the ellipse equation in the image coordinate system based on the elliptical image includes:

[0013] Identify the two points furthest apart on the boundary points using the ellipse boundary point data of the ellipse image;

[0014] The line connecting the two points farthest apart on the boundary points determines the x1 axis in the image coordinate system and the length of the major axis of the ellipse;

[0015] The center point O of the ellipse is determined by the center point of the major axis of the ellipse;

[0016] The Y1 axis and the length of the minor axis of the ellipse in the image coordinate system are determined by the coordinate axis passing through the center point O of the ellipse and the coordinate axis perpendicular to the major axis of the ellipse.

[0017] Construct the equation of the ellipse in image coordinates based on the lengths of its major and minor axes and its center point O.

[0018] Furthermore, the equation of the ellipse in the image coordinate system is constructed by selecting five points on the irregular image curve, including:

[0019] Select any five points from the boundary point data of the irregular image curve to determine the standard equation of the ellipse;

[0020] The X1 axis and the length of the major axis of the ellipse are determined by connecting the two farthest points in the standard equation of the ellipse.

[0021] The center point O1 of the ellipse is determined by the center point of the major axis of the ellipse.

[0022] The Y1 axis and the length of the minor axis of the ellipse in the image coordinate system are determined by the coordinate axis passing through the center point O1 of the ellipse and the coordinate axis perpendicular to the major axis of the ellipse.

[0023] Construct the equation of the ellipse in image coordinates based on the lengths of its major and minor axes and its center point O1.

[0024] A second aspect of the present invention provides a hole alignment detection device for part assembly, comprising:

[0025] The first image processing module is used to perform Gaussian filtering on the received data information to obtain an elliptical image.

[0026] The first construction module is used to construct the ellipse equation in the image coordinate system based on the ellipse image, and to perform coordinate transformation based on the obtained ellipse equation to obtain the first standard circle equation in the orthographic projection coordinate system.

[0027] The second image processing module is used to perform Gaussian filtering on the received data to obtain irregular image curves.

[0028] The second construction module is used to select five points on the irregular image curve to construct the ellipse equation in the image coordinate system, and to perform coordinate transformation based on the obtained ellipse equation to obtain the second standard circle equation in the orthographic projection coordinate system.

[0029] The detection module is used to obtain the alignment of the first and second parts to be installed by the length of the line connecting the center of the first standard circle equation and the center of the second standard circle equation.

[0030] Furthermore, the first building module includes:

[0031] The first determination submodule is used to determine the two points that are farthest apart on the boundary point using the ellipse boundary point data of the ellipse image;

[0032] The second determination submodule is used to connect the two points farthest apart on the boundary points to determine the x1 axis and the length of the major axis of the ellipse in the image coordinate system;

[0033] The third determination submodule is used to determine the center point O of the ellipse through the center point of the major axis of the ellipse;

[0034] The fourth determination submodule is used to determine the Y1 axis and the length of the minor axis of the ellipse in the image coordinate system by passing through the center point O of the ellipse and the coordinate axis perpendicular to the major axis of the ellipse.

[0035] Create a submodule to construct the ellipse equation in image coordinates based on the lengths of the major and minor axes of the ellipse and the center point O of the ellipse.

[0036] Furthermore, the second building module includes:

[0037] The first determination submodule is used to select any five points from the boundary point data of the irregular image curve to determine the standard equation of the ellipse.

[0038] The second determination submodule determines the X1 axis and the length of the major axis of the ellipse in the image coordinates by connecting the two farthest points in the standard equation of the ellipse.

[0039] The third determining submodule is used to determine the center point O1 of the ellipse through the center point of the major axis of the ellipse.

[0040] The fourth determination submodule is used to determine the Y1 axis and the length of the minor axis of the ellipse in the image coordinate system by passing through the center point O1 of the ellipse and the coordinate axis perpendicular to the major axis of the ellipse.

[0041] Create a submodule to construct the ellipse equation in image coordinates based on the lengths of the major and minor axes of the ellipse and the center point O1 of the ellipse.

[0042] A third aspect of the present invention provides a hole alignment detection device for part assembly, the hole alignment detection device comprising a memory and a processor, the memory storing at least one program instruction, the processor loading and executing the at least one program instruction to implement the hole alignment detection method of the first aspect.

[0043] A fourth aspect of the present invention provides a computer storage medium, characterized in that the memory stores at least one program instruction, which is loaded and executed by a processor to implement the hole alignment detection method as described in the first aspect.

[0044] The hole alignment detection method of the present invention does not require calibration of the placement of the laser generator and receiver. The operator only needs to move the position of the two parts to be installed to detect the alignment, simplifying the hole alignment operation steps. Furthermore, the hole alignment can be directly obtained through data processing by the data processing unit, which ensures the hole alignment accuracy and avoids the influence of human factors.

[0045] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit the invention. Attached Figure Description

[0046] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0047] Figure 1 This is a schematic diagram of a hole alignment detection system according to an embodiment of the present invention;

[0048] Figure 2 This is a schematic flowchart of a hole alignment detection method according to an embodiment of the present invention;

[0049] Figure 3 This is a schematic diagram of an elliptical image in an image coordinate system and a circular image in an orthographic projection coordinate system according to an embodiment of the present invention.

[0050] Figure 4 This is a schematic diagram of an elliptical image in an image coordinate system fitted by an irregular curve, according to an embodiment of the present invention.

[0051] Figure 5 This is a schematic diagram of the first and second elliptical images of the component to be assembled in image coordinates according to an embodiment of the present invention.

[0052] Figure 6 This is a schematic diagram showing the alignment of the first and second components to be installed according to the present invention.

[0053] Figure 7 This is a schematic diagram of a hole alignment detection device according to an embodiment of the present invention. Detailed Implementation

[0054] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, they are provided so that the invention will be more thorough and complete, and will fully convey the concept of the exemplary embodiments to those skilled in the art.

[0055] Furthermore, the described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. Numerous specific details are provided in the following description to give a full understanding of embodiments of the invention. However, those skilled in the art will recognize that the technical solutions of the invention can be practiced without one or more of the specific details, or other methods, components, apparatuses, steps, etc., can be employed. In other instances, well-known methods, apparatuses, implementations, or operations are not shown or described in detail to avoid obscuring various aspects of the invention.

[0056] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.

[0057] The flowcharts shown in the accompanying drawings are merely illustrative and do not necessarily include all content and operations / steps, nor do they necessarily have to be performed in the described order. For example, some operations / steps can be broken down, while others can be combined or partially combined; therefore, the actual execution order may change depending on the specific circumstances.

[0058] like Figure 1As shown, the hole alignment detection method of the present invention utilizes the detection system shown in the figure. This detection system includes a laser generating device 1, a laser receiving device 2, and a data processing unit. The data processing unit is connected to the laser receiving device 2 and receives data information from the laser receiving device. In this embodiment, the detection system can detect the hole alignment between the lug 3 and the rocker arm 4 shown in the figure. The lug 3 and the rocker arm 4 are usually connected by a rotating shaft to form a rotating pair. In actual production, after the holes of two products are aligned, a rotating shaft is usually inserted to fix their relative positions. When the shaft-hole clearance is small, the alignment requirements of the two holes are very high. Production personnel often rely on touch to feel the alignment of the two holes during actual operation, which poses a significant safety risk. The present invention employs a non-contact hole alignment detection method. To facilitate assembly between the lug and the rocker arm, the nominal dimensions of the hole radii on the lug and the rocker arm are equal, both being r. Since the allowance of the lug 3 and the rocker arm 4 along the axis of rotation is usually very small, the axes of rotation holes of the lug 3 and the rocker arm 4 are basically parallel. This is a clear feature that distinguishes them from other rotating bodies in the alignment process. During the hole alignment process, there is no need to judge the parallelism between the axes of the two holes.

[0059] like Figure 2 As shown, the present invention provides a hole alignment detection method for part assembly, utilizing the above-mentioned... Figure 1 The laser generator, laser receiver, and data processing unit are included in the hole alignment method, which comprises the following steps:

[0060] Step S200: The laser generator emits a laser into the mounting hole of the first component to be mounted. The laser passes through the mounting hole and is received by the laser receiver. The laser receiver then transmits the received data to the data processing unit.

[0061] Step S210: The data processing unit performs Gaussian filtering on the received data to obtain an elliptical image. Based on the elliptical image, it constructs an ellipse equation in the image coordinate system and performs coordinate transformation based on the obtained ellipse equation to obtain the equation of a first standard circle in the orthographic projection coordinate system. In this embodiment, the first component to be assembled is, for example,... Figure 1 For the middle branch ear, see the elliptical image and standard circle image obtained by the data processing unit after data processing. Figure 3 .

[0062] Step S220: Move the second component to be installed to the mounting hole of the first component to be installed, and emit a laser through the laser emitting device. The laser light passes through the first and second components to be installed and is received by the laser receiving device. The received data information is transmitted to the data processing unit through the laser receiving device. In this embodiment, the second component to be installed is, for example, a... Figure 1 The elliptical image and standard circle image obtained by the data processing unit after data processing in the middle rocker arm are shown in the image. Figure 4 .

[0063] Step S230: The data processing unit performs Gaussian filtering on the received data information to obtain an irregular image curve, selects five points on the irregular image curve to construct an ellipse equation in the image coordinate system, and performs coordinate transformation based on the obtained ellipse equation to obtain the second standard circle equation in the orthographic projection coordinate system.

[0064] Step S240: Obtain the alignment of the first and second parts to be assembled by using the length of the line connecting the center of the first standard circle equation and the center of the second standard circle equation.

[0065] Step S210, which involves constructing the ellipse equation in the image coordinate system based on the elliptical image, specifically includes:

[0066] Identify the two points furthest apart on the boundary points using the ellipse boundary point data of the ellipse image;

[0067] The line connecting the two points farthest apart on the boundary points determines the x1 axis in the image coordinate system and the length of the major axis of the ellipse;

[0068] The center point O of the ellipse is determined by the center point of the major axis of the ellipse;

[0069] The Y1 axis and the length of the minor axis of the ellipse in the image coordinate system are determined by the coordinate axis passing through the center point O of the ellipse and the coordinate axis perpendicular to the major axis of the ellipse.

[0070] Construct the equation of the ellipse in image coordinates based on the lengths of its major and minor axes and its center point O. Since the minor axis of the ellipse is the diameter of the projection hole on the first component to be assembled, the length of its major axis is *a*, and the length of its minor axis is 2*r*. Construct a coordinate system O-X1Y1 using its center and major and minor axes. The equation of the ellipse is:

[0071]

[0072] Taking the direction of the laser beam's illumination as the z-axis, the projected image of the laser beam in the orthographic coordinate system is a standard circle, expressed as:

[0073]

[0074] The image coordinate system can be transformed into the orthographic projection coordinate system O-xyz as follows:

[0075] sinθ.y + cosθ.z = 0 ②

[0076] θ is the deflection angle of the receiving surface of the laser receiving device.

[0077] From equations ① and ②, we can see that in the coordinate system O-xyz, the projection of the light column onto plane B can be expressed as:

[0078]

[0079] Then, through coordinate transformation, the coordinates of any point in the coordinate systems O-xyz and O-x'y'z' can be obtained:

[0080]

[0081] Through transformation, we can see that equation ③ is expressed in the coordinate system O-x'y'z' as follows:

[0082]

[0083] Equation ④ shows that the projection of the laser beam into the image coordinate system is an ellipse with a major axis length a = r / cosθ and a minor axis length b = r. The center O of the ellipse in the image coordinate system coincides with the center O of the standard projection circle in the orthographic projection coordinate system. A coordinate transformation is then performed on O-XY. Obtaining O-X'Y', the projection in the new coordinate system is the standard circle O1. This invention transforms the elliptical image in the image coordinate system obtained by the laser receiving device into a standard circle image in the orthographic projection coordinate system through projection coordinate transformation. Even if there is a deflection angle between the laser emitted by the laser receiving device and the laser generating device, the above processing can avoid the influence of the setting position of the laser receiving device and the laser generating device on the centering detection. Therefore, this invention eliminates the need for setting position calibration between the laser generating device and the laser receiving device before the centering operation, simplifying the centering detection operation steps.

[0084] Step S230, which involves selecting five points on an irregular image curve to construct the equation of an ellipse in the image coordinate system, specifically includes:

[0085] Select any five points from the boundary point data of the irregular image curve to determine the standard equation of the ellipse;

[0086] The X1 axis and the length of the major axis of the ellipse are determined by connecting the two farthest points in the standard equation of the ellipse.

[0087] The center point O2 of the ellipse is determined by the center point of the major axis of the ellipse.

[0088] The Y1 axis and the length of the minor axis of the ellipse in the image coordinate system are determined by the coordinate axis passing through the center point O2 of the ellipse and perpendicular to the major axis of the ellipse.

[0089] Construct the equation of the ellipse in image coordinates based on the lengths of its major and minor axes and its center point O1. Create a new curve in the O-X1Y1 coordinate system (see...). Figure 4By selecting five points on the ellipse, the standard equation of the ellipse, Ax² + Bxy + Cy² + Dx + Ey + F = 0, can be determined. Substituting the value xi into the equation, all points on the projection outline of the hole in the second component can be determined. Since the curve of the second component must lie within the elliptical projection of the first component, the y-value can be determined by taking x-values ​​within the range [-3a, 3a]. The resulting graph (xi, yi) formed by these points constitutes the new ellipse (i = 1…N). The newly obtained ellipse is then processed in the same way: determining the major and minor axes, determining the center, and performing coordinate transformation to form the standard circle O2.

[0090] In step S240, the length of the line connecting the center of the first standard circle equation and the center of the second standard circle equation is used to determine the alignment of the first and second parts to be assembled. Figure 6 As shown.

[0091] like Figure 7 As shown, a second aspect of the present invention provides a hole alignment detection device for part assembly, comprising:

[0092] The first image processing module 700 is used to perform Gaussian filtering on the received data information to obtain an elliptical image;

[0093] The first construction module 710 is used to construct the ellipse equation in the image coordinate system based on the ellipse image, and to perform coordinate transformation based on the obtained ellipse equation to obtain the first standard circle equation in the orthographic projection coordinate system.

[0094] The second image processing module 720 is used to perform Gaussian filtering on the received data information to obtain an irregular image curve.

[0095] The second construction module 730 is used to select five points on the irregular image curve to construct the ellipse equation in the image coordinate system, and perform coordinate transformation based on the obtained ellipse equation to obtain the second standard circle equation in the orthographic projection coordinate system.

[0096] The detection module 740 is used to obtain the alignment of the first and second parts to be installed by the length of the line connecting the center of the first standard circle equation and the center of the second standard circle equation.

[0097] In one embodiment of the present invention, the first construction module 710 includes:

[0098] The first determination submodule is used to determine the two points that are farthest apart on the boundary point using the ellipse boundary point data of the ellipse image;

[0099] The second determination submodule is used to connect the two points farthest apart on the boundary points to determine the x1 axis and the length of the major axis of the ellipse in the image coordinate system;

[0100] The third determination submodule is used to determine the center point O of the ellipse through the center point of the major axis of the ellipse;

[0101] The fourth determination submodule is used to determine the Y1 axis and the length of the minor axis of the ellipse in the image coordinate system by passing through the center point O of the ellipse and the coordinate axis perpendicular to the major axis of the ellipse.

[0102] Create a submodule to construct the ellipse equation in image coordinates based on the lengths of the major and minor axes of the ellipse and the center point O of the ellipse.

[0103] In one embodiment of the present invention, the second construction module 730 includes:

[0104] The first determination submodule is used to select any five points from the boundary point data of the irregular image curve to determine the standard equation of the ellipse.

[0105] The second determination submodule determines the X1 axis and the length of the major axis of the ellipse in the image coordinates by connecting the two farthest points in the standard equation of the ellipse.

[0106] The third determining submodule is used to determine the center point O1 of the ellipse through the center point of the major axis of the ellipse.

[0107] The fourth determination submodule is used to determine the Y1 axis and the length of the minor axis of the ellipse in the image coordinate system by passing through the center point O1 of the ellipse and the coordinate axis perpendicular to the major axis of the ellipse.

[0108] Create a submodule to construct the ellipse equation in image coordinates based on the lengths of the major and minor axes of the ellipse and the center point O1 of the ellipse.

[0109] In one embodiment of the present invention, a display module is further included for displaying an elliptical image in an image coordinate system and a standard circle image in an orthographic projection coordinate system. During hole alignment, the image information can be sent to the display unit for display via the display module, allowing the operator to obtain more intuitive hole projection images of the first and second workpieces to be installed, and adjust the positions of the first and second workpieces accordingly to align the holes of the two workpieces.

[0110] A third aspect of the present invention provides a hole alignment detection device for part assembly, the hole alignment detection device including a memory and a processor, the memory storing at least one program instruction, the processor loading and executing the at least one program instruction to implement the hole alignment detection method of the first aspect.

[0111] A fourth aspect of the present invention provides a computer storage medium, characterized in that the memory stores at least one program instruction, which is loaded and executed by a processor to implement the hole alignment detection method as described in the first aspect.

[0112] In summary, this invention eliminates the need for calibration of the laser generator and receiver positions. Operators only need to move the parts to be installed to check the alignment of the two parts, simplifying the hole alignment process. Furthermore, the hole alignment can be directly obtained through data processing by the data processing unit, ensuring hole alignment accuracy while avoiding the influence of human factors.

[0113] According to embodiments of the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present invention include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication component, and / or installed from a removable medium. When the computer program is executed by a central processing unit (CPU), it performs the functions defined in the system of this application.

[0114] It should be noted that the computer-readable medium shown in this invention can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this invention, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media can also be any computer-readable medium other than computer-readable storage media, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.

[0115] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0116] The modules described in the embodiments of the present invention can be implemented in software or hardware, and can also be located in a processor. The names of these modules do not necessarily limit the module itself.

[0117] It should be noted that although several modules or units of the device for performing actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to embodiments of the present invention, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.

[0118] Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of the present invention can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, portable hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, touch terminal, or network device, etc.) to execute the method according to the embodiments of the present invention.

[0119] Other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of the invention are indicated by the following claims.

[0120] It should be understood that the present invention is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.

Claims

1. A hole alignment detection method for part assembly, characterized by, The hole centering detection method comprises the following steps by using a laser generating device, a laser receiving device and a data processing unit: The laser generating device emits laser to the mounting hole of the first piece to be assembled, the laser is received by the laser receiving device through the mounting hole, and the data processing unit receives the data information from the laser receiving device; The data processing unit performs Gaussian filtering on the received data information to obtain an elliptical image, constructs an elliptical equation in the image coordinate system according to the elliptical image, and performs coordinate transformation according to the obtained elliptical equation to obtain a first standard circle equation in the orthographic coordinate system; The second piece to be assembled is moved to the mounting hole of the first piece to be assembled, the laser generating device emits laser, the laser is received by the laser receiving device through the first piece to be assembled and the second piece to be assembled, and the data processing unit receives the data information from the laser receiving device; The data processing unit performs Gaussian filtering on the received data information to obtain an irregular image curve, selects five points on the irregular image curve to construct an elliptical equation in the image coordinate system, and performs coordinate transformation according to the obtained elliptical equation to obtain a second standard circle equation in the orthographic coordinate system; The centering degree of the first piece to be assembled and the second piece to be assembled is obtained by the length of the line segment between the centers of the first standard circle equation and the second standard circle equation.

2. The bore alignment detection method of claim 1, wherein, The elliptical equation in the image coordinate system is constructed according to the elliptical image, which comprises: Two points farthest apart on the boundary points of the elliptical image are determined; The x1 axis in the image coordinate system and the length of the major axis of the ellipse are determined by the line segment connecting the two points farthest apart on the boundary points; The center point O of the ellipse is determined by the center point of the major axis of the ellipse; The Y1 axis in the image coordinate system and the length of the minor axis of the ellipse are determined by the coordinate axis perpendicular to the major axis of the ellipse and passing through the center point O of the ellipse; The elliptical equation in the image coordinate system is constructed according to the length of the major axis and the length of the minor axis of the ellipse and the center point O of the ellipse.

3. The bore alignment inspection method of claim 1, wherein, The elliptical equation in the image coordinate system is constructed by selecting five points on the irregular image curve, which comprises: The standard equation of the ellipse is determined by selecting data of any five points in the boundary point data of the irregular image curve; The x1 axis in the image coordinate system and the length of the major axis of the ellipse are determined by the line segment connecting the two points farthest apart in the standard equation of the ellipse; The center point O1 of the ellipse is determined by the center point of the major axis of the ellipse; The Y1 axis in the image coordinate system and the length of the minor axis of the ellipse are determined by the coordinate axis perpendicular to the major axis of the ellipse and passing through the center point O1 of the ellipse; The elliptical equation in the image coordinate system is constructed according to the length of the major axis and the length of the minor axis of the ellipse and the center point O1 of the ellipse.

4. A hole alignment detection device for part assembly, characterized by, The hole centering detection device comprises: A first image processing module for performing Gaussian filtering on the received data information to obtain an elliptical image; A first construction module for constructing an elliptical equation in the image coordinate system according to the elliptical image, and performing coordinate transformation according to the obtained elliptical equation to obtain a first standard circle equation in the orthographic coordinate system; The second image processing module is configured to perform Gaussian filtering on the received data information to obtain an irregular image curve; The second construction module is configured to select five points on the irregular image curve to construct an elliptic equation in an image coordinate system, and perform coordinate transformation on the obtained elliptic equation to obtain a second standard circle equation in a normal projection coordinate system; The detection module is configured to obtain the centering degree of the first and second parts to be assembled by the length of a line segment connecting the center of the first standard circle equation and the center of the second standard circle equation.

5. The bore alignment detection apparatus of claim 4, wherein, The first construction module comprises: The first determination submodule is configured to determine two points farthest apart on the boundary points of the elliptic image; The second determination submodule is configured to determine an x1 axis in the image coordinate system and a major axis length of the ellipse by connecting the two points farthest apart on the boundary points; The third determination submodule is configured to determine a center point O of the ellipse by the center point of the major axis of the ellipse; The fourth determination submodule is configured to determine a Y1 axis in the image coordinate system and a minor axis length of the ellipse by the center point O of the ellipse and a coordinate axis perpendicular to the major axis of the ellipse; The establishment submodule is configured to construct an elliptic equation in the image coordinate system according to the major axis length and the minor axis length of the ellipse and the center point O of the ellipse.

6. The bore alignment detection apparatus of claim 4, wherein, The second construction module comprises: The first determination submodule is configured to select data of any five points in the boundary point data of the irregular image curve to determine a standard equation of the ellipse; The second determination submodule is configured to determine an x1 axis in the image coordinate system and a major axis length of the ellipse by connecting the two points farthest apart in the standard equation of the ellipse; The third determination submodule is configured to determine a center point O1 of the ellipse by the center point of the major axis of the ellipse; The fourth determination submodule is configured to determine a Y1 axis in the image coordinate system and a minor axis length of the ellipse by the center point O1 of the ellipse and a coordinate axis perpendicular to the major axis of the ellipse; The establishment submodule is configured to construct an elliptic equation in the image coordinate system according to the major axis length and the minor axis length of the ellipse and the center point O1 of the ellipse.

7. A hole alignment detection device for part assembly, characterized by, The hole centering detection device comprises a memory and a processor, the memory stores at least one program instruction, and the processor loads and executes the at least one program instruction to realize the hole centering detection method in any one of claims 1-3.

8. A computer storage medium, characterized in that The computer storage medium stores at least one program instruction, and the at least one program instruction is loaded and executed by the processor to realize the hole centering detection method in any one of claims 1-3.

Citation Information

Patent Citations

  • Non-cooperative target pose processing method and device and electronic equipment

    CN115131433A

  • Apparatus, method and computer program for determining information about shape and / or location of an ellipse in a graphical image

    US20080012860A1