Method and system for measuring distance between wheel and lane line
By using curve fitting technology to calculate the ratio of pixel distance to actual distance in the measurement of wheel and lane line distance, the problem of low measurement accuracy in the prior art is solved, the accuracy of lane departure alarm is improved, and driving safety is enhanced.
Patent Information
- Application Number
- CN202411146281.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-20
- Publication Date
- 2024-11-12
AI Technical Summary
The prior art lacks an effective measurement method for measuring the distance between wheels and lane lines, resulting in low measurement accuracy, which in turn affects the accuracy of alarms when lane deviates.
By selecting the measurement origin and multiple measurement points, calculating the ratio relationship between the pixel distance and the actual distance, and performing curve fitting to determine the actual distance between the lane line and the wheel, improving measurement accuracy and alarm accuracy.
It realizes accurate measurement of the distance between the wheel and lane line, improves the alarm accuracy when lane deviates, and enhances driving safety.
Smart Images

Figure CN118936503A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a method and system for measuring the distance between a wheel and a lane line. Background Art
[0002] With the rapid development of modern society and technology, people's requirements for automobile driving safety are constantly increasing, making Advanced Driver Assistance Systems (ADAS) a standard configuration for commercial vehicles. ADAS integrates various sensors, cameras, radars, lidars and other devices to collect information about the vehicle and its surroundings in real time, and uses complex algorithms to analyze data to improve driving safety and convenience. Among them, the Lane Departure Warning (LDW) function is particularly important. This function monitors whether the vehicle deviates from the lane through the front camera and sensors, and issues a warning when deviation occurs. The system determines whether the vehicle crosses the lane line by calculating the relative distance between the wheel and the lane line, and warns the driver through sound, vision or steering wheel vibration.
[0003] During the development of the LDW function, multiple long-mileage road tests must be conducted on the vehicle, and videos from the wheel's perspective must be recorded to determine the accuracy of the alarm. Generally, an alarm when the wheel crosses the lane or completely deviates from the lane is considered a normal alarm. However, when there is still a certain amount of space between the actual distance between the wheel and the lane line, it becomes particularly important to accurately obtain the distance between the wheel and the lane line to determine the rationality of the alarm.
[0004] However, the existing technology lacks an effective method for measuring the distance between the wheel and the lane line, resulting in low measurement accuracy; and low accuracy of warning when facing lane deviation. Summary of the invention
[0005] The main purpose of the present invention is to provide a method and system for measuring the distance between wheels and lane lines, so as to solve the technical problems that the prior art lacks an effective method for measuring the distance between wheels and lane lines, resulting in low measurement accuracy and low alarm accuracy when facing lane deviation.
[0006] In order to achieve the above object, according to one aspect of the present invention, a method for measuring the distance between a wheel and a lane line is provided, comprising:
[0007] S1: Select the measurement origin and multiple measurement points;
[0008] S2: Calculate the pixel distance from each of the measurement points to the measurement origin;
[0009] S3: measuring the actual distance from each of the measuring points to the measuring origin;
[0010] S4: Calculating the distance ratio between the actual distance from each of the measuring points to the measuring origin and the pixel distance;
[0011] S5: taking the pixel distance from the measuring point to the measuring origin as an independent variable and the distance ratio between the actual distance from the measuring point to the measuring origin and the pixel distance as a dependent variable, performing curve fitting to obtain a curve fitting result;
[0012] S6: Acquire the image to be measured;
[0013] S7: Determine the target pixel distance between the lane line and the wheel in the image to be measured
[0014] S8: determining a target distance ratio relationship corresponding to the target pixel distance according to the curve fitting result;
[0015] S9: Determine the actual distance between the lane line and the wheel in the image to be measured according to the target pixel distance and the corresponding target distance ratio relationship.
[0016] Furthermore, the number of the measuring points is 3.
[0017] Furthermore, the distance ratio relationship between the actual distance from each of the measurement points to the measurement origin and the pixel distance is specifically:
[0018]
[0019] Among them, R i Indicates the ratio of the actual distance from the i-th measurement point to the measurement origin to the pixel distance, L i represents the actual distance from the i-th measurement point to the measurement origin, S i Represents the pixel distance from the i-th measurement point to the measurement origin.
[0020] Furthermore, the S5 specifically includes:
[0021] S501: Taking the pixel distance from the measuring point to the measuring origin as the independent variable and the distance ratio between the actual distance from the measuring point to the measuring origin and the pixel distance as the dependent variable, determine three data points (S i ,R i );
[0022] S502: Perform cubic equation curve fitting based on the three data points:
[0023] R A (S) = aS 3 +bS2 +cS+d
[0024] Among them, R A (S) represents the first distance ratio relationship between the actual distance and the pixel distance at the pixel distance value S, S represents the pixel distance from the measuring point to the measuring origin, a represents the cubic term coefficient, b represents the quadratic term coefficient, c represents the linear term coefficient, and d represents the constant term coefficient.
[0025] Furthermore, the curve fitting result includes a cubic term coefficient, a quadratic term coefficient, a linear term coefficient and a constant term coefficient.
[0026] Further, after S502, S5 specifically further includes:
[0027] S503: Based on the three data points, curve fitting is performed using a Lagrange basis function interpolation polynomial:
[0028]
[0029] Among them, R B (S) represents the second distance ratio relationship between the actual distance at the pixel distance value S and the pixel distance, S represents the pixel distance value of the interpolation point, l i (S) represents the Lagrange basis function factor corresponding to the i-th pixel distance value, S i Represents the i-th pixel distance value, R i It represents the ratio of the actual distance corresponding to the i-th pixel distance value to the pixel distance, S j Indicates that except S i Known pixel distance values other than ;
[0030] S504: The cubic equation curve fitting result and the Lagrange basis function interpolation polynomial curve fitting result are fused through a fusion algorithm:
[0031] R = αR A (S)+(1-α)R B (S)
[0032] Among them, R represents the final ratio of the actual distance to the pixel distance, and α represents the weight factor of the cubic equation curve fitting result.
[0033] Furthermore, after S5 and before S6, the following steps are further included:
[0034] The measurement origin, the normal line starting point, the normal line end point and the curve fitting result are saved in a configuration file.
[0035] Furthermore, the S7 specifically includes:
[0036] S701: determining a normal line according to the normal line starting point and the normal line end point, and using the normal line as a measuring scale line;
[0037] S702: Determine the intersection point between the measuring scale line and the inner edge of the lane line in the image to be measured;
[0038] S703: Calculate the pixel distance between the intersection point and the measurement origin as the target pixel distance.
[0039] Furthermore, after S9, the method further includes:
[0040] S10: Determine whether the fourth actual distance is less than the preset distance, and if so, issue an alarm; otherwise, continue monitoring.
[0041] According to one aspect of the present invention, a system for measuring the distance between a wheel and a lane line is provided, comprising:
[0042] processor;
[0043] A memory having computer-readable instructions stored therein, wherein when the computer-readable instructions are executed by the processor, the above-mentioned method for measuring the distance between the wheel and the lane line is implemented.
[0044] By applying the technical solution of the present invention, a measurement origin and multiple measurement points are selected, the pixel distance from each measurement point to the measurement origin is calculated, the actual distance from each measurement point to the measurement origin is measured, the distance ratio relationship between the actual distance from each measurement point to the measurement origin and the pixel distance is calculated, the pixel distance from the measurement point to the measurement origin is used as an independent variable, and the distance ratio relationship between the actual distance from the measurement point to the measurement origin and the pixel distance is used as a dependent variable, an accurate fitting model is established, the measurement accuracy of the distance between the wheel and the lane line is improved, and then the accuracy of the alarm when facing lane deviation is improved.
[0045] In addition to the above-described purposes, features and advantages, the present invention has other purposes, features and advantages. The present invention will be further described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] The accompanying drawings constituting a part of the present invention are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the accompanying drawings:
[0047] Figure 1 A schematic flow chart of a method for measuring the distance between a wheel and a lane line provided in an embodiment of the present invention is shown;
[0048] Figure 2 A schematic structural diagram of a system for measuring the distance between a wheel and a lane line provided in an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0049] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0050] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0051] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so as to describe the embodiments of the present invention described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0052] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprise" and / or "include" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.
[0053] Reference Manual Attached Figure 1 , shows a schematic flow chart of a method for measuring the distance between a wheel and a lane line provided in an embodiment of the present invention.
[0054] An embodiment of the present invention provides a method for measuring the distance between a wheel and a lane line, comprising:
[0055] S1: Select the measurement origin and multiple measurement points.
[0056] In a possible implementation manner, the number of measurement points is 3.
[0057] In the present invention, selecting multiple measurement points can enhance the stability and accuracy of the measurement process and help to better process and analyze data.
[0058] S2: Calculate the pixel distance from each measurement point to the measurement origin.
[0059] Among them, pixel distance is an important concept in image processing, which refers to the pixel interval or distance between two points in the image coordinate system.
[0060] In the present invention, calculating the pixel distance from each measuring point to the measuring origin is a basic step to realize the actual distance calculation in the image measurement system, which is helpful for accurately converting and analyzing the image data.
[0061] S3: Measure the actual distance from each measuring point to the measuring origin.
[0062] The actual distance refers to the real physical distance between two points in the real world.
[0063] In the present invention, measuring the actual distance from each measuring point to the measuring origin is a key step to ensure the accuracy and reliability of the image measurement system. It provides basic data to link the image data with the real world, which helps to improve the measurement accuracy of the distance between the wheel and the lane line.
[0064] S4: Calculate the distance ratio between the actual distance from each measuring point to the measuring origin and the pixel distance.
[0065] In a possible implementation manner, the distance ratio relationship between the actual distance from each measurement point to the measurement origin and the pixel distance is specifically:
[0066]
[0067] Among them, R i Indicates the ratio of the actual distance from the i-th measurement point to the measurement origin to the pixel distance, L i represents the actual distance from the i-th measurement point to the measurement origin, S i Represents the pixel distance from the i-th measurement point to the measurement origin.
[0068] In the present invention, by calculating the ratio of the actual distance to the pixel distance, a conversion relationship from the pixel distance to the actual distance can be established, and the distance data in the image can be converted into the actual physical distance. At the same time, the ratio relationship provides a method for correcting measurement errors. If there is a systematic error or image distortion in the measurement, the ratio of the actual distance to the pixel distance can be used to make adjustments to ensure the accuracy of the measurement results.
[0069] It should be noted that the image will be distorted to a certain extent due to the shape of the lens, resulting in different ratios of the actual distances between each pixel on the image. The distance between the wheel edge and the lane line is usually measured by calculating the distance from a point to a straight line. Therefore, it is particularly important in the present invention to find the ratio between the pixel points on the normal line and the actual distance.
[0070] S5: The pixel distance from the measuring point to the measuring origin is taken as the independent variable, and the distance ratio between the actual distance from the measuring point to the measuring origin and the pixel distance is taken as the dependent variable, and curve fitting is performed to obtain the curve fitting result.
[0071] In a possible implementation, S5 specifically includes:
[0072] S501: The pixel distance from the measuring point to the measuring origin is used as the independent variable, and the distance ratio between the actual distance from the measuring point to the measuring origin and the pixel distance is used as the dependent variable to determine the three data points (S i ,R i ).
[0073] S502: Perform cubic equation curve fitting based on the three data points:
[0074] R A (S) = aS 3 +bS 2 +cS+d
[0075] Among them, R A (S) represents the first distance ratio relationship between the actual distance and the pixel distance at the pixel distance value S, S represents the pixel distance from the measurement point to the measurement origin, a represents the cubic term coefficient, b represents the quadratic term coefficient, c represents the linear term coefficient, and d represents the constant term coefficient.
[0076] In the present invention, the complex nonlinear relationship between pixel distance and actual distance can be captured by curve fitting using a cubic equation. The cubic equation can provide flexible fitting capabilities to adapt to different data change trends.
[0077] In a possible implementation manner, after S502, S5 specifically further includes:
[0078] S503: Based on the three data points, curve fitting is performed using a Lagrange basis function interpolation polynomial:
[0079]
[0080] Among them, R B (S) represents the second distance ratio relationship between the actual distance at the pixel distance value S and the pixel distance, S represents the pixel distance value of the interpolation point, l i(S) represents the Lagrange basis function factor corresponding to the i-th pixel distance value, S i Represents the i-th pixel distance value, R i It represents the ratio of the actual distance corresponding to the i-th pixel distance value to the pixel distance, S j Indicates that except S i .
[0081] In the present invention, the use of Lagrange basis function interpolation polynomials can provide accurate interpolation results between known data points, and can effectively handle situations where data points are sparse or high-precision interpolation is required.
[0082] S504: The cubic equation curve fitting result and the Lagrange basis function interpolation polynomial curve fitting result are fused through a fusion algorithm:
[0083] R = αR A (S)+(1-α)R B (S)
[0084] Among them, R represents the final ratio of the actual distance to the pixel distance, and α represents the weight factor of the cubic equation curve fitting result.
[0085] In the present invention, by integrating the fitting results of the cubic equation and the Lagrange interpolation, the advantages of the two methods can be comprehensively considered, and a more stable and accurate final curve fitting result can be obtained.
[0086] In summary, by integrating different fitting methods, a more accurate and robust conversion relationship between pixel distance and actual distance can be established, thereby improving the accuracy of measurement.
[0087] In a possible implementation manner, after S5 and before S6, the method further includes:
[0088] The measurement origin, normal line start point, normal line end point, and curve fitting results are saved in the configuration file.
[0089] In the present invention, in the subsequent processing steps, reading the data in the configuration file can simplify the data input and processing process, avoid repeated calculations and improve work efficiency.
[0090] S6: Acquire the image to be measured.
[0091] S7: Determine a target pixel distance between the lane line and the wheel in the image to be measured.
[0092] In a possible implementation, S7 specifically includes:
[0093] S701: Determine a normal line according to a normal line starting point and a normal line end point, and use the normal line as a measurement scale line.
[0094] In the present invention, by determining the normal line as the measuring scale line, the target position between the lane line and the wheel can be accurately located.
[0095] S702: Determine the intersection point between the measuring scale line and the inner edge of the lane line in the image to be measured.
[0096] In the present invention, the intersection of the normal line and the inner edge of the lane line can reduce the error caused by the measurement angle or viewing angle, thereby improving the accuracy of the pixel distance.
[0097] S703: Calculate the pixel distance between the intersection point and the measurement origin as the target pixel distance.
[0098] In the present invention, by determining the normal line as the measurement scale line, the measurement error caused by different viewing angles or shooting angles can be reduced. The normal line is a line perpendicular to the lane line, so the intersection with the lane line in the image more accurately reflects the actual relationship between the wheel and the lane line. At the same time, the normal line provides a unified measurement standard. No matter how the image viewing angle changes, using the normal line for measurement can maintain a relatively consistent measurement standard and adapt to image data at different shooting angles.
[0099] S8: Determine the target distance ratio relationship corresponding to the target pixel distance according to the curve fitting result.
[0100] Specifically, the measuring scale line is printed on the image, and the actual distance between the intersection of the measuring scale line and the inner edge of the lane line and the measuring origin is the actual distance between the wheel and the lane line. When the vehicle's LDW function alarm sounds, if the wheel is on the inside of the lane line, the intersection of the measuring scale line and the inner edge of the lane line can be obtained, and the pixel distance between the intersection and the measuring origin can be calculated. The pixel distance is substituted into the cubic equation described above to obtain the accurate ratio of the actual distance and pixel distance at that position.
[0101] S9: Determine the actual distance between the lane line and the wheel in the image to be measured according to the target pixel distance and the corresponding target distance ratio relationship.
[0102] Specifically, the target pixel distance is substituted into the cubic equation described above to obtain the exact ratio of the actual distance and pixel distance at that location. Then, the actual distance between the wheel and the lane line can be calculated based on the product of the ratio and the pixel distance.
[0103] In the present invention, the actual distance between the wheel and the lane line is calculated according to the target pixel distance and the corresponding target distance ratio relationship, which can achieve accurate distance measurement and improve prediction accuracy.
[0104] In a possible implementation manner, after S9, the method further includes:
[0105] S10: Determine whether the fourth actual distance is less than the preset distance, and if so, issue an alarm. Otherwise, continue monitoring.
[0106] It should be noted that those skilled in the art can set the size of the preset distance according to actual needs, and the present invention is not limited here.
[0107] In the present invention, if the distance between the wheel and the lane line is less than a preset value, it may indicate that the vehicle has deviated from the lane. By issuing an alarm, timely measures can be taken to prevent collisions and traffic accidents, thereby improving the safety of the system. At the same time, automatically issuing an alarm can reduce reliance on manual intervention and reduce the risk of human error.
[0108] From the above description, it can be seen that the method for measuring the distance between the wheel and the lane line provided by the present invention can select a measurement origin and multiple measurement points, calculate the pixel distance from each measurement point to the measurement origin, measure the actual distance from each measurement point to the measurement origin, calculate the distance ratio relationship between the actual distance from each measurement point to the measurement origin and the pixel distance, use the pixel distance from the measurement point to the measurement origin as the independent variable, and the distance ratio relationship between the actual distance from the measurement point to the measurement origin and the pixel distance as the dependent variable, establish an accurate fitting model, improve the measurement accuracy of the distance between the wheel and the lane line, and then improve the accuracy of the alarm when facing lane deviation.
[0109] Reference Manual Attached Figure 2 , shows a schematic structural diagram of a system for measuring the distance between a wheel and a lane line provided in an embodiment of the present invention.
[0110] The embodiment of the present invention provides a wheel-lane distance measurement system 20, comprising:
[0111] Processor 201;
[0112] The memory 202 stores computer-readable instructions, and when the computer-readable instructions are executed by the processor 201, the above-mentioned method for measuring the distance between the wheel and the lane line is implemented.
[0113] From the above description, it can be seen that the wheel and lane line distance measurement system provided by the present invention can select a measurement origin and multiple measurement points, calculate the pixel distance from each measurement point to the measurement origin, measure the actual distance from each measurement point to the measurement origin, calculate the distance ratio relationship between the actual distance from each measurement point to the measurement origin and the pixel distance, use the pixel distance from the measurement point to the measurement origin as the independent variable, and the distance ratio relationship between the actual distance from the measurement point to the measurement origin and the pixel distance as the dependent variable, establish an accurate fitting model, improve the measurement accuracy of the wheel and lane line distance, and then improve the accuracy of the alarm when facing lane deviation.
[0114] Unless otherwise specifically stated, the relative arrangement of the parts and steps described in these embodiments, numerical expressions and numerical values do not limit the scope of the present invention. At the same time, it should be understood that, for ease of description, the sizes of the various parts shown in the accompanying drawings are not drawn according to the actual proportional relationship. The technology, method and equipment known to ordinary technicians in the relevant field may not be discussed in detail, but in appropriate cases, the technology, method and equipment should be regarded as a part of the authorization specification. In all examples shown and discussed here, any specific value should be interpreted as being merely exemplary, rather than as a limitation. Therefore, other examples of exemplary embodiments may have different values. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once a certain item is defined in an accompanying drawing, it does not need to be further discussed in subsequent drawings.
[0115] For ease of description, spatially relative terms such as "above", "above", "on the upper surface of", "above", etc. may be used here to describe the spatial positional relationship between a device or feature and other devices or features as shown in the figure. It should be understood that spatially relative terms are intended to include different orientations of the device in use or operation in addition to the orientation described in the figure. For example, if the device in the accompanying drawings is inverted, the device described as "above other devices or structures" or "above other devices or structures" will be positioned as "below other devices or structures" or "below other devices or structures". Thus, the exemplary term "above" can include both "above" and "below". The device can also be positioned in other different ways (rotated 90 degrees or in other orientations), and the spatially relative descriptions used here are interpreted accordingly.
[0116] In the description of the present invention, it is necessary to understand that the directions or positional relationships indicated by directional words such as "front, back, up, down, left, right", "lateral, vertical, perpendicular, horizontal" and "top, bottom" are usually based on the directions or positional relationships shown in the drawings. They are only for the convenience of describing the present invention and simplifying the description. Unless otherwise specified, these directional words do not indicate or imply that the devices or elements referred to must have a specific direction or be constructed and operated in a specific direction. Therefore, they cannot be understood as limiting the scope of protection of the present invention. The directional words "inside and outside" refer to the inside and outside relative to the contours of each component itself.
[0117] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for measuring the distance between a wheel and a lane line, characterized in that: include: S1: Select the measurement origin and multiple measurement points; S2: Calculate the pixel distance from each of the measurement points to the measurement origin; S3: measuring the actual distance from each of the measuring points to the measuring origin; S4: Calculating the distance ratio between the actual distance from each of the measuring points to the measuring origin and the pixel distance; S5: taking the pixel distance from the measuring point to the measuring origin as an independent variable and the distance ratio between the actual distance from the measuring point to the measuring origin and the pixel distance as a dependent variable, performing curve fitting to obtain a curve fitting result; S6: Acquire the image to be measured; S7: Determine the target pixel distance between the lane line and the wheel in the image to be measured; S8: determining a target distance ratio relationship corresponding to the target pixel distance according to the curve fitting result; S9: Determine the actual distance between the lane line and the wheel in the image to be measured according to the target pixel distance and the corresponding target distance ratio relationship.
2. The method for measuring the distance between a wheel and a lane line according to claim 1, characterized in that: The number of the measuring points is 3.
3. The method for measuring the distance between a wheel and a lane line according to claim 2, characterized in that: The distance ratio relationship between the actual distance from each of the measurement points to the measurement origin and the pixel distance is specifically: Among them, R i Indicates the ratio of the actual distance from the i-th measurement point to the measurement origin to the pixel distance, L i represents the actual distance from the i-th measurement point to the measurement origin, S i Represents the pixel distance from the i-th measurement point to the measurement origin.
4. The method for measuring the distance between a wheel and a lane line according to claim 3, characterized in that: The S5 specifically includes: S501: Taking the pixel distance from the measuring point to the measuring origin as the independent variable and the distance ratio between the actual distance from the measuring point to the measuring origin and the pixel distance as the dependent variable, determine three data points (S i ,R i ); S502: Perform cubic equation curve fitting based on the three data points: R A (S)=aS 3 +bS 2 +cS+d Among them, R A (S) represents the first distance ratio relationship between the actual distance and the pixel distance at the pixel distance value S, S represents the pixel distance from the measuring point to the measuring origin, a represents the cubic term coefficient, b represents the quadratic term coefficient, c represents the linear term coefficient, and d represents the constant term coefficient.
5. The method for measuring the distance between a wheel and a lane line according to claim 4, characterized in that: The curve fitting result includes cubic term coefficients, quadratic term coefficients, linear term coefficients and constant term coefficients.
6. The method for measuring the distance between a wheel and a lane line according to claim 4, characterized in that: After S502, S5 specifically further includes: S503: Based on the three data points, curve fitting is performed using a Lagrange basis function interpolation polynomial: Among them, R B (S) represents the second distance ratio relationship between the actual distance at the pixel distance value S and the pixel distance, S represents the pixel distance value of the interpolation point, l i (S) represents the Lagrange basis function factor corresponding to the i-th pixel distance value, S i Represents the i-th pixel distance value, R i It represents the ratio of the actual distance corresponding to the i-th pixel distance value to the pixel distance, S j Indicates that except S i Known pixel distance values other than ; S504: The cubic equation curve fitting result and the Lagrange basis function interpolation polynomial curve fitting result are fused through a fusion algorithm: R=αR A (S)+(1-α)R B (S) Among them, R represents the final ratio of the actual distance to the pixel distance, and α represents the weight factor of the cubic equation curve fitting result.
7. The method for measuring the distance between a wheel and a lane line according to claim 1, characterized in that: After S5 and before S6, the method further includes: The measurement origin, the normal line starting point, the normal line end point and the curve fitting result are saved in a configuration file.
8. The method for measuring the distance between a wheel and a lane line according to claim 6, characterized in that: The S7 specifically includes: S701: determining a normal line according to the normal line starting point and the normal line end point, and using the normal line as a measuring scale line; S702: Determine the intersection point between the measuring scale line and the inner edge of the lane line in the image to be measured; S703: Calculate the pixel distance between the intersection point and the measurement origin as the target pixel distance.
9. The method for measuring the distance between a wheel and a lane line according to claim 5, characterized in that: After S9, the method further includes: S10: Determine whether the fourth actual distance is less than the preset distance, and if so, issue an alarm; otherwise, continue monitoring.
10. A wheel and lane line distance measurement system, characterized in that: include: processor; A memory having computer-readable instructions stored thereon, wherein when the computer-readable instructions are executed by the processor, the method for measuring the distance between a wheel and a lane line as claimed in any one of claims 1 to 9 is implemented.
Citation Information
Cited By
Vehicle speed detection method, device and equipment
CN120148259A
