Method and apparatus for calculating sparse pin geometric parameters by using virtual phase method
Through the combination of an area array camera and a line laser, the phase change is used to calculate the pin height and angle, which solves the error and efficiency problems of pin height detection in the existing technology, and achieves high-accuracy and efficient detection.
Patent Information
- Application Number
- PCT/CN2023/082957
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-22
- Publication Date
- 2024-09-26
AI Technical Summary
The existing technology has height errors, floating height defects and angle offset problems when detecting pin height, resulting in inaccurate and inefficient testing. Especially in the Press Fit process where the pins are slender and the nature of the array is complex, there is a lack of effective Measurement method.
Using an area array camera and line laser, the area array camera captures the bottom position of the pin, and continuously moves the laser and camera to calculate the top position of the pin. The phase change is used to calculate the pin height and angle, and the formula H=H0+f(a) is used. and H(x)=H0+H*tan(a+2*π) to achieve accurate measurement.
It improves the accuracy and efficiency of pin height detection, and can accurately identify defects such as missing parts, floating height or angled angles, overcomes the shortcomings of existing methods, and significantly improves the reliability of detection.
Smart Images

Figure CN2023082957_26092024_PF_FP
Abstract
Description
Method and device for calculating sparse needle-shaped geometric parameters using virtual phase method Technical Field
[0001] The present invention relates to the technical field of pin height testing, and more particularly to a method and device for calculating sparse pin-shaped geometric parameters using a virtual phase method. Background Art
[0002] Currently, the electronics industry utilizes the Press Fit process extensively for high-frequency and high-current interfaces (for automotive electronics and energy storage devices). Due to its minimal parasitic capacitance, the Press Fit process is used in virtually all high-frequency connectors, such as 10G optical communication interfaces and 5G communication converter board interfaces. Its high temperature and high current resistance, combined with its resistance to long-term oxidation and corrosion, has led to its widespread adoption in new energy vehicles and wind power storage power supply interfaces.
[0003] However, during this process, product quality inspection has always been done manually or through mold verification, without an accurate and reliable measurement method. The most difficult problem is testing the pin height (height error range, floating height defects, and angle offset), which will seriously affect the docking effect.
[0004] The commonly used industrial test pin height methods are as follows:
[0005] 1. Using a single laser test: Due to the array of pins, the height reference point may be submerged in the pin's shadow. Even with a single pin, the camera's F0V is insufficient due to its height, making it impossible to test, as shown in Figure 2.
[0006] 2. PSI (Phase Shifting Interferometry) testing: This technique is used on continuous surfaces and when the relative height difference does not exceed two phase widths. It is suitable for testing materials with small height differences, but it cannot test the height of thin and long pins, as shown in Figure 3.
[0007] 3. Using a single height test instrument; the sensor's test focus is difficult to accurately focus on the 0.2x0.2mm position of the pin top. If it is offset, the floating height will deviate from the reference test point. Moreover, the test is performed one by one, and there are hundreds of pins to test for a single product, which is very inefficient.
[0008] Based on this, a more reasonable and efficient method for testing pin height is urgently needed. Technical issues
[0009] The technical problem to be solved by the present invention is to provide a method for calculating sparse needle-shaped geometric parameters using a virtual phase method in response to the above-mentioned defects of the prior art, and also provide a device for calculating sparse needle-shaped geometric parameters using a virtual phase method. Technical Solutions
[0010] The technical solution used by the present invention to solve its technical problems is:
[0011] A method for calculating sparse needle geometry parameters using a virtual phase method is constructed, comprising the following steps:
[0012] Using an area array camera and a line laser, where the line laser is at an angle to the center line of the area array camera;
[0013] The area array camera captures a 2D image of the workpiece being measured and obtains the position of the bottom of the pin;
[0014] The area array camera and line laser move continuously, triggering the area array camera to take continuous photos, capturing the phase position change of the image of the laser on the object being measured each time. (At this time, adjust the height of the area array camera and line laser so that the focus of the area array camera is at the theoretical height of the object being measured.)
[0015] The phase changes of the acquired multiple image positions are synthesized into a phase image and calculated to obtain the pin top position;
[0016] The pin angle is obtained by the pin bottom position and the pin top position, and the height is calculated by the phase position.
[0017] In the method for calculating sparse needle-shaped geometric parameters using a virtual phase method according to the present invention, the phase image is calculated using the formula:
[0018] H=H0+f(a);
[0019] Where H is the measured height value, H0 is the test reference height (the height of the camera focal plane from the bottom), f(a) is the position function expansion related to the phase position, and a is the phase angle.
[0020] In the method for calculating the geometric parameters of a sparse needle shape using a virtual phase method according to the present invention, there is a continuous height relationship H(x) between the continuous phase shift and the projection using the formula:
[0021] H(x)=H0+H*tan(a+2*π);
[0022] In the method for calculating sparse needle-shaped geometric parameters using a virtual phase method described in the present invention, the test reference height is the height of a test reference plane, and the test reference plane is the camera focal plane of the area array camera.
[0023] In the method for calculating sparse needle-shaped geometric parameters using a virtual phase method described in the present invention, the phase change of the image is the expansion of continuous sinusoidal wave stripes in a plane.
[0024] In the method for calculating sparse needle-shaped geometric parameters using a virtual phase method described in the present invention, the phase change of the image is a phase change constructed by combining multiple single stripes in the same plane with position changes.
[0025] The method for calculating sparse needle-shaped geometric parameters using a virtual phase method according to the present invention further comprises:
[0026] Get the pin offset angle and / or height difference from the pin bottom position and the pin top position.
[0027] A device for calculating sparse needle-shaped geometric parameters using a virtual phase method, which is used to implement the method for calculating sparse needle-shaped geometric parameters using a virtual phase method as described above, wherein the method includes:
[0028] Area array camera, line laser, traverse unit that drives continuous movement of area array camera and line laser, trigger unit, and calculation unit;
[0029] There is an angle between the line laser and the center line of the area array camera;
[0030] The trigger unit triggers the area array camera to take pictures when the area array camera and the line laser are continuously moved by the traverse unit;
[0031] The calculation unit obtains a 2D image of the workpiece to be measured to obtain the bottom position of the stitch; obtains the phase position change of the image of the laser on the object to be measured each time the laser is photographed, synthesizes the phase changes of the multiple image positions obtained into a phase image and calculates it to obtain the top position of the stitch; obtains the stitch calculation angle through the stitch bottom position and the stitch top position, and calculates the height through the phase position. Beneficial effects
[0032] The beneficial effects of the present invention are: by applying the method of the present application, the pin height can be detected through phase changes, and the pins can be accurately tested for defects such as missing parts, floating height, or angle tilt, thereby overcoming the shortcomings of existing detection methods and greatly improving detection accuracy, reliability, and efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the present invention will be further described below with reference to the accompanying drawings and embodiments. The drawings described below are only some embodiments of the present invention. Those skilled in the art can also derive other drawings based on these drawings without inventive efforts.
[0034] FIG1 is a flow chart of a method for calculating sparse needle-shaped geometric parameters using a virtual phase method according to a preferred embodiment of the present invention;
[0035] FIG2 is a schematic diagram of an existing single laser test;
[0036] FIG3 is a schematic diagram of the existing PSI (Phase Shift Interferometry) test height;
[0037] FIG4 is a schematic diagram illustrating the height difference of a single phase interval of a method for calculating sparse needle-shaped geometric parameters using a virtual phase method according to a preferred embodiment of the present invention;
[0038] FIG5 is a schematic diagram illustrating the expansion of multiple phases of a method for calculating sparse needle-shaped geometric parameters using a virtual phase method according to a preferred embodiment of the present invention;
[0039] FIG6 is a method for calculating sparse needle-shaped geometric parameters using a virtual phase method according to a preferred embodiment of the present invention;
[0040] FIG7 is a method for calculating sparse needle-shaped geometric parameters using a virtual phase method according to a preferred embodiment of the present invention;
[0041] FIG8 is a schematic diagram of the structure of a device for calculating sparse needle-shaped geometric parameters using a virtual phase method according to a preferred embodiment of the present invention. Modes for Carrying Out the Invention
[0042] To make the purpose, technical solutions, and advantages of the embodiments of the present invention more clear, the following will be a clear and complete description of the technical solutions in the embodiments of the present invention. Obviously, the embodiments described are some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work shall fall within the scope of protection of the present invention.
[0043] The method for calculating sparse needle geometry parameters using a virtual phase method according to a preferred embodiment of the present invention, as shown in FIG1 , includes the following steps:
[0044] S01: Using an area array camera and a line laser, where the line laser is at an angle to the center line of the area array camera;
[0045] S02: The area array camera captures a 2D image of the workpiece to obtain the bottom position of the pin;
[0046] S03: The area array camera and the line laser move continuously and trigger the area array camera to take pictures continuously, and obtain the image phase position change of the laser on the object under test for each picture;
[0047] S04: synthesizing the phase changes of the acquired multiple images into a phase image and calculating the phase image to obtain the top position of the pin;
[0048] S05: Obtain the pin angle through the pin bottom position and the pin top position, and calculate the height through the phase position;
[0049] By applying the method of the present application, the pin height can be detected through phase changes, and the pins can be accurately tested for defects such as missing parts, floating height, or angle tilt. This overcomes the shortcomings of existing detection methods and greatly improves detection accuracy, reliability, and efficiency.
[0050] The height difference of a single phase interval is shown in Figure 4:
[0051] As can be seen in the figure, if point A0 is used as the theoretical reference point, the vertical projections of the three different points A1, A0, and A2 corresponding to the laser direction correspond to positions B1, B0, and B2. If we limit the maximum phase width to B1 and B2, then the height range we can test is the overlap of A1, A2, A0, and B0. This position is our reference test point and the phase π (PI) position. Positions C1, C0, and C2 are our image acquisition trigger positions. If C1-C2 are continuous image acquisition, then all height position changes from A1 to A2 can be tested. Heights outside this range cannot be tested. This is a single phase calculation.
[0052] The expanded illustration of multiple phases is shown in Figure 5:
[0053] The figure shows the phase of multiple consecutive test intervals. The bold lines are the multi-phase plane expansion areas. The tan phase function expansion shows that there is a phase variation from infinity to infinitesimal between adjacent test points. Therefore, there is also a height test range and a position variation range for the object under test. However, the reference height value of the entire calculation iteration process becomes a constant, and this constant is the same for each calculation. Therefore, the measured height value H = f(a) + H0 (reference height). f(a) is the position function expansion related to the phase position, which can be simply understood as a single phase expansion with the tan function projection position. The test reference height is the desired theoretical height. Different measured heights require adjustment of the camera focus height.
[0054] There is a continuous height relationship between the continuous phase shift and the projection:
[0055] H(x)=H0+H*tan(a+2*π).
[0056] As shown in Figures 4 and 5, a phase calculation is performed to synthesize a phase image at each phase change position. The phase change of the image can be a continuous sinusoidal wave stripe spread out on a plane, or multiple single stripes on the same plane combined with position changes to construct the phase change. Constructing a line with continuous position changes requires continuous motion triggering of the shooting position and image stitching technology. In other words, the continuous phase change of the plane is converted into position changes in the time domain. The final synthesized height difference is the same in both methods.
[0057] When the height change of the object under test does not exceed the depth of field of the top camera, the height or position change will inevitably cause the position change of the plane projection of a certain point in the continuous image. If an image width is constructed within the camera depth of field range + projection angle, and the phase change within this image width is used as a reference, then a continuous PIS data structure can be constructed by combining multiple planes of a continuous plane. If the phase difference is insufficient, multiple translations can be performed within this image width to make phase compensation.
[0058] Construct a virtual reference plane. The midpoint of the phase unwrapping is our virtual reference plane (the π (PI) point of the phase unwrapping). Preferably, the camera focal plane is used as the virtual reference plane.
[0059] The test results of applying the method of this application are shown in Figures 6 and 7:
[0060] Figure 6 shows the test results for a wide range of widths;
[0061] Figure 7 shows a partial view of the test results, where you can clearly see missing pins, floating pins, or low pin heights.
[0062] A device for calculating sparse needle-shaped geometric parameters using a virtual phase method is used to implement the method for calculating sparse needle-shaped geometric parameters using the virtual phase method as described above. As shown in FIG8 , the device includes an area array camera 1, a line laser 2, a traverse unit 3 for continuously moving the area array camera and the line laser, a trigger unit 4, and a calculation unit 5.
[0063] There is an angle between the line laser 2 and the center line of the area array camera 1;
[0064] The trigger unit 4 triggers the area array camera 1 to take pictures when the traverse unit 3 drives the area array camera 1 and the line laser 2 to move continuously;
[0065] Calculation unit 5 obtains a 2D image of the workpiece to obtain the bottom position of the pin; obtains the phase position change of the image of the workpiece to be measured each time the laser is photographed, synthesizes the phase changes of the multiple images obtained into a phase image and calculates it to obtain the top position of the pin; obtains the pin calculation angle based on the pin bottom position and the pin top position, and calculates the height based on the phase position;
[0066] By applying the method of the present application, the pin height can be detected through phase changes, and the pins can be accurately tested for defects such as missing parts, floating height, or angle tilt. This overcomes the shortcomings of existing detection methods and greatly improves detection accuracy, reliability, and efficiency.
[0067] It should be understood that those skilled in the art can make improvements or changes based on the above description, and all such improvements and changes should fall within the scope of protection of the appended claims of the present invention.
Claims
1. A method for calculating sparse needle geometry parameters using a virtual phase method, It is characterized in that The following steps are involved: An area array camera and a line laser are used, wherein the line laser and the center line of the area array camera have an angle; The area array camera captures the 2D image of the workpiece being tested and obtains the bottom position of the pin; The area array camera and the line laser move continuously and trigger the area array camera to take pictures continuously, and obtain the image phase position change of the laser on the object to be measured each time; The phase changes of the acquired multiple image positions are synthesized into a phase image and calculated to obtain the pin top position; The pin angle is obtained by the pin bottom position and the pin top position, and the height is calculated by the phase position.
2. The method for calculating sparse needle geometry parameters using a virtual phase method according to claim 1, It is characterized in that The phase image is calculated using the formula: H = H0 + f(a); Among them, H is the measured height value, H0 is the test reference height, f(a) is the position function expansion related to the phase position, and a is the phase angle.
3. The method for calculating sparse needle geometry parameters using a virtual phase method according to claim 2, It is characterized in that There is a continuous height relationship between the continuous phase shift and the projection H(x) using the formula: H(x)=H0+H*tan(a+2*π).
4. The method for calculating sparse needle geometry parameters using a virtual phase method according to claim 2 or 3, It is characterized in that The test reference height is the height of a test reference plane, and the test reference plane is the camera focal plane of the area array camera.
5. The method for calculating sparse needle geometry parameters using a virtual phase method according to any one of claims 1 to 3, It is characterized in that The phase change of the image is continuous sinusoidal wave fringes unfolding in a plane.
6. The method for calculating sparse needle geometry parameters using a virtual phase method according to any one of claims 1 to 3, It is characterized in that The phase change of the image is a phase change constructed by combining a plurality of single fringes in the same plane with position changes.
7. The method for calculating sparse needle geometry parameters using a virtual phase method according to any one of claims 1 to 3, It is characterized in that The method further comprises: Get the pin offset angle and / or height difference from the pin bottom position and the pin top position.
8. A device for calculating sparse needle geometry parameters using a virtual phase method, used to implement the method for calculating sparse needle geometry parameters using a virtual phase method as claimed in any one of claims 1 to 7, It is characterized in that It includes an area array camera, a line laser, a lateral movement unit for driving the area array camera and the line laser to move continuously, a trigger unit, and a calculation unit; There is an angle between the line laser and the center line of the area array camera; The trigger unit triggers the area array camera to take pictures when the area array camera and the line laser are continuously moved by the lateral movement unit; The calculation unit obtains a 2D image of the workpiece to be measured to obtain the bottom position of the pin; obtains the image phase position change of the laser on the object to be measured each time, synthesizes the phase changes of multiple image positions obtained into a phase image and calculates to obtain the top position of the pin; obtains the pin calculation angle through the pin bottom position and the pin top position, and calculates the height through the phase position.
Citation Information
Patent Citations
Phase unwrapping method based on geometric constraint of structured light system
CN109307483A
Device and method for detecting pin defects of industrial parts
CN109765240A
Adaptive structured light three-dimensional measurement system and method based on geometric constraint
CN110345882A
Line laser rotary scanning three-dimensional contour measurement method and device
CN113063368A
Grid projection shape measurement method and device therefor based on frequency modulation grid
JP2003254732A
