A vision-based rail vehicle door installation method and installation system
Through a vision-based rail vehicle door installation method, automatic door recognition and alignment are achieved using a clamping device and image processing technology, which solves the problems of low manual installation efficiency and safety hazards, and realizes efficient and safe automatic door installation.
Patent Information
- Application Number
- CN202411983351.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-09-23
- Estimated Expiration
- 2044-12-31
AI Technical Summary
In the existing technology, the installation of rail vehicle door systems mainly relies on manual methods, which leads to a large number of workers, high labor intensity, limited installation space and many safety hazards. In addition, robots find it difficult to adapt to the changing environment of the vehicle installation site.
A vision-based rail vehicle door installation method is adopted, with a clamping device equipped with an image acquisition device. Through image processing technology for coarse and precise positioning, automatic recognition and alignment of the door mechanism are achieved. The clamping module, image acquisition module, data analysis module, handling module and control module are combined to complete the automatic installation of the door.
It improves the installation efficiency of the door mechanism, reduces the labor intensity of workers, reduces safety hazards, and adapts to the changing environment of the vehicle installation site.
Smart Images

Figure CN119734267B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a vehicle door installation method and an installation system, and in particular to a rail vehicle door installation method and an installation system based on vision. Background Art
[0002] Due to the large size, heaviness, and limited installation space of rail vehicle door systems, current installation is primarily manual, requiring a large team of personnel. For example, to install the drive mechanism, a worker first removes it from its packaging, then carries it inside the train car. A worker inside the car then lifts it to the designated installation location, and finally manually aligns the mounting holes and tightens the screws. The entire installation process requires a large number of workers, resulting in high labor intensity, limited installation space, and potential safety hazards.
[0003] The rapid development of robotic control technology has made it possible for robots to replace manual labor in the installation of vehicle door systems. Currently, most robots operate in teach-in or offline modes to complete preset tasks, making them difficult to adapt to the changing environment of vehicle installation sites and maintenance sites. Summary of the Invention
[0004] Objective of the invention: The first objective of the present invention is to provide a vision-based rail vehicle door installation method that can adapt to the changing environment of the vehicle installation site and can automatically install the door.
[0005] A second object of the invention is to provide a vision-based rail vehicle door installation system.
[0006] Technical solution: The present invention discloses a vision-based rail vehicle door installation method, comprising the following steps:
[0007] S1: Build a clamping device for clamping the door mechanism and fix the image acquisition device on the clamping device;
[0008] S2: Adjust the clamping device so that it moves the door mechanism with it to a preset target position for installation of the door mechanism for rough positioning, and the acquisition device acquires image information of the hole to be installed in the door mechanism;
[0009] S3: Determine whether the acquired image information correctly contains the complete holes to be installed;
[0010] S4: If the image information correctly includes the complete hole to be installed, proceed to step S6; if the image information does not correctly include the complete hole to be installed, adjust the position of the clamping device again for precise positioning, and the acquisition device again acquires image information of the hole to be installed;
[0011] S5: Determine again whether the image information collected after precise positioning correctly includes the complete hole to be installed. If the image information correctly includes the complete hole to be installed, proceed to step S6; if the image information does not correctly include the complete hole to be installed, return to step S2;
[0012] S6: Convert and process the image information to obtain the offset between the current position of the door mechanism and the hole to be installed;
[0013] S7: adjusting the position of the clamping device in the plane in which it is located according to the offset;
[0014] S8: The acquisition device acquires image information again and determines whether the correct and complete holes to be installed are acquired;
[0015] S9: If the complete holes to be installed are correctly collected, proceed to the next step; if the complete holes to be installed are not correctly collected, return to step S2;
[0016] S10: adjusting the clamping device according to the offset so that the clamping device moves with the door mechanism along a path perpendicular to the hole to be installed toward the hole to be installed, and installing the door mechanism at the current position.
[0017] Furthermore, the acquisition device described in step S1 includes a first camera installed in the middle position of the clamping device and a second camera installed on one side of the first camera. The first camera acquires image information during fine positioning, and the second camera acquires image information during coarse positioning.
[0018] Furthermore, a Cartesian coordinate system is constructed, in which the length direction of the clamping device is parallel to the X-axis of the Cartesian coordinate system, the width direction of the clamping device is parallel to the Y-axis of the Cartesian coordinate system, the thickness direction of the clamping device is parallel to the Z-axis of the Cartesian coordinate system, and the Z-axis of the Cartesian coordinate system is perpendicular to the plane where the hole to be installed is located; when coarse positioning is performed in step S2, the clamping device moves in the plane formed by the X-axis and the Y-axis; when fine positioning is performed in step S4, the clamping device moves within the range of ±5 mm in the X-axis direction and ±15 mm in the Y-axis direction.
[0019] Furthermore, the offset in step S6 includes a movement distance Δx of the clamping device on the X axis of the Cartesian coordinate system, a movement distance Δy on the Y axis of the Cartesian coordinate system, and a movement distance Δz on the Z axis of the Cartesian coordinate system.
[0020] Furthermore, the steps for obtaining the offset in step S6 are as follows:
[0021] Preprocessing of image information;
[0022] Convert the pre-processed image information to obtain hole position information of the holes to be installed and the door mechanism installation holes;
[0023] Based on the hole position information of the hole to be installed and the door mechanism installation hole, a displacement difference between the hole to be installed and the door mechanism installation hole is calculated;
[0024] Based on the displacement difference, it is converted into the offset Δx and Δy of the clamping device in the Cartesian coordinate system.
[0025] Furthermore, the steps for obtaining the hole position information of the hole to be installed are as follows:
[0026] Use a 3×3 Gauss kernel to perform noise reduction on the collected image information;
[0027] Set the region of interest that includes the complete installation hole, use the Canny operator to perform edge detection on the denoised image information to obtain a binary image, and use the Sobel operator to calculate the neighborhood gradient of all pixels in the binary image;
[0028] Traverse the non-zero pixel points in the edge detection binary image, map the non-zero pixel points to the corresponding points in the rectangular coordinate system in the plane where the hole to be installed is located, and add 1 to the accumulator of the corresponding point;
[0029] Find the maximum value of the accumulator and obtain the polar coordinates of the point corresponding to the maximum value (ρ θ ,θ), the polar coordinates (ρ θ ,θ) is converted to the coordinates of the center of the circle (x0, y0) in the rectangular coordinate system;
[0030] Calculate the distance d between all edge pixels and the center of the circle in the binary image, sort d in ascending order to select a threshold, and find the radius r0 of the hole to be installed corresponding to the center coordinates (x0, y0); that is, establish an accumulation array T(r0), accumulate all edge pixels, and the largest T(r0) is the radius r0 of the hole to be installed corresponding to the center coordinates (x0, y0);
[0031] Save the center coordinates (x0, y0) as the reference position coordinates and the radius r0 as the reference radius.
[0032] Furthermore, the steps for obtaining the hole position information of the door mechanism mounting hole are as follows:
[0033] Use a 3×3 Gauss kernel to perform noise reduction on the collected image information;
[0034] Set a region of interest (ROI) that includes the mounting holes of the complete door mechanism, use the Canny operator to perform edge detection on the denoised image information to obtain a binary image, and use the Sobel operator to calculate the neighborhood gradient of all pixels in the binary image.
[0035] Traverse the non-zero pixel points in the edge detection binary image, map the non-zero pixel points to the corresponding points in the rectangular coordinate system in the plane where the hole to be installed is located, and add 1 to the accumulator of the corresponding point;
[0036] Find the maximum value of the accumulator and obtain the polar coordinates of the point corresponding to the maximum value (ρ θ ,θ), the polar coordinates (ρ θ ,θ) is converted to the coordinates of the center of the circle (x1, y1) in the rectangular coordinate system;
[0037] Calculate the distance d between all edge pixels and the center of the circle in the binary image, sort d in ascending order to select the threshold, and find the radius r1 of the hole to be installed corresponding to the center coordinates (x1, y1); that is, establish an accumulation array T(r1), accumulate all edge pixels, and the largest T(r1) is the radius r1 of the hole to be installed corresponding to the center coordinates (x1, y1).
[0038] Furthermore, the calculation formula of the displacement difference is as follows:
[0039] Δx'=x1-x0
[0040] Δy'=y1-y0;
[0041] Assume that the transformation matrix between the camera coordinate system of the acquisition device and the Cartesian coordinate system is E T c , and the transformation matrix E T c The way to obtain is as follows:
[0042] A chessboard calibration plate is set at a fixed position in the Cartesian coordinate system, and the coordinates of the corner points of the chessboard calibration plate in the Cartesian coordinate system are calculated using the coordinate transformation method: B t;
[0043] Based on the calibration of the internal and external parameters of the camera of the acquisition device, the coordinates of the corner points of the chessboard calibration plate in the camera coordinate system are calculated as follows: C t;
[0044] The coordinate transformation method is used to calculate the transformation matrix between the coordinate system of the driving mechanism of the clamping device and the Cartesian coordinate system: B T E ;
[0045] Transformation Matrix E T c =( B T E ) -1B t( C t) -1 , using the transformation matrix E T cThe displacement differences Δx', Δy' are converted into offsets Δx, Δy.
[0046] Furthermore, a distance meter is installed on the clamping device for measuring the distance Δz between the clamping device and the plane where the hole to be installed is located, which is the distance moved along the z-axis.
[0047] Based on the same inventive concept, the present invention also discloses a vision-based rail vehicle door installation system, comprising:
[0048] A clamping module, used for clamping the door mechanism to be installed and moving it to the installation hole of the door mechanism;
[0049] An image acquisition module is mounted on the clamping module and is used to capture images of the mounting holes and the door mechanism mounting holes during the installation process, and to measure the vertical distance between the clamping module and the plane where the mounting holes are located;
[0050] A data analysis module is used to receive the image from the image acquisition module and analyze and process the image to obtain the offset between the clamping module and the hole to be installed;
[0051] A handling module is used to adjust the position of the clamping module;
[0052] The mobile lifting platform module is used to adjust the position of the handling module and then assist in adjusting the position of the clamping module;
[0053] The control module is used to receive the offset of the data analysis module and regulate the handling module and the mobile lifting platform module according to the offset, so that the clamping module clamps the door mechanism and moves it to the hole to be installed.
[0054] Beneficial effects: Compared with the existing technology, the present invention has the following significant advantages: the present invention uses machine vision technology to identify and align the holes to be installed in the vehicle door mechanism, and guides the clamping mechanism (i.e., robot) to perform tasks such as transportation, loading, hole alignment, and installation, which is beneficial to improving the installation efficiency of the vehicle door mechanism, and can reduce the labor intensity of workers and reduce safety hazards during operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Figure 1 is a flow chart of the method of the present invention;
[0056] Figure 2 It is a structural schematic diagram of the clamping device of the present invention;
[0057] Figure 3 Schematic diagram of the offsets Δx and Δy of the method of the present invention;
[0058] Figure 4 It is a structural diagram of the system of the present invention. DETAILED DESCRIPTION
[0059] The technical solution of the present invention will be further described below with reference to the accompanying drawings.
[0060] Example 1
[0061] The present invention provides a method for installing a rail vehicle door based on vision, such as Figure 1 As shown, the following steps are included:
[0062] S1: Build a clamping device for clamping the door mechanism 6, and fix an image acquisition device on the clamping device; the acquisition device includes a first camera 3 installed in the middle of the clamping device and a second camera 4 installed on one side of the first camera 3. Figure 2 As shown, the clamping device includes a base 1 and a support arm 2 for clamping and fixing the door mechanism 6. The first camera 3 is installed on the side of the center of the base 1, and the second camera 4 is embedded and installed on the base 1, and the second camera 4 is located on one side of the base 1. During the alignment of the door mechanism 6 with the hole 7 to be installed, the camera may be blocked due to the narrow installation space of the vehicle. If one camera is used to achieve coarse positioning and fine positioning of the hole 7 to be installed, the position of the clamping device needs to be adjusted multiple times due to space limitations, which increases the steps of aligning the hole 7 to be installed and reduces the work efficiency of the entire system. In this embodiment, two cameras are provided, and the two cameras are installed at different positions on the base 1, one of which is used for coarse positioning and the other for fine positioning, which is conducive to improving the work efficiency when aligning the hole 7 to be installed.
[0063] S2: The clamping device is adjusted so that it carries the door mechanism 6 to a preset target location for installation, and performs coarse positioning. The second camera 4 captures image information of the hole 7 to be installed in the door mechanism 6. A Cartesian coordinate system is constructed, with the length of the clamping device parallel to the X-axis of the Cartesian coordinate system, the width of the clamping device parallel to the Y-axis of the Cartesian coordinate system, and the thickness of the clamping device parallel to the Z-axis of the Cartesian coordinate system, and the Z-axis of the Cartesian coordinate system is perpendicular to the plane where the hole 7 to be installed is located. During coarse positioning, the clamping device moves within the plane formed by the X-axis and the Y-axis.
[0064] S3: Determine whether the acquired image information correctly contains the complete hole 7 to be installed.
[0065] S4: If the image information correctly and completely includes the mounting hole 7, proceed to step S6. If the image information does not correctly and completely include the mounting hole 7, the position of the clamping device is adjusted again for fine positioning, and the first camera 3 again captures image information of the mounting hole 7. During fine positioning, the clamping device moves within the plane formed by the X-axis and Y-axis, with a range of ±5 mm in the X-axis direction and ±15 mm in the Y-axis direction.
[0066] S5: Determine again whether the image information collected after precise positioning correctly includes the complete hole 7 to be installed. If the image information correctly includes the complete hole 7 to be installed, proceed to step S6; if the image information does not correctly include the complete hole 7 to be installed, return to step S2.
[0067] S6: Convert the image information to obtain the offset between the current position of the door mechanism 6 and the hole to be installed 7. Figure 3 As shown, the offset includes the clamping device moving a distance Δx on the X axis of the Cartesian coordinate system, a distance Δy on the Y axis of the Cartesian coordinate system, and a distance Δz on the Z axis of the Cartesian coordinate system.
[0068] The steps for offset are as follows:
[0069] First, the image information is preprocessed; preferably, the preprocessing includes Guass filtering and grayscale processing, but is not limited to Guass filtering and grayscale processing.
[0070] Then, the pre-processed image information is converted to obtain the hole position information of the hole to be installed 7 and the door mechanism installation hole 8. The steps for obtaining the hole position information of the hole to be installed 7 are as follows:
[0071] Use a 3×3 Gauss kernel to perform noise reduction on the collected image information;
[0072] Set a region of interest that includes the complete installation hole 7, use the Canny operator to perform edge detection on the denoised image information to obtain a binary image, and use the Sobel operator to calculate the neighborhood gradient of all pixels in the binary image;
[0073] Traverse the non-zero pixel points in the edge detection binary image, map the non-zero pixel points to the corresponding points in the rectangular coordinate system in the plane where the hole 7 to be installed is located, and add 1 to the accumulator of the corresponding point;
[0074] Find the maximum value of the accumulator and obtain the polar coordinates of the point corresponding to the maximum value (ρ θ ,θ), the polar coordinates (ρ θ ,θ) is converted to the coordinates of the center of the circle (x0, y0) in the rectangular coordinate system;
[0075] Calculate the distance d between all edge pixels and the center of the circle in the binary image, sort d in ascending order to select a threshold, and find the radius r0 of the installation hole 7 corresponding to the center coordinates (x0, y0); that is, establish an accumulation array T(r0), accumulate all edge pixels, and the largest T(r0) is the radius r0 of the installation hole 7 corresponding to the center coordinates (x0, y0);
[0076] Save the center coordinates (x0, y0) as the reference position coordinates and the radius r0 as the reference radius.
[0077] The steps for obtaining the hole position information of the door mechanism mounting hole 8 are as follows:
[0078] Use a 3×3 Gauss kernel to perform noise reduction on the collected image information;
[0079] Set a region of interest that includes the mounting hole 8 of the complete door mechanism, use the Canny operator to perform edge detection on the denoised image information to obtain a binary image, and use the Sobel operator to calculate the neighborhood gradient of all pixels in the binary image;
[0080] Traverse the non-zero pixel points in the edge detection binary image, map the non-zero pixel points to the corresponding points in the rectangular coordinate system in the plane where the door mechanism mounting hole 8 is located, and add 1 to the accumulator of the corresponding point;
[0081] Find the maximum value of the accumulator and obtain the polar coordinates of the point corresponding to the maximum value (ρ θ ,θ), the polar coordinates (ρ θ ,θ) is converted to the coordinates of the center of the circle (x1, y1) in the rectangular coordinate system;
[0082] Calculate the distance d between all edge pixels and the center of the circle in the binary image. Then, sort d in ascending order and select a threshold. Then, find the radius r1 of the door mechanism mounting hole 8 corresponding to the circle center coordinates (x1, y1). This creates a cumulative array T(r1), summing all edge pixels. The largest T(r1) is the radius r1 of the door mechanism mounting hole 8 corresponding to the circle center coordinates (x1, y1). The radius r0 of the hole 7 to be mounted and the radius r1 of the door mechanism mounting hole 8 can be used to indirectly determine whether the center coordinates (x0, y0) of the hole 7 to be mounted and the center coordinates (x1, y1) of the door mechanism mounting hole 8 have been correctly identified. If the difference between the radius r0 and the radius r1 exceeds a preset value, the position of the clamping device needs to be adjusted so that the acquisition device can recapture the image information.
[0083] Based on the hole position information of the to-be-mounted hole 7 and the door mechanism mounting hole 8, the displacement difference between the to-be-mounted hole 7 and the door mechanism mounting hole 8 is calculated; the calculation formula of the displacement difference is as follows:
[0084] Δx'=x1-x0
[0085] Δy'=y1-y0;
[0086] Assume that the transformation matrix between the camera coordinate system of the acquisition device and the Cartesian coordinate system is E T c , and the transformation matrix E T cThe way to obtain is as follows:
[0087] A chessboard calibration plate is set at a fixed position in the Cartesian coordinate system, and the coordinates of the corner points of the chessboard calibration plate in the Cartesian coordinate system are calculated using the coordinate transformation method: B t;
[0088] Based on the calibration of the internal and external parameters of the camera of the acquisition device, the coordinates of the corner points of the chessboard calibration plate in the camera coordinate system are calculated as follows: C t;
[0089] The coordinate transformation method is used to calculate the transformation matrix between the coordinate system of the driving mechanism of the clamping device and the Cartesian coordinate system: B T E ;
[0090] Transformation Matrix E T c =( B T E ) -1B t( C t) -1 , using the transformation matrix E T c The displacement differences Δx', Δy' are converted into offsets Δx, Δy.
[0091] A rangefinder 5 is mounted on the clamping device to measure the distance Δz between the clamping device and the plane where the mounting hole 7 is located, i.e., the distance moved along the z-axis. Two rangefinders 5 are provided, and both are mounted on the base 1, and are located on either side of the first camera 3.
[0092] S7: adjusting the position of the clamping device in the plane according to the offset, that is, adjusting the position of the clamping device according to the offsets Δx and Δy so that the door mechanism mounting hole 8 is opposite to the hole to be mounted 7.
[0093] S8: The acquisition device acquires image information again and determines whether the correct and complete holes to be installed 7 are acquired. Preferably, the first camera 3 acquires image information again for re-precision positioning.
[0094] S9: If the complete hole 7 to be installed is correctly collected, proceed to the next step; if the complete hole 7 to be installed is not correctly collected, return to step S2.
[0095] S10: Adjust the clamping device according to the offset so that it moves with the door mechanism 6 toward the hole to be installed 7 along a path perpendicular to the hole to be installed 7, that is, adjust the position of the clamping device according to the offset Δz so that the door mechanism 6 is in contact with the position of the hole to be installed 7, and then install the door mechanism 6 at the current position.
[0096] Example 2
[0097] The present invention provides a vision-based rail vehicle door installation system, such as Figure 4 As shown, it includes a clamping module, an image acquisition module, a data analysis module, a handling module, a mobile lifting platform module and a control module.
[0098] The clamping module is used to clamp the door mechanism to be installed and move it to the installation hole of the door mechanism.
[0099] The image acquisition module is installed on the clamping module and is used to collect images of the holes to be installed and the door mechanism installation holes during the installation process, and to measure the vertical distance between the clamping module and the plane where the holes to be installed are located.
[0100] The data analysis module is used to receive the image from the image acquisition module, analyze and process the image, and calculate the offset between the clamping module and the hole to be installed.
[0101] The transport module is used to adjust the position of the clamping module. Preferably, the transport module is configured as a robotic arm, and the clamping module is mounted on a movable portion of the robotic arm.
[0102] The mobile lifting platform module is used to adjust the position of the transport module and thus assist in adjusting the position of the clamping module.
[0103] The control module is used to receive the offset of the data analysis module and regulate the handling module and the mobile lifting platform module according to the offset, so that the clamping module clamps the door mechanism and moves it to the hole to be installed.
[0104] A Cartesian coordinate system is constructed, in which the length direction of the clamping module is parallel to the X-axis of the Cartesian coordinate system, the width direction of the clamping module is parallel to the Y-axis of the Cartesian coordinate system, the thickness direction of the clamping module is parallel to the Z-axis of the Cartesian coordinate system, and the Z-axis of the Cartesian coordinate system is perpendicular to the plane where the hole to be installed is located; the clamping module moves the door mechanism to the preset target position for installing the door mechanism for coarse positioning, and the image acquisition module acquires image information of the hole to be installed of the door mechanism.
[0105] The data analysis module receives the image captured by the image acquisition module and determines whether the captured image correctly contains the complete hole to be installed; if the image correctly contains the complete hole to be installed, the data analysis module analyzes and processes the image to calculate the offset between the clamping module and the hole to be installed; if the image does not correctly contain the complete hole to be installed, the control module adjusts the transport module and the mobile lifting platform module, and accurately positions the position of the clamping module so that the clamping module moves within the plane formed by the X-axis and Y-axis, and the moving range is ±5mm in the X-axis direction and ±15mm in the Y-axis direction, and the first camera captures the image of the hole to be installed again.
[0106] The data analysis module receives the image captured again by the image acquisition module and determines whether the image correctly contains the complete hole to be installed. If the image correctly contains the complete hole to be installed, the data analysis module analyzes and processes the image to calculate the offset between the clamping module and the hole to be installed. If the image does not correctly contain the complete hole to be installed, it returns to the coarse positioning and repeats the above steps until the image captured by the image acquisition module correctly contains the complete hole to be installed.
[0107] The data analysis module analyzes and processes the image to calculate the offset between the clamping module and the hole to be installed as follows:
[0108] The offset includes a moving distance Δx of the clamping module on the X-axis of the Cartesian coordinate system, a moving distance Δy on the Y-axis of the Cartesian coordinate system, and a moving distance Δz on the Z-axis of the Cartesian coordinate system.
[0109] First, the image information is preprocessed; preferably, the preprocessing includes Guass filtering and grayscale processing, but is not limited to Guass filtering and grayscale processing.
[0110] The pre-processed image information is then converted to obtain the hole position information of the holes to be installed and the door mechanism installation holes. The steps for obtaining the hole position information of the holes to be installed are as follows:
[0111] Use a 3×3 Gauss kernel to perform noise reduction on the collected image information;
[0112] Set the region of interest that includes the complete installation hole, use the Canny operator to perform edge detection on the denoised image information to obtain a binary image, and use the Sobel operator to calculate the neighborhood gradient of all pixels in the binary image;
[0113] Traverse the non-zero pixel points in the edge detection binary image, map the non-zero pixel points to the corresponding points in the rectangular coordinate system in the plane where the hole to be installed is located, and add 1 to the accumulator of the corresponding point;
[0114] Find the maximum value of the accumulator and obtain the polar coordinates of the point corresponding to the maximum value (ρ θ ,θ), the polar coordinates (ρ θ ,θ) is converted to the coordinates of the center of the circle (x0, y0) in the rectangular coordinate system;
[0115] Calculate the distance d between all edge pixels and the center of the circle in the binary image, sort d in ascending order to select a threshold, and find the radius r0 of the hole to be installed corresponding to the center coordinates (x0, y0); that is, establish an accumulation array T(r0), accumulate all edge pixels, and the largest T(r0) is the radius r0 of the hole to be installed corresponding to the center coordinates (x0, y0);
[0116] Save the center coordinates (x0, y0) as the reference position coordinates and the radius r0 as the reference radius.
[0117] The steps for obtaining the hole position information of the door mechanism mounting holes are as follows:
[0118] Use a 3×3 Gauss kernel to perform noise reduction on the collected image information;
[0119] Set a region of interest (ROI) that includes the mounting holes of the complete door mechanism, use the Canny operator to perform edge detection on the denoised image information to obtain a binary image, and use the Sobel operator to calculate the neighborhood gradient of all pixels in the binary image.
[0120] Traverse the non-zero pixel points in the edge detection binary image, map the non-zero pixel points to the corresponding points in the rectangular coordinate system in the plane where the door mechanism mounting hole is located, and add 1 to the accumulator of the corresponding point;
[0121] Find the maximum value of the accumulator and obtain the polar coordinates of the point corresponding to the maximum value (ρ θ ,θ), the polar coordinates (ρ θ ,θ) is converted to the coordinates of the center of the circle (x1, y1) in the rectangular coordinate system;
[0122] Calculate the distance d between all edge pixels and the center of the circle in the binary image, sort d in ascending order to select the threshold, and find the radius r1 of the door mechanism mounting hole corresponding to the center coordinates (x1, y1); that is, establish a cumulative array T(r1), accumulate all edge pixels, and the largest T(r1) is the radius r1 of the door mechanism mounting hole corresponding to the center coordinates (x1, y1).
[0123] Based on the hole position information of the hole to be installed and the door mechanism installation hole, the displacement difference between the hole to be installed and the door mechanism installation hole is calculated; the calculation formula of the displacement difference is as follows:
[0124] Δx'=x1-x0
[0125] Δy'=y1-y0.
[0126] Assume that the transformation matrix between the camera coordinate system of the acquisition device and the Cartesian coordinate system is E T c , and the transformation matrix E T c The way to obtain is as follows:
[0127] A chessboard calibration plate is set at a fixed position in the Cartesian coordinate system, and the coordinates of the corner points of the chessboard calibration plate in the Cartesian coordinate system are calculated using the coordinate transformation method: B t;
[0128] Based on the calibration of the internal and external parameters of the camera of the acquisition device, the coordinates of the corner points of the chessboard calibration plate in the camera coordinate system are calculated as follows: C t;
[0129] The coordinate transformation method is used to calculate the transformation matrix between the coordinate system of the driving mechanism of the clamping module (i.e. the coordinate system of the transport module and the mobile lifting platform module) and the Cartesian coordinate system: B T E ;
[0130] Transformation Matrix E T c =( B T E ) -1B t( C t) -1 , using the transformation matrix E T c The displacement differences Δx', Δy' are converted into offsets Δx, Δy.
[0131] The image acquisition module measures the vertical distance between the clamping module and the plane where the hole to be installed is located, that is, the offset Δz.
[0132] The control module adjusts the transport module and the mobile lifting platform module according to the offset, so that the clamping module moves with the door mechanism within the plane where the clamping module is located, that is, the position of the clamping module is adjusted according to the offsets Δx and Δy so that the door mechanism mounting hole is opposite to the position of the hole to be installed.
[0133] The acquisition module captures image information again, and the data analysis module determines whether the correct and complete hole to be installed is captured. If the hole to be installed is correctly captured, the control module adjusts the transport module and the mobile lifting platform module based on the offset Δz, causing the clamping module to move the door mechanism along a path perpendicular to the hole to the hole to be installed, so that the door mechanism contacts the hole to be installed, and then installs the door mechanism in the current position. If the hole to be installed is not correctly captured, the process returns to coarse positioning and repeats the above steps until the image acquisition module captures an image that correctly includes the complete hole to be installed.
Claims
1. A vision-based rail vehicle door installation method, characterized by: The following steps are involved: S1: constructing a clamping device for clamping the vehicle door mechanism (6), and fixing an image acquisition device on the clamping device; S2: adjusting the clamping device so that it moves the door mechanism (6) to a preset target position for installing the door mechanism (6) for rough positioning, and collecting image information of the hole (7) to be installed in the door mechanism by a collection device; S3: Determine whether the acquired image information correctly contains the complete hole to be installed (7); S4: If the image information correctly includes the complete hole to be installed (7), proceed to step S6; if the image information does not correctly include the complete hole to be installed (7), adjust the position of the clamping device again for precise positioning, and the acquisition device again acquires the image information of the hole to be installed (7); S5: again judging whether the image information collected after precise positioning correctly includes the complete hole to be installed (7); if the image information correctly includes the complete hole to be installed (7), proceeding to step S6; if the image information does not correctly include the complete hole to be installed (7), returning to step S2; S6: Convert the image information to obtain the offset between the current position of the door mechanism (6) and the hole to be installed (7); the calculation steps for obtaining the offset are as follows: Preprocessing of image information; Performing conversion processing on the pre-processed image information to obtain hole position information of the to-be-installed hole (7) and the door mechanism installation hole (8); Based on the hole position information of the hole to be installed (7) and the door mechanism installation hole (8), the displacement difference between the hole to be installed (7) and the door mechanism installation hole (8) is calculated; Based on the displacement difference, it is converted into the offset Δx and Δy of the clamping device in the Cartesian coordinate system; The steps for obtaining the hole position information of the hole to be installed (7) are as follows: Use a 3×3 Gauss kernel to perform noise reduction on the collected image information; Set the region of interest containing the complete hole to be installed (7), use the Canny operator to perform edge detection on the denoised image information to obtain a binary image, and use the Sobel operator to calculate the field gradient of all pixels in the binary image; Traverse the non-zero pixel points in the edge detection binary image, map the non-zero pixel points to the corresponding points in the rectangular coordinate system in the plane where the hole to be installed (7) is located, and add 1 to the accumulator of the corresponding point; Find the maximum value of the accumulator and obtain the polar coordinates of the point corresponding to the maximum value , the polar coordinates Convert to the coordinates of the center of the circle in the rectangular coordinate system ; Calculate the distance d between all edge pixels and the center of the circle in the binary image, sort d in ascending order, select the threshold, and find the coordinates of the center of the circle The radius r0 of the corresponding installation hole (7); that is, establish a cumulative array T(r0), accumulate all edge pixel points, and the largest T(r0) is the center coordinate of the circle The radius r0 of the corresponding hole to be installed (7); The center coordinates Save as the reference position coordinates and save the radius r0 as the reference radius; S7: adjusting the position of the clamping device in the plane in which it is located according to the offset; S8: The acquisition device acquires image information again and determines whether the correct and complete holes to be installed are acquired (7); S9: If the complete hole to be installed (7) is correctly collected, proceed to the next step; if the complete hole to be installed (7) is not correctly collected, return to step S2; S10: adjusting the clamping device according to the offset so that the clamping device moves the door mechanism (6) along a path perpendicular to the hole to be installed (7) toward the hole to be installed (7), and installing the door mechanism (6) at the current position.
2. The vision-based rail vehicle door installation method according to claim 1, characterized in that: The acquisition device described in step S1 includes a first camera (3) installed at the middle position of the clamping device and a second camera (4) installed on one side of the first camera (3), wherein the first camera (3) acquires image information during fine positioning, and the second camera (4) acquires image information during coarse positioning.
3. The vision-based rail vehicle door installation method according to claim 1, characterized in that: Step S4 also includes: constructing a Cartesian coordinate system, wherein the length direction of the clamping device is parallel to the X-axis of the Cartesian coordinate system, the width direction of the clamping device is parallel to the Y-axis of the Cartesian coordinate system, the thickness direction of the clamping device is parallel to the Z-axis of the Cartesian coordinate system, and the Z-axis of the Cartesian coordinate system is perpendicular to the plane where the hole (7) to be installed is located; when performing fine positioning in step S4, the clamping device moves within the range of ±5 mm in the X-axis direction and ±15 mm in the Y-axis direction.
4. The vision-based rail vehicle door installation method according to claim 3, characterized in that: The offset in step S6 includes the distance Δx that the clamping device moves on the X axis of the Cartesian coordinate system, the distance Δy that the clamping device moves on the Y axis of the Cartesian coordinate system, and the distance Δz that the clamping device moves on the Z axis of the Cartesian coordinate system.
5. The vision-based rail vehicle door installation method according to claim 1, characterized in that: The steps for obtaining the hole position information of the door mechanism mounting hole (8) are as follows: Use a 3×3 Gauss kernel to perform noise reduction on the collected image information; Set the region of interest including the mounting hole (8) of the complete door mechanism, use the Canny operator to perform edge detection on the denoised image information to obtain a binary image, and use the Sobel operator to calculate the domain gradient of all pixels in the binary image; Traversing the non-zero pixel points in the edge detection binary image, mapping the non-zero pixel points to the corresponding points in the rectangular coordinate system in the plane where the door mechanism mounting hole (8) is located, and adding 1 to the accumulator of the corresponding point; Find the maximum value of the accumulator and obtain the polar coordinates of the point corresponding to the maximum value , the polar coordinates Convert to the coordinates of the center of the circle in the rectangular coordinate system ; Calculate the distance d between all edge pixels and the center of the circle in the binary image, sort d in ascending order, select the threshold, and find the coordinates of the center of the circle The radius r1 of the corresponding door mechanism mounting hole (8); that is, establish a cumulative array T(r1), accumulate all edge pixel points, and the largest T(r1) is the center coordinate The radius r1 of the corresponding door mechanism mounting hole (8) is 6. The vision-based rail vehicle door installation method according to claim 5, characterized in that: The calculation formula of the displacement difference is as follows: ; Assume that the transformation matrix between the camera coordinate system of the acquisition device and the Cartesian coordinate system is , and the transformation matrix The way to obtain is as follows: A chessboard calibration plate is set at a fixed position in the Cartesian coordinate system, and the coordinates of the corner points of the chessboard calibration plate in the Cartesian coordinate system are calculated using the coordinate transformation method: ; Based on the calibration of the internal and external parameters of the camera of the acquisition device, the coordinates of the corner points of the chessboard calibration plate in the camera coordinate system are calculated as follows: ; The coordinate transformation method is used to calculate the transformation matrix between the coordinate system of the driving mechanism of the clamping device and the Cartesian coordinate system: ; Transformation Matrix , using the transformation matrix The displacement differences Δx', Δy' are converted into offsets Δx, Δy.
7. The vision-based rail vehicle door installation method according to claim 4, characterized in that: The clamping device is equipped with a distance meter (5) for measuring the distance Δz between the clamping device and the plane where the hole (7) to be mounted is located, which is the distance moved along the z-axis.
8. An installation system for a rail vehicle door according to any one of claims 1 to 7, characterized in that: include, A clamping module, used for clamping the door mechanism (6) to be installed and moving it to the installation hole (7) of the door mechanism (6); An image acquisition module, the image acquisition module being mounted on the clamping module and being used to acquire images of the hole to be mounted (7) and the door mechanism mounting hole (8) during the installation process, and to measure a vertical distance between the clamping module and the plane where the hole to be mounted (7) is located; A data analysis module is used to receive the image from the image acquisition module and analyze and process the image to obtain the offset between the clamping module and the hole to be installed (7); A handling module is used to adjust the position of the clamping module; The mobile lifting platform module is used to adjust the position of the handling module and then assist in adjusting the position of the clamping module; The control module is used to receive the offset from the data analysis module and regulate the transport module and the mobile lifting platform module according to the offset, so that the clamping module clamps the door mechanism (6) and moves it to the hole to be installed (7).
Citation Information
Patent Citations
Industrial robot automatic pin hole assembling method based on visual guidance
CN106182004A
Automatic vehicle door assembling method, device and equipment based on hole feature recognition and medium
CN118478205A