An online detection system for assembly accuracy of body-in-white cover assembly line
Through the combination of collaborative manipulators and contour measuring instruments, non-contact online inspection of the body-in-white cover assembly line is achieved, which solves the problems of long manual measurement time and deviation, and improves inspection accuracy and efficiency.
Patent Information
- Application Number
- CN202210746236.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-28
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-06-28
AI Technical Summary
In the existing technology, manual use of vernier calipers to measure the gaps and steps of the body-in-white cover assembly requires contact with the body, which can easily lead to scratches, measurement deviations and is time-consuming, making online detection impossible.
A collaborative manipulator is used to drive the contour measuring instrument for non-contact measurement. The contour image data is processed through the workstation to obtain the gaps and steps of the assembled body-in-white, and the results are fed back through the display screen to achieve online inspection.
It improves the measurement efficiency and accuracy, avoids car body scratches during manual measurement, realizes non-contact online detection, and ensures the accuracy of measurement values.
Smart Images

Figure CN115014238B
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of body-in-white online detection, and in particular to an assembly accuracy online detection system for a body-in-white cover assembly line. Background Art
[0002] The welding manufacturing process of the car body-in-white consists of multiple sub-assemblies and multiple levels, such as the bottom plate, side panels, and overall assembly. During the welding process, unstable tooling positioning, deformation of welding parts, dimensional deviation of stamped parts, accumulation of design tolerances, and welding operation errors may all cause dimensional deviations of the body-in-white, leading to difficulties in subsequent vehicle assembly and affecting the appearance and matching performance of the vehicle. Therefore, it is necessary to test the accuracy of the five-door and one-hood body-in-white after assembly. The existing inspection mainly uses a vernier caliper to manually measure the gap and step difference of the assembly. The body needs to be touched during measurement, which can easily scratch the body. The measurement will vary from person to person and cause measurement deviations. The measurement is time-consuming and cannot be performed online. Summary of the invention
[0003] The purpose of the present invention is to solve the technical problems that when manually measuring the gap and step difference of the assembly using a vernier caliper, the body needs to be touched during measurement, which can easily scratch the body, the measurement will cause measurement deviations due to individual differences, the measurement is time-consuming, and online detection cannot be performed. The present invention provides an online detection system for the assembly accuracy of a body-in-white cover assembly line.
[0004] In order to achieve the above-mentioned purpose, the present invention specifically adopts the following technical solutions:
[0005] An online detection system for assembly accuracy of a body-in-white cover assembly line includes a collaborative manipulator, a contour measuring instrument arranged on the collaborative manipulator, a workstation, and a display screen, wherein:
[0006] The collaborative robot is used to obtain the moving speed of the body in white and drive the contour measuring instrument to move together with the body in white;
[0007] A contour measuring instrument is used to collect contour image data of predetermined points of the assembled body-in-white and transmit the contour image data to the workstation;
[0008] Workstation, used to process the contour image data and obtain the gap and step difference of the assembled body in white;
[0009] Display screen, used to show the gaps and steps of the body in white.
[0010] Furthermore, an encoder is included, and the encoder is used to obtain the moving speed of the traction chain that transports the body in white, so as to obtain the moving speed of the body in white.
[0011] Furthermore, the collaborative robot is provided with a visual guidance device, which takes a photo of the body-in-white, and after taking the photo, performs a benchmark comparison with a pre-stored standard photo to perform precise positioning.
[0012] Furthermore, it also includes a laser rangefinder, which is used to identify whether the body in white enters the precision online detection station.
[0013] Furthermore, a scanner is included, and the scanner is used to obtain the ID of the white body and transmit the ID to the workstation.
[0014] Furthermore, the workstation includes a gap positioning and measurement module, a straight line fitting module, an anchor point correction module, and a data conversion module;
[0015] The gap positioning and measurement module is used to filter the contour image and locate the pixel position of the gap according to the most obvious gradient descent and ascent at the outermost edge; the top and bottom points of the two sides of the gap are used as anchor points, and the gap is determined by the average distance of the anchor points in the X direction;
[0016] The straight line fitting module takes the two anchor points on the left and right sides of the gap as the starting points, and fitLineLength as the fitting data length. It takes fitLineLength continuous height data of the contour image to fit the straight line to obtain the slope of the fitted straight line; takes stride as the step length, translates along the X-axis direction, calculates the slope once each translation, obtains the slope vector, and counts the value with the highest slope occurrence frequency as the slope of the anchor surface of the inclined surface; takes the fitting straight lines of the left and right slopes closest to the gap as extension lines l1 and l2 respectively, takes the midpoint of the gap as the reference point for the segment difference measurement, and calculates the height difference h between the extension lines l1 and l2 as the segment difference;
[0017] Anchor point correction module, used for the slope of the straight line fitted at the anchor point is greater than K th When , translate the anchor point until the slope of the fitting line is less than K th , then stop and use this as the new anchor point position to recalculate the gap and segment difference;
[0018] The data conversion module converts the pixel distance of the gap and step difference into the actual distance and outputs the actual distance of the gap and step difference.
[0019] Furthermore, the workstation also includes an image data conversion module for normalizing the contour image input to the gap positioning and measurement module.
[0020] Furthermore, the gap positioning and measurement module is used to select the color gamut of the contour image to confirm the position of the laser beam; convert the contour image into a grayscale image to confirm the gap position; determine whether the laser beams L1 and L2 intersect, and if they do intersect, obtain the angle between the laser beams L1 and L2, and obtain the relative posture of the contour measuring instrument and the body in white based on the angle.
[0021] Furthermore, the collaborative manipulator is electrically connected to the workstation through a robot control cabinet, and the workstation controls the collaborative manipulator to adjust the posture of the contour measuring instrument through the robot control cabinet according to the relative posture, and controls the contour measuring instrument to adjust the posture according to the relative posture.
[0022] Furthermore, it also includes an emergency stop button electrically connected to the robot control cabinet, and the emergency stop button is used for emergency braking of the collaborative manipulator.
[0023] The beneficial effects of the present invention are as follows:
[0024] The present invention discloses an online detection system for assembly accuracy of a body-in-white cover assembly line. The system obtains the moving speed of the body-in-white through a collaborative robot and moves together with the body-in-white. The contour measuring instrument on the collaborative robot performs contactless measurement on the gap and step difference of the assembled body. The obtained contour image is then calculated and processed by a workstation to obtain actual measurement data, which is displayed on a display screen for easy feedback to an operator to guide the operator to perform manual repairs, thereby greatly improving measurement efficiency. No positioning or stopping measurement is required, and online detection is achieved, thereby ensuring the accuracy of the measurement value and improving detection accuracy. The contactless measurement of the equipment eliminates scratches on the body during manual measurement. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 It is a schematic diagram of the system framework of the present invention;
[0026] Figure 2 It is another schematic diagram of the system framework of the present invention;
[0027] Figure 3 It is a schematic diagram of the workstation framework of the present invention;
[0028] Figure 4 is a schematic diagram of gap positioning of the present invention;
[0029] Figure 5 It is a straight line fitting schematic diagram of the present invention;
[0030] Figure 6 It is a schematic diagram of step difference measurement of the present invention;
[0031] Figure 7 It is a schematic diagram of anchor point positioning error of the present invention. DETAILED DESCRIPTION
[0032] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0033] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0034] Example 1
[0035] like Figure 1 As shown, this embodiment provides an online detection system for assembly accuracy of a body-in-white cover assembly line, including a collaborative robot, a contour measuring instrument arranged on the collaborative robot, a workstation, and a display screen, wherein:
[0036] The collaborative robot is used to obtain the moving speed of the body in white and drive the contour measuring instrument to move together with the body in white;
[0037] A contour measuring instrument is used to collect contour image data of predetermined points of the assembled body-in-white and transmit the contour image data to the workstation;
[0038] Workstation, used to process the contour image data and obtain the gap and step difference of the assembled body in white;
[0039] Display screen, used to show the gaps and steps of the body in white.
[0040] The working principle of the present invention is as follows: the collaborative manipulator obtains the moving speed of the body-in-white, and the collaborative manipulator moves together with the body-in-white according to the moving speed of the body-in-white. The contour measuring instrument set on the collaborative manipulator collects contour image data of the predetermined points of the assembled body-in-white, and transmits the collected contour image data to the workstation. The workstation is provided with a software algorithm, and the contour image data is processed by the software algorithm to obtain the gap and step difference of the assembled body-in-white, and the gap and step difference of the assembled body-in-white are displayed on the display screen. It is convenient to give feedback to the operator, guide the operator to perform manual repair, greatly improve the measurement efficiency, and realize online detection without positioning and stopping measurement, which ensures the accuracy of the measurement value and improves the detection accuracy. Through the non-contact measurement of the equipment, the scratches on the body during manual measurement are eliminated.
[0041] Example 2
[0042] On the basis of Example 1, Figure 2 As shown, an encoder is also included, and the encoder is used to obtain the moving speed of the traction chain that transports the white body, so as to obtain the moving speed of the white body.
[0043] In this embodiment, the moving speed of the traction chain is the moving speed of the BIW. The moving speed of the traction chain used to transport the BIW is obtained through an encoder, which facilitates the real-time acquisition of the moving speed of the BIW through the encoder and transmission to the collaborative robot.
[0044] Example 3
[0045] On the basis of Example 1, Figure 2 As shown, the collaborative robot is provided with a visual guidance device, which takes a photo of the body-in-white, and after taking the photo, performs a benchmark comparison with a pre-stored standard photo to perform precise positioning.
[0046] In this embodiment, a visual guidance device is provided on the collaborative robot. The visual guidance device can use a camera to capture the image of the white body through the camera, call the pre-stored standard photo and the image of the white body for benchmark comparison, determine whether it is a predetermined point, and realize the precise positioning of the contour measuring instrument.
[0047] Example 4
[0048] On the basis of Example 1, Figure 2 As shown, it also includes a laser rangefinder, which is used to identify whether the body in white has entered the precision online detection station.
[0049] In this embodiment, a laser rangefinder is provided to obtain the distance between the BIW and the precision online inspection station, thereby identifying whether the BIW has entered the precision online inspection station and providing a signal to control the movement of the collaborative robot.
[0050] Example 5
[0051] On the basis of Example 1, Figure 2 As shown, a scanner is also included, and the scanner is used to obtain the ID of the white body and transmit the ID to the workstation.
[0052] In this embodiment, the ID of the body-in-white is obtained by a scanner and uploaded to a workstation, so that the gaps and steps of the assembled body-in-white are measured and then the corresponding body-in-white ID is assigned, so that the ID of the body-in-white is displayed on the display screen, and the gaps and steps of the assembled body-in-white are stored and then the corresponding body-in-white ID is assigned.
[0053] Example 6
[0054] On the basis of Example 1, Figure 3As shown, the workstation includes a gap positioning and measurement module, a straight line fitting module, an anchor point correction module, and a data conversion module;
[0055] The workstation also includes an image data conversion module for normalizing the contour image input to the gap positioning and measurement module;
[0056] During implementation, 16-bit precision data is normalized to 8 bits, that is, the standard image pixel width ranges from 0 to 255. The normalization formula is:
[0057]
[0058] The gap positioning and measurement module is used to filter the contour image and locate the pixel position of the gap according to the most obvious gradient descent and ascent at the outermost edge; the top and bottom points of the two sides of the gap are used as anchor points, and the gap is determined by the average distance of the anchor points in the X direction;
[0059] In implementation, since the gaps are distributed vertically in the image, the normalized image is filtered using a first-order filter kernel <-1,-1,1,1> of [1,4] in the x direction. The filter uses the filter2D function of OpenCV. The filtered image clearly shows a banded gradient distribution at the edge. By using the most obvious gradient descent and ascent at the outermost edge, that is, the characteristic of the largest gradient value, the pixel position where the gap is located can be easily located. The minimum judgment threshold of the gradient value is edgeThresh=3. Figure 4 As shown in the figure, the positioning is represented by the top and bottom two points of the two sides of the gap, a total of 4 points, these 4 points are collectively called anchor points, and are denoted by A. i The above picture is rendered by the actual anchor point on the original picture. The actual gap data is based on the anchor point, that is, the average distance of the anchor point in the X direction: bandWidth = (|A1.x-A2.x|+|A3.x-A4.x|) / 2.
[0060] The straight line fitting module takes the two anchor points on the left and right sides of the gap as the starting points, and fitLineLength as the fitting data length. It takes fitLineLength continuous height data of the contour image to fit the straight line to obtain the slope of the fitted straight line; takes stride as the step length, translates along the X-axis direction, calculates the slope once each translation, obtains the slope vector, and counts the value with the highest slope occurrence frequency as the slope of the anchor surface of the inclined surface; takes the fitting straight lines of the left and right slopes closest to the gap as extension lines l1 and l2 respectively, takes the midpoint of the gap as the reference point for the segment difference measurement, and calculates the height difference h between the extension lines l1 and l2 as the segment difference;
[0061] During implementation, since the surface near the gap is an irregular arc connection, as shown in the figure below, in order to accurately measure the gap step difference, only the height difference relationship between the anchor points cannot accurately measure the actual height difference between the two surfaces. Therefore, according to the actual measurement method of the workers, the following method is used: Figure 5 The measurement algorithm shown in the figure shows the measurement method with a schematic diagram on the left side of the gap, and the same is true for the right side of the gap; take the anchor point found by the gap positioning and measurement module as the starting point, take fitLineLength as the fitting data length, take fitLineLength continuous height data of the actual image (here is fp16 data) to fit the straight line, and get the slope k of the fitting line i ;
[0062] With stride as the step length, translate the fitter along the X-axis direction, and the translation length is min(A i .x-fitLineLength, shiftLineLength), each time the translation is performed, the slope is calculated to obtain the slope vector:
[0063]
[0064] The value with the highest frequency of statistical slope is taken as the slope of the anchor surface of the slope:
[0065] k most =k f =most(k0, k1, k2...k i );
[0066] The same method is used to fit the right side of the gap and obtain the slope of the anchoring surface on the right side of the gap.
[0067] The slopes of the two lines closest to the gap are k most The fitting straight line is extended by l1 and l2 respectively, and the midpoint of the gap, that is, the middle point of the anchor point, is taken as the reference point for the step difference measurement. The height difference h between l1 and l2 is calculated as the step difference of the gap, as shown in Figure 6 shown.
[0068] Anchor point correction module, used for the slope of the straight line fitted at the anchor point is greater than K th When , translate the anchor point until the slope of the fitting line is less than K th , then stop and use this as the new anchor point position to recalculate the gap and segment difference;
[0069] During implementation, due to the camera imaging angle, some gap imaging data may not be "pure black" in the middle of the gap, that is, a steep gradient descent. In this case, anchor point positioning errors may occasionally occur. Anchor point positioning errors will not only affect the gap data (too small), but may also cause fitting line positioning errors, resulting in abnormal segment difference data (very large), such as Figure 7 shown.
[0070] The anchor point correction method was used. Experimental observations showed that the slope of the wrong anchor point was steep. The empirical threshold K was obtained through a large amount of field data collection and experiments. th =20, when the slope of the fitted straight line at the anchor point is greater than K th When the anchor point is translated, the process stops when the slope of the fitted line is less than this value, and uses this point as the new anchor point position, and recalculates the gap and segment difference data.
[0071] The data conversion module converts the pixel distance of the gap and step difference into the actual distance and outputs the actual distance of the gap and step difference.
[0072] During implementation, according to the pixel to actual distance conversion formula provided by KEYENCE, the actual gap and step difference data are converted using the following formula, in mm:
[0073] realbandWidth=(bandWidth1+bandWidth2)*25.0 / 1000
[0074] realheightDiff=(heightDiff1+heightDiff2) / 2*4.0 / 1000.
[0075] Example 7
[0076] On the basis of Example 6, the gap positioning and measurement module is used to select the color gamut of the contour image to confirm the position of the laser beam; convert the contour image into a grayscale image to confirm the gap position; determine whether the laser beams L1 and L2 intersect, and if they do intersect, obtain the angle between the laser beams L1 and L2, and obtain the relative posture of the contour measuring instrument and the body in white based on the angle.
[0077] During implementation, find the laser beam. Since the laser beam is purple light, use BGR2HSV in OpenCV to convert the channel to select the color gamut and confirm the position of the laser beam:
[0078] Perform expansion and corrosion on the current binary image, delete the surrounding small connected domains, and use the findContours function in Opencv to confirm the starting point pointA(x1,y1) and the end point pointB(x2,y2) of the connected domain to confirm the laser beam straight line L1: a1x+b1y+c1=0;
[0079]
[0080] Since the grayscale value of the gap in the image is low, the color image is converted into a grayscale image using the BGR2Gray function in OpenCV, and then the threshold function is used to confirm the gap position:
[0081] Perform expansion and corrosion on the current binary image, delete the surrounding small connected domains, and use the findContours function in Opencv to confirm the starting point pointC (x3, y3) and the end point pointD (x4, y4) of the connected domain to confirm the laser beam straight line L2: a2x+b2y+c2=0;
[0082]
[0083] Determine whether two lines intersect:
[0084] When L1 is perpendicular to the x-axis and L2 is inclined to the x-axis, L1 intersects L2: b1 == 0 && b2 ! = 0;
[0085] When L1 is inclined to the x-axis and L2 is perpendicular to the x-axis, L1 intersects L2: b1!=0&&b2==0;
[0086] When L1 and L2 are both inclined to the x-axis with different slopes, L1 and L2 intersect: b1! = 0 && b2! = 0 && a1 / b1! = a2 / b2.
[0087] Intersection:
[0088]
[0089] Determine the angle between two straight lines:
[0090] The intersection point p0 (x0, y0), the end point of L1 (x2, y2) and the end point of L2 (x4, y4) form a triangle, and the length of each side is:
[0091]
[0092]
[0093]
[0094] From the cosine theorem we get:
[0095]
[0096] If θ≠90, the rotation angle α=90-θ.
[0097] Example 8
[0098] On the basis of Example 7, the collaborative manipulator is electrically connected to the workstation through a robot control cabinet, and the workstation controls the collaborative manipulator through the robot control cabinet to adjust the posture of the contour measuring instrument according to the relative posture, and controls the contour measuring instrument to adjust the posture according to the relative posture.
[0099] During implementation, the workstation sends instructions to the robot control cabinet and the contour measuring instrument configured for the collaborative manipulator according to the relative posture. The robot control cabinet controls the movement of the collaborative manipulator according to the instructions, and the contour measuring instrument moves according to the instructions. The sum of the rotation angle of the collaborative manipulator and the rotation angle of the contour measuring instrument is equal to the rotation angle. It should be noted that when multiple collaborative manipulators are provided, one collaborative manipulator is configured with a robot control cabinet, and multiple robot control cabinets are configured with a general control cabinet. The workstation is electrically connected to the control cabinet, and the control cabinet is electrically connected to the robot control cabinet.
[0100] Example 9
[0101] Based on Example 8, it also includes an emergency stop button electrically connected to the robot control cabinet, and the emergency stop button is used for emergency braking of the collaborative manipulator.
[0102] In this embodiment, the collaborative robot can be braked conveniently by pressing the emergency stop button.
Claims
1. An online detection system for assembly accuracy of body-in-white cover assembly line, It is characterized in that It includes a collaborative robot, a contour measuring instrument arranged on the collaborative robot, a workstation, and a display screen, wherein: The collaborative robot is used to obtain the moving speed of the body in white and drive the contour measuring instrument to move together with the body in white; A contour measuring instrument is used to collect contour image data of predetermined points of the assembled body-in-white and transmit the contour image data to the workstation; Workstation, used to process the contour image data and obtain the gap and step difference of the assembled body in white; Display screen, used to show the gap and step difference of the body in white; The workstation includes a gap positioning and measurement module, a straight line fitting module, an anchor point correction module, and a data conversion module; The gap positioning and measurement module is used to filter the contour image and locate the pixel position of the gap according to the most obvious gradient descent and ascent at the outermost edge; the top and bottom points of the two sides of the gap are used as anchor points, and the gap is determined by the average distance of the anchor points in the X direction; The straight line fitting module takes the two anchor points on the left and right sides of the gap as the starting points, and takes fitLineLength as the fitting data length. It takes fitLineLength continuous height data of the contour image to fit the straight line to obtain the slope of the fitted straight line; takes stride as the step length, translates along the X-axis direction, calculates the slope once each translation, obtains the slope vector, and counts the value with the highest slope occurrence frequency as the slope of the anchor surface of the inclined surface; takes the fitted straight lines with the left and right slopes closest to the gap as extension lines, respectively. and , take the midpoint of the gap as the reference point for the step measurement, and calculate the extension line and The height difference h is taken as the step difference; Anchor point correction module, used for the slope of the straight line fitted at the anchor point is greater than , translate the anchor point until the slope of the fitted line is less than , then stop and use this as the new anchor point position to recalculate the gap and segment difference; The data conversion module converts the pixel distance of the gap and step difference into the actual distance and outputs the actual distance of the gap and step difference.
2. According to claim 1, an online detection system for assembly accuracy of a body-in-white cover assembly line, It is characterized in that It also includes an encoder, which is used to obtain the moving speed of the traction chain that transports the white body, so as to obtain the moving speed of the white body.
3. According to claim 1, an online detection system for assembly accuracy of a body-in-white cover assembly line, It is characterized in that The collaborative robot is provided with a visual guidance device, which takes a photo of the body-in-white, compares the photo with a pre-stored standard photo, and performs precise positioning.
4. According to claim 1, an online detection system for assembly accuracy of a body-in-white cover assembly line, It is characterized in that It also includes a laser rangefinder, which is used to identify whether the body in white has entered the precision online detection station.
5. According to claim 1, an online detection system for assembly accuracy of a body-in-white cover assembly line, It is characterized in that A scanner is also included, and the scanner is used to obtain the ID of the body in white and transmit the ID to the workstation.
6. The online detection system for assembly accuracy of a body-in-white cover assembly line according to claim 1, It is characterized in that The workstation also includes an image data conversion module for normalizing the contour image input into the gap positioning and measurement module.
7. The online detection system for assembly accuracy of a body-in-white cover assembly line according to claim 1, It is characterized in that The gap positioning and measurement module is used to select the color gamut of the contour image to confirm the position of the laser beam; convert the contour image into a grayscale image to confirm the gap position; determine whether the laser beams L1 and L2 intersect, and if they do intersect, obtain the angle between the laser beams L1 and L2, and obtain the relative posture of the contour measuring instrument and the body in white based on the angle.
8. The online detection system for assembly accuracy of a body-in-white cover assembly line according to claim 7, It is characterized in that The collaborative manipulator is electrically connected to the workstation through a robot control cabinet. The workstation controls the collaborative manipulator to adjust the posture of the contour measuring instrument through the robot control cabinet according to the relative posture, and controls the contour measuring instrument to adjust the posture according to the relative posture.
9. The online detection system for assembly accuracy of a body-in-white cover assembly line according to claim 8, It is characterized in that It also includes an emergency stop button electrically connected to the robot control cabinet, and the emergency stop button is used for emergency braking of the collaborative manipulator.
