Method, device, equipment and system for determining corner pose between vehicle head and vehicle body
By acquiring the tilt angles of the cab and the carriage, as well as images from the image acquisition device, feature extraction and filtering are performed to calculate the turning pose between the cab and the carriage. This solves the problem of large measurement errors on uneven ground and improves the accuracy of vehicle route planning.
Patent Information
- Application Number
- CN202311332121.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-13
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-10-13
AI Technical Summary
On uneven ground, existing technologies for measuring turning angles by taking images of the connection between the front of the vehicle and the carriage from above result in significant errors, affecting the accuracy of vehicle route planning.
By acquiring the locomotive tilt angle, the carriage tilt angle, and the carriage image captured by the image acquisition device on the locomotive, feature extraction and filtering are performed to determine the distance features between the image acquisition device and the target object. Combined with the locomotive tilt angle and the carriage tilt angle, the angular pose between the locomotive and the carriage is calculated.
It improves the accuracy of angle pose measurement between the front of the vehicle and the carriage, ensures the precision of vehicle route planning, and reduces measurement errors caused by uneven ground.
Smart Images

Figure CN117333549B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of vehicle control technology, specifically to a method, apparatus, equipment, and system for determining the angular pose between the front of the vehicle and the cargo compartment. Background Technology
[0002] Heavy-duty truck tractors and their derivative multi-section trailers play a crucial role in many scenarios. Due to the articulated structure of the tractor and trailer, the tractor and trailer rotate relative to each other when turning, resulting in different trajectories. For autonomous vehicles, the position and orientation of the tractor and trailer are critical for autonomous driving route planning; furthermore, the lateral sweeping area created by the articulated vehicle during turns poses a significant risk of collisions with surrounding vehicles and pedestrians. Therefore, real-time measurement of the angular position and orientation between the tractor and trailer is of great importance.
[0003] Currently, cameras are often used to take overhead photos of the connection points between trailers, and the angle of the connection points in the captured images is directly taken as the turning angle between the trailers. However, if the ground is uneven, the horizontal level of the cab and the trailer is different, which makes it easy for the camera to capture misaligned images of the connection points between the cab and the trailer, resulting in a large error in the measurement of the turning angle. Summary of the Invention
[0004] In view of this, the present invention provides a method, apparatus, device and system for determining the angle pose between the front of the vehicle and the carriage, so as to solve the problem that the accuracy of the measurement results is low when measuring the angle between the front of the vehicle and the carriage on uneven ground in related technologies.
[0005] In a first aspect, the present invention provides a method for determining the angle pose between the front of a vehicle and the carriage, the method comprising:
[0006] Acquire the front tilt angle, the carriage tilt angle, and the carriage image captured by the image acquisition device on the front of the train;
[0007] Feature extraction is performed on the images of the carriage to obtain the target features corresponding to the target objects on the carriage;
[0008] Based on the target features and the parameters of the image acquisition device, the distance characteristics between the image acquisition device and the target object are determined.
[0009] Based on distance features, locomotive tilt angle, and carriage tilt angle, the angular pose between the locomotive and carriage is determined.
[0010] Therefore, by acquiring the locomotive tilt angle, the carriage tilt angle, and the carriage image captured by the image acquisition device on the locomotive, and processing the carriage image to obtain the distance characteristics between the image acquisition device and the target object on the carriage, and finally based on the locomotive tilt angle, carriage tilt angle, and distance characteristics between the image acquisition device and the target object on the carriage, the turning angle pose between the locomotive and the carriage can be determined when measuring the turning angle between the locomotive and the carriage on uneven ground, thereby improving the accuracy of the measurement results and providing a reference for vehicle route planning.
[0011] In one optional implementation, the angular pose between the front of the train and the carriage is determined based on distance features, the front tilt angle, and the carriage tilt angle, including:
[0012] The pitch angle between the locomotive and the carriage is obtained based on the locomotive tilt angle and the carriage tilt angle.
[0013] Based on the distance characteristics, the yaw angle between the front of the train and the carriage is obtained;
[0014] The angular position and attitude between the front of the train and the carriage are obtained based on the pitch angle and yaw angle.
[0015] Therefore, by determining the pitch and yaw angles of the carriage relative to the front of the train, the turning pose between the front and the carriage can be accurately obtained even if the front and the carriage are not on the same plane, thus improving the accuracy of the turning pose measurement results.
[0016] In one optional implementation, determining the distance characteristics between the image acquisition device and the target object based on target features and parameters of the image acquisition device includes:
[0017] Based on the pixel width, pixel coordinates, and width of the target object in the target features, as well as the parameters of the image acquisition device, calculate the relative distance and longitudinal distance between the image acquisition device and the target object.
[0018] Therefore, by using the pixel width, pixel coordinates, and width of the target object, as well as the parameters of the image acquisition device, the relative and longitudinal distances between the image acquisition device and the target object can be obtained, so as to determine the turning angle between the front of the vehicle and the carriage.
[0019] In one optional implementation, the yaw angle between the front of the train and the carriage is obtained based on distance characteristics, including:
[0020] Calculate the yaw angle between the front of the vehicle and the carriage based on the relative distance and longitudinal distance between the image acquisition device and the target object.
[0021] Therefore, when the locomotive and the carriage are not on the same plane, the accuracy of the turning angle measurement results can be improved by calculating the yaw angle of the carriage relative to the locomotive.
[0022] In one optional implementation, feature extraction is performed on the carriage image to obtain target features corresponding to the target objects on the carriage, including:
[0023] Feature extraction is performed on the carriage image using a pre-trained feature point model to obtain candidate feature points corresponding to the target object;
[0024] The candidate feature points corresponding to the target object are filtered to obtain the target feature points;
[0025] Based on the target feature points, the target features corresponding to the target objects on the carriage are obtained.
[0026] Therefore, by performing feature extraction and filtering on the carriage image, the target features of the target objects on the carriage can be obtained, noise interference can be reduced, and effective feature point extraction can be performed to improve the accuracy of feature extraction.
[0027] In one alternative implementation, the method further includes:
[0028] When the front of the train and the carriage are in a straight line, feature extraction is performed on the images of both sides of the carriage captured by the image acquisition device to obtain a set of pixel coordinates of multiple targets on the carriage;
[0029] The distortion of the image acquisition device is corrected based on the set of pixel coordinates, and the parameters of the image acquisition device are updated.
[0030] Therefore, when the front of the vehicle and the carriage are in a straight line, distortion correction is performed on the image acquisition equipment to improve the accuracy of the angle pose measurement, so as to provide accurate guidance for the vehicle's route planning.
[0031] Secondly, the present invention provides a device for determining the angle pose between the front of a vehicle and the carriage, the device comprising:
[0032] The acquisition module is used to acquire the front tilt angle, the carriage tilt angle, and the carriage image captured by the image acquisition device on the front of the train;
[0033] The first processing module is used to extract features from the images of the carriage to obtain the target features corresponding to the target objects on the carriage.
[0034] The second processing module is used to determine the distance characteristics between the image acquisition device and the target object based on the target features and the parameters of the image acquisition device.
[0035] The third processing module is used to determine the angular pose between the front of the train and the carriage based on distance features, the front tilt angle, and the carriage tilt angle.
[0036] Thirdly, the present invention provides a computer device, comprising: a memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the computer instructions to perform the method for determining the angle pose between the front and the carriage as described in the first aspect or any corresponding embodiment above.
[0037] Fourthly, the present invention provides a system for determining the angle pose between the front of a vehicle and the carriage. The system includes an image acquisition device, a controller, and at least two tilt sensors. The image acquisition device is installed on the front of the vehicle to acquire images of the carriage. The tilt sensors are correspondingly installed on the front of the vehicle and the carriage to acquire the tilt angle of the front of the vehicle and the tilt angle of the carriage, respectively. The controller is used to execute the method for determining the angle pose between the front of the vehicle and the carriage according to the first aspect or any corresponding embodiment described above.
[0038] Fifthly, the present invention provides a computer-readable storage medium storing computer instructions for causing a computer to execute the method for determining the angle pose between the front and the carriage as described in the first aspect or any corresponding embodiment above. Attached Figure Description
[0039] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0040] Figure 1 This is a flowchart illustrating a method for determining the angle pose between the front of the vehicle and the carriage according to an embodiment of the present invention.
[0041] Figure 2 This is a flowchart illustrating another method for determining the angle pose between the front of the vehicle and the carriage according to an embodiment of the present invention.
[0042] Figure 3 This is a flowchart illustrating another method for determining the angle pose between the front of the vehicle and the carriage according to an embodiment of the present invention.
[0043] Figure 4 This is an application scenario diagram of the method for determining the corner pose between the front of the vehicle and the carriage according to an embodiment of the present invention;
[0044] Figure 5 This is a structural block diagram of a device for determining the angle pose between the front of the vehicle and the carriage according to an embodiment of the present invention;
[0045] Figure 6 This is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention;
[0046] Figure 7 This is a schematic diagram of a system for determining the angle pose between the front of the vehicle and the carriage according to an embodiment of the present invention. Detailed Implementation
[0047] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0048] Heavy-duty truck tractors and their derivative multi-section trailers play a crucial role in long-haul logistics, short-haul material transport in industrial parks, and airport baggage handling. Due to the articulated structure of the tractor and trailer, the tractor and trailer rotate relative to each other when turning, resulting in different trajectories. For autonomous vehicles, the position and orientation of the tractor and trailer are critical for autonomous driving route planning; furthermore, the lateral sweeping area created by articulated vehicles during turns poses a significant risk of collisions with surrounding vehicles and pedestrians. Therefore, real-time measurement of the angular position and orientation between the tractor and trailer is of paramount importance.
[0049] Currently, cameras are often used to take overhead photos of the connection points between trailers, and the angle of the connection points in the captured images is directly taken as the turning angle between the trailers. However, if the ground is uneven, the horizontal level of the cab and the trailer is different, which makes it easy for the camera to capture misaligned images of the connection points between the cab and the trailer, resulting in a large error in the measurement of the turning angle.
[0050] Therefore, this invention provides a scheme for determining the angle pose between the front of the train and the carriage. By acquiring the tilt angle of the front of the train, the tilt angle of the carriage, and the carriage image captured by the image acquisition device on the front of the train, and processing the carriage image to obtain the distance features between the image acquisition device and the target object on the carriage, the angle pose between the front of the train and the carriage is determined based on the tilt angle of the front of the train, the tilt angle of the carriage, and the distance features between the image acquisition device and the target object on the carriage. This solves the problem of low accuracy in related technologies when measuring the angle between the front of the train and the carriage on uneven ground.
[0051] According to an embodiment of the present invention, a method for determining the angular pose between the front of a vehicle and the carriage is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0052] This embodiment provides a method for determining the angle pose between the front of the vehicle and the cargo box, which can be used for computer or electronic equipment mounted on the vehicle, such as an onboard computer or vehicle controller. Figure 1 This is a flowchart of a method for determining the angle pose between the front of the vehicle and the carriage according to an embodiment of the present invention, as shown below. Figure 1 As shown, the process includes the following steps:
[0053] Step S101: Acquire the front tilt angle, the carriage tilt angle, and the carriage image acquired by the image acquisition device on the front of the train.
[0054] Specifically, images of the vehicle compartment captured by the imaging device can be acquired via CAN (Controller Area Network) during vehicle operation. Image acquisition equipment, such as sensors or a monocular camera, is installed on the front of the tractor unit. The installation location of the image acquisition equipment can be below the rearview mirror, without affecting the vehicle structure. Additionally, a feature marker (target object) is installed at a predetermined position at a fixed height on the vehicle compartment. This feature marker can be a waterproof checkerboard pattern or black and white dots, as long as the feature contrast is strong and the target is clearly visible; this invention is not limited to these limitations.
[0055] Step S102: Extract features from the carriage image to obtain the target features corresponding to the target objects on the carriage.
[0056] Specifically, the system acquires images of the vehicle's cab when it turns and extracts features from these images to obtain the width of the target object on the cab, as well as the pixel width and pixel coordinates of the target object in the camera coordinate system.
[0057] Step S103: Based on the target features and the parameters of the image acquisition device, determine the distance features between the image acquisition device and the target object.
[0058] Specifically, the image acquisition device can use a monocular camera, and the specific parameters of the monocular camera can include focal length, intrinsic parameter matrix, and extrinsic parameter matrix.
[0059] Step S104: Based on distance features, front tilt angle, and carriage tilt angle, determine the angular pose between the front and carriage.
[0060] Specifically, the turning position between the locomotive and the trailer includes the yaw angle and pitch angle of the trailer relative to the locomotive. This determines the relative attitude of the trailer with respect to the locomotive, which facilitates the route planning of the tractor.
[0061] The method for determining the turning pose between the front of the vehicle and the carriage provided in this embodiment acquires the tilt angle of the front of the vehicle, the tilt angle of the carriage, and the carriage image captured by the image acquisition device on the front of the vehicle. The carriage image is then processed to obtain the distance features between the image acquisition device and the target object on the carriage. Finally, based on the tilt angle of the front of the vehicle, the tilt angle of the carriage, and the distance features between the image acquisition device and the target object on the carriage, the turning pose between the front of the vehicle and the carriage can be determined when measuring the turning angle between the front of the vehicle and the carriage on uneven ground, thereby improving the accuracy of the measurement results and providing a reference for vehicle route planning.
[0062] This embodiment provides a method for determining the angle pose between the front of the vehicle and the cargo box, which can be used for computer or electronic equipment mounted on the vehicle, such as an onboard computer or vehicle controller. Figure 2 This is a flowchart of a method for determining the angle pose between the front of the vehicle and the carriage according to an embodiment of the present invention, as shown below. Figure 2 As shown, the process includes the following steps:
[0063] Step S201: Acquire the front tilt angle, the carriage tilt angle, and the carriage image captured by the image acquisition device on the front of the train. For details, please refer to [link to relevant documentation]. Figure 1 Step S101 of the illustrated embodiment will not be described again here.
[0064] Step S202: Extract features from the carriage image to obtain the target features corresponding to the target objects on the carriage.
[0065] Specifically, step S202 includes:
[0066] Step S2021: Extract features from the carriage image using a pre-trained feature point model to obtain candidate feature points corresponding to the target object.
[0067] Specifically, the pre-trained feature point model here includes, but is not limited to, traditional visual detection algorithms and deep learning detection models, and this invention is not limited thereto.
[0068] Step S2022: Filter the candidate feature points corresponding to the target object to obtain the target feature points.
[0069] Specifically, traditional filtering algorithms, such as Gaussian filtering, are used to remove interfering and invalid feature points from the candidate feature points, thereby effectively extracting feature points and obtaining the target feature points of the target object.
[0070] Step S2023: Based on the target feature points, obtain the target features corresponding to the target objects on the carriage.
[0071] Specifically, based on the determined target feature points, the pixel coordinates and pixel width of the target object in the pixel coordinate system are obtained. It should be noted that the width of the target object is its physical width. This width can be pre-stored or obtained by transforming the pixel coordinates of the target object into a different coordinate system. For details, please refer to the relevant technical descriptions, which will not be elaborated here.
[0072] Therefore, by performing feature extraction and filtering on the carriage image, the target features of the target objects on the carriage can be obtained, noise interference can be reduced, and effective feature point extraction can be performed to improve the accuracy of feature extraction.
[0073] Step S203: Based on the target features and the parameters of the image acquisition device, determine the distance features between the image acquisition device and the target object.
[0074] Specifically, step S203 includes:
[0075] Step S2031: Calculate the relative distance and longitudinal distance between the image acquisition device and the target object based on the pixel width, pixel coordinates, width of the target object, and parameters of the image acquisition device in the target features.
[0076] Specifically, the relative distance between the image acquisition device and the target object can be calculated using the following formula:
[0077] F = (P * X) / W
[0078] Where F represents the focal length of the image acquisition device, P represents the pixel width of the target object, X represents the relative distance between the image acquisition device and the target object, and W represents the width of the target object.
[0079] Additionally, for coordinates P(X) in the world coordinate system W ,Y W Z W The target object is denoted as P(u,v) in the pixel coordinate system. Based on the relationship between the world coordinate system, camera coordinate system, image coordinate system, and pixel coordinate system, the imaging process of the camera can be represented in the following matrix form:
[0080]
[0081] Where s represents an arbitrary scale factor, denoted as f x =f / dx is the focal length after normalization along the u-axis in the pixel coordinate system, f y =f / dy is the focal length after normalization of the v-axis in the pixel coordinate system, M represents the intrinsic parameter matrix of the image acquisition device, and [R t] represents the extrinsic parameter matrix of the image acquisition device.
[0082] Therefore, based on the linear imaging distance of the camera, we can obtain:
[0083]
[0084] make Z W =0, then
[0085] in, This represents the coordinates of the target object in the camera coordinate system. This represents the amount of coordinate change when transforming the world coordinates of the target object to the camera coordinate system.
[0086] Therefore, we can obtain:
[0087]
[0088] In this way, the longitudinal distance Y between the image acquisition device and the target object can be obtained. W .
[0089] Therefore, by using the pixel width, pixel coordinates, and width of the target object, as well as the parameters of the image acquisition device, the relative and longitudinal distances between the image acquisition device and the target object can be obtained, so as to determine the turning angle between the front of the vehicle and the carriage.
[0090] Step S204: Based on distance features, front tilt angle, and carriage tilt angle, determine the angular pose between the front and carriage.
[0091] Specifically, step S204 includes:
[0092] Step S2041: Based on the locomotive tilt angle and the car body tilt angle, obtain the pitch angle between the locomotive and the car body.
[0093] Specifically, the locomotive tilt angle and the cargo box tilt angle refer to the slope angles of the planes on which the tractor and the cargo box are located, respectively. The pitch angle of the cargo box relative to the locomotive can be obtained by calculating the difference between the cargo box tilt angle and the locomotive tilt angle.
[0094] Step S2042: Based on the distance characteristics, obtain the yaw angle between the front of the train and the carriage.
[0095] In some alternative embodiments, step S2042 includes: calculating the yaw angle between the locomotive and the carriage based on the relative distance and longitudinal distance between the image acquisition device and the target object. This improves the accuracy of the turning angle measurement results when the locomotive and carriage are not on the same plane, by calculating the yaw angle of the carriage relative to the locomotive.
[0096] Specifically, the yaw angle of the carriage relative to the front of the train can be calculated using the following formula:
[0097] sinθ=Y W / X
[0098] Where θ represents the yaw angle of the carriage relative to the front of the train.
[0099] Step S2043: Based on the pitch angle and yaw angle, obtain the angular pose between the front of the train and the carriage.
[0100] Specifically, by determining the pitch and yaw angles of the carriage relative to the front of the train, the turning pose between the front and the carriage can be accurately obtained even if the front and the carriage are not on the same plane, thus improving the accuracy of the turning pose measurement results.
[0101] The method for determining the turning pose between the front and the carriage provided in this embodiment acquires the front tilt angle, the carriage tilt angle, and the carriage image captured by the image acquisition device on the front of the vehicle. It then performs feature extraction and filtering on the carriage image to obtain the relative and longitudinal distances between the image acquisition device and the target object on the carriage. Furthermore, it obtains the yaw angle of the carriage relative to the front of the vehicle based on the relative and longitudinal distances, and the pitch angle of the carriage relative to the front of the vehicle based on the front tilt angle and the carriage tilt angle. This method accurately determines the turning pose between the front and the carriage when measuring the turning angle on uneven ground, improving the accuracy of the measurement results and providing a reference for vehicle route planning.
[0102] This embodiment provides a method for determining the angle pose between the front of the vehicle and the cargo box, which can be used for computer or electronic equipment mounted on the vehicle, such as an onboard computer or vehicle controller. Figure 3 This is a flowchart of a method for determining the angle pose between the front of the vehicle and the carriage according to an embodiment of the present invention, as shown below. Figure 3 As shown, the process includes the following steps:
[0103] Step S301: Acquire the locomotive tilt angle, the carriage tilt angle, and the carriage image captured by the image acquisition device on the locomotive. For details, please refer to [link to relevant documentation]. Figure 2 Step S201 of the illustrated embodiment will not be described again here.
[0104] Step S302: Feature extraction is performed on the carriage image to obtain the target features corresponding to the target objects on the carriage. For details, please refer to [link to relevant documentation]. Figure 2 Step S202 of the illustrated embodiment will not be described again here.
[0105] Step S303: Based on the target features and the parameters of the image acquisition device, determine the distance features between the image acquisition device and the target object. For details, please refer to [link to relevant documentation]. Figure 2 Step S203 of the illustrated embodiment will not be described again here.
[0106] Step S304: Based on distance features, the locomotive tilt angle, and the carriage tilt angle, determine the angular pose between the locomotive and the carriage. For details, please refer to [link to details]. Figure 2 Step S204 of the illustrated embodiment will not be described again here.
[0107] Step S305: When the front of the train and the carriage are in a straight line, feature extraction is performed on the images of both sides of the carriage captured by the image acquisition device to obtain a set of pixel coordinates of multiple target objects on the carriage.
[0108] Specifically, when the front of the train and the carriage are in a straight line (the angle of the carriage relative to the front of the train is 0°), images of both sides of the carriage are acquired using an image acquisition device. Next, based on the image contrast and edge features, feature points are extracted from the images of both sides of the carriage, and the pixel coordinates (u1, v1), (u2, v2), ..., (u...) of multiple feature points on both sides of the carriage are calculated. i ,v i ).
[0109] Step S306: Perform distortion correction on the image acquisition device based on the pixel coordinate set, and update the parameters of the image acquisition device.
[0110] Specifically, based on the pixel coordinates (u1, v1), (u2, v2), ..., (u...) of multiple feature points on both sides of the carriage... i ,v i The radial distortion (k1,k2,k3) and tangential distortion (p1,p2) of the image acquisition device are corrected, and the parameters of the image acquisition device are updated based on the obtained radial and tangential distortions. The detailed process of distortion correction can be found in the relevant technical descriptions, which will not be repeated here.
[0111] Furthermore, when the angle between the carriage and the front of the train is 0°, there is also no angle between the camera of the image acquisition device and the target object, but this only exists under ideal conditions. Therefore, during the distortion correction process of the image acquisition device, the original angle between the center of the camera and the center of the target object can be calculated. This allows for zero-point position correction of the angle between the front of the train and the carriage, further improving the accuracy of the angle pose measurement.
[0112] The method for determining the corner pose between the vehicle front and the carriage provided in this embodiment acquires the vehicle front tilt angle, the carriage tilt angle, and the carriage image captured by the image acquisition device on the vehicle front. Feature extraction and filtering are performed on the carriage image to obtain the relative and longitudinal distances between the image acquisition device and the target object on the carriage. Further, the yaw angle of the carriage relative to the vehicle front is obtained based on the relative and longitudinal distances, and the pitch angle of the carriage relative to the vehicle front is obtained based on the vehicle front tilt angle and the carriage tilt angle, thereby determining the corner pose between the vehicle front and the carriage. In addition, when the vehicle front and the carriage are in a straight line, distortion correction and zero-point position correction are performed on the image acquisition device to improve the measurement accuracy of the corner pose, providing guidance for vehicle route planning.
[0113] The method for determining the angle pose between the front of the vehicle and the carriage according to the present invention will be described in detail below with reference to a specific embodiment. Figure 4 This is an application scenario diagram of the method for determining the angle pose between the front of the vehicle and the carriage provided in an embodiment of the present invention, such as... Figure 4 As shown, there will be an angle between the front of the vehicle and the cargo box when turning. The following are the specific steps for determining the angle pose between the front of the vehicle and the cargo box in this specific embodiment:
[0114] Step a1: Install a monocular camera on the tractor unit's cab, below the rearview mirror; install a feature marker at a preset position at a fixed height on the cab body. This feature marker can be any waterproof checkerboard pattern or black and white dots, as long as the feature contrast is strong and obvious. Additionally, install a tilt sensor on both the tractor unit's cab and the cab body.
[0115] Step a2 involves zero-point distortion correction of the monocular camera on the tractor. When the tractor head and the trailer are in a straight line (the trailer's angle relative to the tractor head is 0°), images of both sides of the trailer are acquired using an image acquisition device. Next, based on the image contrast and edge features, feature points are extracted from the images on both sides of the trailer, and the pixel coordinates (u1, v1), (u2, v2), ..., (u...) of multiple feature points on both sides of the trailer are calculated. i ,v i Based on the pixel coordinates (u1, v1), (u2, v2), ..., (u...) of multiple feature points on both sides of the carriage... i ,v i This is used to correct the radial distortion (k1,k2,k3) and tangential distortion (p1,p2) of a monocular camera.
[0116] Step a3: During vehicle movement, when the vehicle's front-end turning angle pose is acquired in real time from the CAN bus, the monocular camera is automatically triggered to acquire an image from one side of the vehicle compartment. Through a feature point extraction model and filtering algorithm, interference and invalid feature points are removed, and effective feature points are extracted from the vehicle compartment image to calculate the relative and longitudinal distances between the target object and the monocular camera. Simultaneously, the tilt sensor is automatically triggered to acquire the vehicle's front-end tilt angle and the vehicle compartment tilt angle.
[0117] Step a4: Calculate the yaw angle based on the relative distance and longitudinal distance between the target and the monocular camera, and calculate the pitch angle based on the front tilt angle and the carriage tilt angle to determine the angular pose of the carriage relative to the front.
[0118] Step a5: Transmit the cornering pose data via the CAN bus so that the planning module on the vehicle can call it in real time.
[0119] This embodiment also provides a device for determining the angle pose between the front of the vehicle and the carriage. This device is used to implement the above embodiments and preferred embodiments, and will not be repeated as already described. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0120] This embodiment provides a device for determining the angle pose between the front of the vehicle and the carriage, such as... Figure 5 As shown, the device includes:
[0121] The acquisition module 501 is used to acquire the front tilt angle, the carriage tilt angle, and the carriage image acquired by the image acquisition device on the front of the train;
[0122] The first processing module 502 is used to extract features from the carriage image to obtain the target features corresponding to the target objects on the carriage;
[0123] The second processing module 503 is used to determine the distance characteristics between the image acquisition device and the target object based on the target features and the parameters of the image acquisition device.
[0124] The third processing module 504 is used to determine the angular pose between the front of the train and the carriage based on distance features, the front tilt angle, and the carriage tilt angle.
[0125] In some alternative embodiments, the device further includes:
[0126] The fourth processing module 505 is used to extract features from the images on both sides of the carriage captured by the image acquisition device when the front of the train and the carriage are in a straight line, so as to obtain a set of pixel coordinates of multiple target objects on the carriage.
[0127] The fifth processing module 506 is used to perform distortion correction on the image acquisition device based on the pixel coordinate set and update the parameters of the image acquisition device.
[0128] In some alternative implementations, the first processing module 502 includes:
[0129] The first processing unit is used to extract features from the carriage image using a pre-trained feature point model to obtain candidate feature points corresponding to the target object.
[0130] The second processing unit is used to filter the candidate feature points corresponding to the target object to obtain the target feature points;
[0131] The third processing unit is used to obtain the target features corresponding to the target objects on the carriage based on the target feature points.
[0132] In some alternative implementations, the second processing module 503 includes:
[0133] The fourth processing unit is used to calculate the relative distance and longitudinal distance between the image acquisition device and the target object based on the pixel width, pixel coordinates, width of the target object, and parameters of the image acquisition device in the target features.
[0134] In some alternative implementations, the third processing module 504 includes:
[0135] The fifth processing unit is used to obtain the pitch angle between the locomotive and the car body based on the locomotive tilt angle and the car body tilt angle;
[0136] The sixth processing unit is used to obtain the yaw angle between the front of the train and the carriage based on the distance characteristics;
[0137] The seventh processing unit is used to obtain the angular pose between the front of the train and the carriage based on the pitch angle and yaw angle.
[0138] In some optional implementations, the sixth processing unit includes:
[0139] The first processing subunit is used to calculate the yaw angle between the front of the vehicle and the carriage based on the relative distance and longitudinal distance between the image acquisition device and the target object.
[0140] Further functional descriptions of the above modules and units are the same as those in the corresponding embodiments described above, and will not be repeated here.
[0141] In this embodiment, the device for determining the angle pose between the front of the vehicle and the carriage is presented in the form of a functional unit. Here, a unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that execute one or more software or fixed programs, and / or other devices that can provide the above functions.
[0142] This invention also provides a computer device having the above-described features. Figure 5 The device shown is for determining the angle pose between the front of the train and the carriage.
[0143] Please see Figure 6 , Figure 6 This is a schematic diagram of the structure of a computer device provided in an optional embodiment of the present invention, such as... Figure 6As shown, the computer device includes one or more processors 10, memory 20, and interfaces for connecting the components, including high-speed interfaces and low-speed interfaces. The components communicate with each other via different buses and can be mounted on a common motherboard or otherwise installed as needed. The processors can process instructions executed within the computer device, including instructions stored in or on memory to display graphical information of a GUI on external input / output devices (such as display devices coupled to the interfaces). In some alternative implementations, multiple processors and / or multiple buses can be used with multiple memories and multiple memory modules, if desired. Similarly, multiple computer devices can be connected, each providing some of the necessary operations (e.g., as a server array, a group of blade servers, or a multiprocessor system). Figure 6 Take a processor 10 as an example.
[0144] Processor 10 may be a central processing unit, a network processor, or a combination thereof. Processor 10 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The programmable logic device may be a complex programmable logic device (CAMP), a field-programmable gate array (FPGA), a general-purpose array logic (GDA), or any combination thereof.
[0145] The memory 20 stores instructions executable by at least one processor 10 to cause at least one processor 10 to perform the method shown in the above embodiments.
[0146] The memory 20 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the computer device. Furthermore, the memory 20 may include high-speed random access memory and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some alternative embodiments, the memory 20 may optionally include memory remotely located relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0147] The memory 20 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as flash memory, hard disk or solid-state drive; the memory 20 may also include a combination of the above types of memory.
[0148] The computer device also includes a communication interface 30 for communicating with other devices or communication networks.
[0149] like Figure 7 As shown, this embodiment of the invention also provides a system for determining the angle pose between the front of the vehicle and the carriage. This system includes an image acquisition device 701 and a controller (in... Figure 7 The image acquisition device is mounted on the front of the vehicle 703 (not shown) and at least two tilt sensors 702. The image acquisition device is mounted on the front of the vehicle 703 to acquire images of the vehicle body. The tilt sensors are mounted on the front of the vehicle 703 and the vehicle body 704 respectively to acquire the tilt angle of the front of the vehicle and the tilt angle of the vehicle body. The controller is used to execute the method for determining the angular pose between the front of the vehicle and the vehicle body shown in the above embodiment.
[0150] This invention also provides a computer-readable storage medium. The methods described above according to embodiments of the invention can be implemented in hardware or firmware, or implemented as computer code that can be recorded on a storage medium, or implemented as computer code downloaded via a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and then stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code, which, when accessed and executed by the computer, processor, or hardware, implements the methods shown in the above embodiments.
[0151] Although embodiments of the invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations all fall within the scope defined by the appended claims.
Claims
1. A method for determining the angle pose between the front of a train and the carriage, characterized in that, The method includes: Acquire the front tilt angle, the carriage tilt angle, and the carriage image captured by the image acquisition device on the front of the train; Feature extraction is performed on the image of the carriage to obtain the target features corresponding to the target objects on the carriage; Based on the target features and the parameters of the image acquisition device, the distance features between the image acquisition device and the target object are determined. Specifically, based on the pixel width, pixel coordinates, and width of the target object in the target features, as well as the parameters of the image acquisition device, the relative distance and longitudinal distance between the image acquisition device and the target object are calculated. The relative distance between the image acquisition device and the target object is calculated using the following formula: , in the formula, Indicates the focal length of the image acquisition device. Indicates the pixel width of the target object. This indicates the relative distance between the image acquisition device and the target object. This represents the width of the target object; additionally, for coordinates in the world coordinate system... The target object is denoted as the coordinates of its corresponding pixel coordinate system. Based on the relationship between the four coordinate systems—world coordinate system, camera coordinate system, image coordinate system, and pixel coordinate system—and the linear imaging distance of the camera, we can obtain: make , , ,but The longitudinal distance between the image acquisition device and the target object can be obtained by changing the distance. : ,in, Represents an arbitrary scale factor. This represents the coordinates of the target object in the camera coordinate system. This represents the amount of coordinate change when transforming the world coordinates of the target object to the camera coordinate system; Based on the distance features, the locomotive tilt angle, and the carriage tilt angle, the angular pose between the locomotive and the carriage is determined.
2. The method according to claim 1, characterized in that, Determining the turning pose between the front and the carriage based on the distance features, the front tilt angle, and the carriage tilt angle includes: The pitch angle between the front of the vehicle and the sidecar is obtained based on the front of the vehicle and the sidecar tilt angle. Based on the distance characteristics, the yaw angle between the front of the train and the carriage is obtained; The angular pose between the front of the vehicle and the carriage is obtained based on the pitch angle and the yaw angle.
3. The method according to claim 2, characterized in that, The step of obtaining the yaw angle between the front of the train and the carriage based on the distance characteristics includes: The yaw angle between the front of the vehicle and the carriage is calculated based on the relative distance and longitudinal distance between the image acquisition device and the target object.
4. The method according to claim 1, characterized in that, The step of extracting features from the image of the carriage to obtain the target features corresponding to the target objects on the carriage includes: Feature extraction is performed on the carriage image using a pre-trained feature point model to obtain candidate feature points corresponding to the target object; The candidate feature points corresponding to the target object are filtered to obtain the target feature points; Based on the target feature points, the target features corresponding to the target objects on the carriage are obtained.
5. The method according to claim 1, characterized in that, The method further includes: When the front of the vehicle and the carriage are in a straight line, feature extraction is performed on the images of both sides of the carriage captured by the image acquisition device to obtain a set of pixel coordinates of multiple target objects on the carriage; The image acquisition device is subjected to distortion correction based on the pixel coordinate set, and the parameters of the image acquisition device are updated.
6. A device for determining the angle pose between the front of a vehicle and the carriage, characterized in that, The apparatus is used to implement the method according to any one of claims 1 to 5, the apparatus comprising: The acquisition module is used to acquire the front tilt angle, the carriage tilt angle, and the carriage image captured by the image acquisition device on the front of the train; The first processing module is used to extract features from the carriage image to obtain the target features corresponding to the target objects on the carriage; The second processing module is used to determine the distance features between the image acquisition device and the target object based on the target features and the parameters of the image acquisition device; specifically, it calculates the relative distance and longitudinal distance between the image acquisition device and the target object based on the pixel width, pixel coordinates, and width of the target object in the target features and the parameters of the image acquisition device. The third processing module is used to determine the angular pose between the front of the train and the carriage based on the distance features, the front tilt angle, and the carriage tilt angle.
7. A computer device, characterized in that, include: The system includes a memory and a processor, which are interconnected. The memory stores computer instructions, and the processor executes the computer instructions to perform the method for determining the angle pose between the front of the vehicle and the carriage as described in any one of claims 1 to 5.
8. A system for determining the angle pose between the front of a vehicle and the carriage, characterized in that, The system includes an image acquisition device, a controller, and at least two tilt sensors. The image acquisition device is mounted on the front of the vehicle and is used to acquire images of the vehicle body. The tilt sensors are correspondingly mounted on the front of the vehicle and the vehicle body and are used to acquire the tilt angle of the front of the vehicle and the tilt angle of the vehicle body, respectively. The controller is used to execute the method for determining the angular pose between the front of the vehicle and the vehicle body as described in any one of claims 1 to 5.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing the computer to execute the method for determining the angle pose between the front and the carriage as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Method, system and device for measuring steering angle of articulated mine truck based on double IMU (Inertial Measurement Unit) sensors
CN114715273A
Unmanned freight train bodywork surface covering status monitoring device
CN208547720U
