Vehicle speed detection method, system and computer readable storage medium
By obtaining effective feature points in the image sequence during the vehicle chassis shooting process, calculating the synchronization speed and deducing the target speed, the problem of inconvenient vehicle speed detection is solved and efficient and accurate vehicle speed detection is achieved.
Patent Information
- Application Number
- CN202110577554.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-26
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-05-26
AI Technical Summary
During the vehicle chassis photography process, due to changes in the vehicle's driving speed, the length ratio of the front and rear of the photos taken is inconsistent. The existing technology requires setting distance measuring instruments at the front and rear of the vehicle to calculate the driving speed, but this will cause obstacles to the vehicle's movement and is not enough. convenient.
By obtaining effective feature points in the image sequence, determine the effective feature combination, calculate the synchronous speed of the vehicle based on the displacement parameters and time parameters of the feature points, reduce obstacles to the vehicle's driving path, and deduce the target through the momentum weighting method and the variation weighting method. speed to improve the accuracy of speed detection.
It achieves accurate detection of vehicle speed without affecting the driving of the vehicle, reduces obstacles to the vehicle's driving path, and improves the accuracy and efficiency of speed detection.
Smart Images

Figure CN113484530B
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle parameter detection, and in particular to a vehicle speed detection method, system and computer-readable storage medium. Background Art
[0002] With the development of science and technology and the improvement of people's economic level, many people use cars for travel, the scale of the automobile industry is also increasing, and people are paying more and more attention to the quality and performance of automobiles. Vehicle speed detection is a basic test item used to detect the actual speed of the vehicle. It is often used in traffic safety violation detection or factory vehicle quality inspection. Vehicle speed detection can also assist in the implementation of some other inspection items, such as vehicle chassis photography.
[0003] In the process of photographing the vehicle chassis, in order to obtain a sufficiently tilted and complete vehicle chassis picture, the user usually uses a camera to continuously shoot the chassis of the moving vehicle in sections, obtain several segmented photos, and then stitch the segmented photos together to form a complete vehicle chassis picture. The principle of obtaining a complete vehicle chassis picture is similar to the principle of taking panoramic photos. However, since the vehicle speed may change during driving, the change in speed will cause the length ratio of the front and back photos to be inconsistent. At this time, it is necessary to introduce the actual speed of the vehicle, that is, while shooting, adjust the shooting frequency according to the actual speed of the vehicle, so as to obtain segmented photos that meet the standard requirements, and then stitch them together.
[0004] In the related technology, for example, a Chinese invention application with application publication number CN102905079A discloses a method, device and mobile terminal for panoramic shooting. The method includes determining the current time interval for capturing two adjacent frames of images based on the initial speed and acceleration of the current time interval of the camera and the moving distance of two adjacent frames of images that meet the panoramic picture stitching conditions; taking the inverse of the current time interval to obtain the frequency of captured images; and sending the frequency of captured images to the camera, instructing the camera to capture images for generating panoramic photos according to the frequency of captured images.
[0005] With respect to the above technical solution, the inventor believes that, in the process of photographing the chassis of a vehicle, in order to obtain the actual speed of the vehicle, it is generally necessary to place distance measuring instruments in front and behind the vehicle respectively, and calculate the actual speed by continuously measuring the distance between the two distance measuring instruments and the vehicle. However, the setting of the distance measuring instruments will cause obstacles to the driving of the vehicle and is not convenient enough. Summary of the invention
[0006] The first object of the present application is to provide a vehicle speed detection method, which has the characteristic of conveniently detecting the vehicle's driving speed.
[0007] The above-mentioned invention objective of the present application is achieved through the following technical solutions:
[0008] A vehicle speed detection method, characterized in that:
[0009] Acquire an image sequence based on preset time parameters;
[0010] Acquire valid feature points in the image sequence and determine a valid feature combination, wherein the valid feature combination includes valid feature points corresponding to different images;
[0011] Determine the displacement parameter of the effective feature combination according to the position of the effective feature point in the same effective feature combination;
[0012] The synchronous speed is determined according to the displacement parameter and the time parameter, wherein the synchronous speed can reflect the driving speed of the vehicle.
[0013] By adopting the above technical solution, after acquiring the image sequence, feature points can be extracted from the image sequence, and the displacement of the vehicle can be reflected by the displacement of the feature points to obtain the displacement parameters, and then the synchronization speed can be determined by the displacement parameters and time parameters. By continuously shooting images and analyzing the displacement of feature points to calculate the actual driving speed of the vehicle, the obstruction to the vehicle's driving path during actual speed measurement can be reduced, which is more convenient.
[0014] When acquiring feature points, the system may acquire wrong feature points, resulting in a pair of feature points that are actually different. Therefore, there are valid feature points and invalid feature points among all feature points. In order to make the final synchronous speed more accurate, valid feature points should be selected to form a valid feature combination, and then the next step of analysis should be carried out to improve the accuracy of speed detection.
[0015] Optionally, the specific method of obtaining valid feature points in the image sequence and determining the valid feature combination includes:
[0016] Acquire feature points in an image sequence and determine a feature combination, wherein the feature combination includes feature points corresponding to different images; preset effective parameters, determine motion parameters of feature points in the same feature combination, and determine an effective feature combination based on the motion parameters and effective parameters.
[0017] By adopting the above technical solution, the motion parameters can reflect the displacement of two feature points in the same feature combination, and the effective parameters are used to compare with the motion parameters to analyze whether the displacement of the feature points is normal. If it is abnormal, the feature combination is judged to be an invalid feature combination, otherwise, the feature combination is determined to be a valid feature combination.
[0018] Optionally, in presetting effective parameters, determining motion parameters of feature points in the same feature combination, and determining the effective feature combination according to the motion parameters and effective parameters, the specific method includes:
[0019] Preset reference coordinate system and effective parameters;
[0020] Determine the starting coordinates and the end coordinates according to the positions of the feature points in the feature combination corresponding to the reference coordinate system;
[0021] Determining motion parameters according to the starting coordinates and the end coordinates, wherein the motion parameters include deviation motion parameters from a preset driving direction of the vehicle;
[0022] According to the deviation motion parameters and the effective parameters, the effective feature combination is determined.
[0023] By adopting the above technical solution, the deviation motion parameter is used to reflect the degree of deviation between the motion direction of the feature point and the preset driving direction of the vehicle. By comparing the deviation motion parameter with the effective parameter, it can be determined whether the displacement of the feature point seriously deviates from the normal driving direction of the vehicle, which is equivalent to evaluating whether the offset of the feature point is too large, so that the feature combination with a smaller offset can be obtained as a valid feature combination.
[0024] Optionally, in presetting effective parameters, determining motion parameters of feature points in the same feature combination, and determining the effective feature combination according to the motion parameters and effective parameters, the specific method includes:
[0025] Preset reference coordinate system and effective parameters;
[0026] Determine the starting coordinates and the end coordinates according to the positions of the feature points in the feature combination corresponding to the reference coordinate system;
[0027] Determine motion parameters according to the starting coordinates and the end coordinates, wherein the motion parameters include a moving motion parameter corresponding to a preset driving direction of the vehicle and a deviation motion parameter deviating from the preset driving direction of the vehicle;
[0028] A valid feature combination is determined based on the valid parameters, the travel motion parameters and the deviation motion parameters.
[0029] By adopting the above technical scheme, the travel motion parameters are used to reflect the degree of correspondence between the movement direction of the feature points and the preset driving direction of the vehicle. During normal vehicle driving, there should be obvious differences between the travel motion parameters and the deviation motion parameters. By comparing the travel motion parameters and the deviation motion parameters, the feature combination with more realistic travel motion parameters can be determined as a valid feature combination.
[0030] Optionally, the specific method for determining the synchronization speed according to the displacement parameter and the time parameter includes:
[0031] Determine a time difference value according to the position of the image in the image sequence and a preset time parameter, wherein the time difference value refers to the time difference between the acquisition times of different images;
[0032] Determine a height parameter, and determine a basic speed according to a displacement parameter, a time difference value, and a preset focal length parameter, wherein the height parameter is the distance between the image acquisition module and the vehicle;
[0033] The synchronization speed is determined based on the base speed.
[0034] By adopting the above technical solution, the acquisition times corresponding to the two selected images should be different, and the difference between the two acquisition times is the time difference value. The actual driving distance of the vehicle can be calculated using the distance between the camera lens and the vehicle, the focal length of the camera lens, and the displacement parameters obtained by analyzing the pixel points. The basic speed of the vehicle can be calculated using the actual driving distance of the vehicle and the time difference value.
[0035] Optionally, the specific method for determining the synchronization speed according to the basic speed includes:
[0036] Determine a first basic speed and a second basic speed, wherein the first basic speed and the second basic speed are basic speeds corresponding to different time nodes respectively;
[0037] determining a first acceleration according to the first base speed and the second base speed;
[0038] The momentum weighted method determines the target speed according to the first basic speed, the first acceleration and the time difference value.
[0039] By adopting the above technical solution, after using the known basic speed to determine the acceleration, the acceleration can be used to deduce the future changes in vehicle speed, and then the future target speed can be deduced. The momentum weighting method is a method of deducing the target speed by combining a constant acceleration and a known basic speed. This method of deducing speed does not require reacquiring images, and only uses a preset time difference value to participate in the deduction, which reduces the time required for the system to send and receive electrical signals or perform photo taking. There is no problem of difference between the actual time difference and the time difference value, which improves the accuracy of the vehicle speed.
[0040] Optionally, the specific method for determining the synchronization speed according to the basic speed includes:
[0041] Determine a first basic speed and a second basic speed, wherein the first synchronous speed and the second synchronous speed are basic speeds corresponding to different time nodes;
[0042] Determine a first acceleration according to the first basic speed, the second basic speed and the time difference value;
[0043] Determine a third basic speed according to the first acceleration, the second basic speed and the time difference value;
[0044] Determine a second acceleration according to the second basic speed, the third basic speed and the time difference value;
[0045] determining an acceleration change value according to the first acceleration and the second acceleration;
[0046] The variable weighted method determines the target speed based on the third basic speed, the time difference value, the acceleration change value, and the preset variable coefficient.
[0047] By adopting the above technical solution, after determining the acceleration using the known basic speed, different accelerations can be used to determine the acceleration change value to deduce possible future changes in acceleration, and then deduce the future acceleration, and then use the obtained acceleration to deduce the future changes in vehicle speed, and then deduce the future target speed.
[0048] The variable weighting method is actually a method of deducing the target speed by combining the changing acceleration and the known basic speed. This method of deducing speed has the same effect as the momentum weighting method. It does not require reacquiring images, but only uses the preset time difference value to participate in the deduction, which reduces the time consumed by the system when sending and receiving electrical signals or taking pictures. There is no problem of difference between the actual time difference and the time difference value, which improves the accuracy of the vehicle speed.
[0049] Optionally, the variation coefficient can vary according to different time nodes.
[0050] By adopting the above technical solution, the variation coefficient refers to an adjustment coefficient preset in the system to determine the amplitude of the acceleration change; the value of the variation coefficient will affect the amplitude of the acceleration change. Since the amplitude of the acceleration change in different time periods is not constant, in order to make the predicted acceleration closer to the actual, the variation coefficient should also be changed according to the change of the actual speed, that is, at different time nodes, the value of the variation coefficient is also different, so different acceleration change values correspond to different variation coefficients.
[0051] Optionally, the specific method for determining the synchronization speed according to the basic speed includes:
[0052] Determine a first basic speed and a second basic speed, wherein the first synchronous speed and the second synchronous speed are basic speeds corresponding to different time nodes;
[0053] determining a first acceleration according to the first base speed and the second base speed;
[0054] Determine a third basic speed according to the first acceleration, the second basic speed and the time difference value;
[0055] Determine a second acceleration according to the second basic speed, the third basic speed and the time difference value;
[0056] Determining an acceleration change value according to the first acceleration and the second acceleration, and selecting a velocity deduction method based on the acceleration change value, wherein the velocity deduction method includes a momentum weighted method and a variation weighted method;
[0057] Determine the target speed based on the selected speed deduction method.
[0058] By adopting the above technical solution, the acceleration change value refers to the difference between the acceleration before and after the acceleration changes when the acceleration of the vehicle changes. The acceleration can be determined by using different base speeds; the acceleration change value can be determined by using different accelerations. If the acceleration change value does not exist, it means that the acceleration does not change, and the momentum weighting method can be used to deduce the target speed; if the acceleration change value exists, it means that the acceleration will change, and the variable weighting method can be used to deduce the target speed.
[0059] The second purpose of this application is to provide a vehicle speed detection system, which has the characteristic of conveniently detecting the vehicle's driving speed.
[0060] The second object of the invention is achieved by the following technical solutions:
[0061] An image acquisition module, used for acquiring an image sequence based on a preset time parameter;
[0062] The image acquisition module includes a camera submodule, a lens submodule for increasing the shooting field of view of the camera submodule, an illumination submodule for increasing the ambient brightness of the shooting field of view, and a height measurement submodule for detecting the distance between the lens submodule and the vehicle;
[0063] An effective feature point acquisition module is used to acquire effective feature points in an image sequence and determine effective feature combinations, wherein the effective feature combinations include effective feature points corresponding to different images;
[0064] A displacement parameter acquisition module, used to determine the displacement parameters of the effective feature combination according to the positions of the effective feature points in the same effective feature combination; and
[0065] The speed prediction module is used to determine the synchronous speed according to the displacement parameter and the time parameter.
[0066] The third purpose of this application is to provide a computer storage medium that can store corresponding programs and has the characteristic of conveniently detecting the vehicle's driving speed.
[0067] The third object of the invention is achieved by the following technical solutions:
[0068] A computer-readable storage medium stores a computer program that can be loaded by a processor and execute any of the above-mentioned vehicle speed detection methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] Figure 1 is a schematic diagram of multiple image sequences at different speeds, and the figure shows image sequence (1), image sequence (2) and image sequence (3) respectively.
[0070] Figure 2 It is a flow chart of the vehicle speed detection method of the present application.
[0071] Figure 3 It is a schematic diagram of the position between the image acquisition module and the vehicle.
[0072] Figure 4 It is a schematic diagram of a sub-process for determining a valid feature combination in a total feature set in the vehicle speed detection method of the present application.
[0073] Figure 5 It is a schematic diagram of the positions of the starting coordinates and the end coordinates in the reference coordinate system.
[0074] Figure 6 It is a schematic diagram of a sub-process for determining the synchronous speed in the vehicle speed detection method of the present application.
[0075] Figure 7 It is a schematic diagram of the working status of the lens of the image acquisition module.
[0076] Figure 8 It is a schematic diagram of a sub-process of selecting a speed deduction method in the vehicle speed detection method of the present application and deducing a target speed according to the determined speed deduction method.
[0077] Fig. 9 It is a schematic diagram of the relationship between the first basic speed, the second basic speed, the third basic speed, the first acceleration, the second acceleration and the acceleration change value.
[0078] Fig.10 It is a schematic diagram of a sub-process for deducing a target speed according to a determined speed deduction method in the vehicle speed detection method of the present application.
[0079] Fig.11 It is a module schematic diagram of the vehicle speed detection system of the present application.
[0080] Fig.12 The invention is a schematic diagram of a computer-readable storage medium storing a computer program that can be loaded by a processor and execute a vehicle speed detection method.
[0081] In the figure, 1. Image acquisition module; 11. Camera submodule; 12. Lens submodule; 13. Lighting submodule; 14. Height measurement submodule; 2. Effective feature point acquisition module; 3. Displacement parameter acquisition module; 4. Speed prediction module. DETAILED DESCRIPTION
[0082] In the related art, when photographing the chassis of a vehicle, the user usually uses a camera to continuously photograph the chassis of a moving vehicle in sections, obtains a number of section photos, and then stitches the section photos together to form a complete vehicle chassis image. However, since the vehicle speed may change during driving, the change in speed will cause the length ratio of the front and back sections of the photographed sections to be inconsistent.
[0083] Reference Figure 1 , image sequence (1), image sequence (2) and image sequence (3) are all image sequences obtained continuously at the same specific frame rate, that is, the time interval between two adjacent segmented photos is consistent, where V01, V02 and V03 are all the actual driving speeds of the vehicle, where V01<V02<V03.
[0084] For each segmented photo obtained from the image sequence (1), the system can smoothly stitch together a complete vehicle chassis image. However, for each segmented photo obtained from the image sequence (2) or the image sequence (3), the system still needs to perform some repair processing on the segmented photos before trying to stitch each segmented photo into a complete vehicle chassis image.
[0085] Therefore, in order to successfully stitch together a complete vehicle chassis image, when the vehicle's driving speed changes, the frame rate of the camera's image needs to be adjusted synchronously according to the vehicle's real-time driving speed. The vehicle's real-time driving speed is equivalent to an auxiliary parameter to adjust the frame rate. By changing the time interval between two adjacent segmented photos in the subsequent segmented photos, the defect of vehicle speed changes can be compensated, so that subsequent shooting can obtain photos that meet basic standard requirements.
[0086] In order to know the real-time driving speed of the vehicle, the user usually places distance meters in front and behind the vehicle respectively, and calculates the actual driving speed by continuously measuring the distance between the two distance meters and the vehicle. However, the setting of the distance meter will hinder the driving of the vehicle and is not convenient enough.
[0087] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0088] In addition, the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article, unless otherwise specified, generally means that the associated objects before and after are in an "or" relationship.
[0089] The following is attached to the instruction manual Figure 2-12 The embodiments of the present application are described in further detail.
[0090] Embodiment 1
[0091] An embodiment of the present application provides a vehicle speed detection method, and the main process of the method is described as follows.
[0092] Reference Figure 2 , S01. Acquire an image sequence based on preset time parameters.
[0093] Among them, the image sequence includes several images, and all the images are obtained by continuously shooting a moving vehicle at the same frame rate. In this embodiment, the image sequence includes at least three images. The time parameter refers to the time interval when two adjacent images are obtained, and the time parameter is associated with the frame rate. It can be understood that in the process of continuously acquiring each image in sequence at a specific frame rate, each image corresponds to a time node when it is acquired, and the time interval between adjacent time nodes is the time parameter. Since each frame image in the image sequence is obtained in sequence in the order of increasing time, the time node can also reflect the position of the image in the image sequence.
[0094] Reference Figure 3 In order to reduce the obstruction to the vehicle's driving path, the detection system using the vehicle speed detection method in this embodiment includes an image acquisition module 1, and the image acquisition module 1 is arranged at the bottom of the vehicle. The image sequence is obtained by the detection system shooting the chassis of the vehicle during driving.
[0095] Reference Figure 2 , S02, obtain valid feature points in the image sequence and determine a valid feature combination.
[0096] Among them, feature points refer to the pixel points that can be obtained after the image is processed and can reflect the essence of the image. By collecting the same feature points on the two images ("the same feature points" refer to two feature points with the same corresponding positions on the actual vehicle, but the positions of these two feature points in the image are not consistent), and analyzing the position change path of each feature point, the moving distance of the vehicle can be calculated. Combined with the time difference between the time nodes of the two images, the moving speed of the vehicle within the preset time can be determined. However, when acquiring feature points, the system may acquire wrong feature points, resulting in a pair of feature points that are actually not the same, resulting in the acquired feature points being difficult to reflect the moving distance of the vehicle during normal driving. These feature points are invalid feature points. Therefore, all feature points can be divided into valid feature points and invalid feature points.
[0097] In two adjacent images or two selected images, the same two valid feature points can form a valid feature combination, so the valid feature combination contains valid feature points corresponding to different images.
[0098] Reference Figure 4 , in the specific method of S02, including:
[0099] S021. Select two images in the image sequence as a basic image group, obtain feature points of the selected basic image group, determine feature combinations, and establish a feature set containing all feature combinations.
[0100] Among them, the basic image group includes two different images. All feature points can be processed and collected by the feature point detection algorithm in the image sequence, wherein the feature point detection algorithm is a common method in image processing, and this scheme does not improve the feature point detection algorithm. In this embodiment, two identical feature points in two adjacent images form a feature combination, wherein the time parameter is the time interval when the two adjacent images are acquired, which is equivalent to the time difference between two adjacent frames of images.
[0101] S022. Preset effective parameters, determine motion parameters of feature points in the same feature combination, and determine the effective feature combination in the total feature set based on the motion parameters and effective parameters.
[0102] Among them, the motion parameters can reflect the displacement of two feature points in the same feature combination; the effective parameters are used to compare with the motion parameters, and then analyze whether the displacement of the two feature points in the feature combination meets the preset standards. If so, the feature combination can be determined as a valid feature combination.
[0103] The feature set contains all feature combinations. The feature set is equivalent to a displacement list. The feature combination is equivalent to the column in the displacement list, and each column contains motion parameters. Among all feature combinations, there are valid feature combinations and invalid feature combinations. The valid feature combination contains two valid feature points, and the invalid feature combination contains two invalid feature points.
[0104] Reference Figure 4 and Figure 5 , the specific method of S022 includes:
[0105] S0221. Preset reference coordinate system and valid parameters.
[0106] The reference coordinate system is a plane rectangular coordinate system, the reference coordinate system is established based on the image, and the origin of the reference coordinate system is in the same position in different images. In this embodiment, the extension direction of the x-axis of the reference coordinate system is parallel to the preset driving direction of the vehicle during normal driving.
[0107] S0222. Determine the starting coordinates and the ending coordinates according to the positions of the feature points in the feature combination corresponding to the reference coordinate system.
[0108] Among them, all feature points can determine the corresponding coordinates in the reference coordinate system. It can be understood that if the vehicle is in a driving state, the positions of the two feature points in the feature combination in the reference coordinate system are different. Since each feature combination contains two feature points, each feature combination corresponds to two coordinates, which are the starting coordinate and the end coordinate, respectively. The time node of the feature point corresponding to the starting coordinate is located before the time node of the feature point corresponding to the end coordinate.
[0109] S0223. Determine motion parameters according to the starting coordinates and the ending coordinates.
[0110] The motion parameters include travel motion parameters and deviation motion parameters. The travel motion parameters are used to reflect the correspondence between the motion direction of the feature point and the preset driving direction of the vehicle. In this embodiment, the direction corresponding to the travel motion parameter is the x-axis direction of the reference coordinate system, and the travel motion parameter is the absolute value of the difference between the x-coordinate of the starting coordinate and the x-coordinate of the end coordinate.
[0111] The deviation motion parameter is used to reflect the degree of deviation between the motion direction of the feature point and the preset driving direction of the vehicle, which is equivalent to reflecting the deviation amount of the displacement of the feature point; in this embodiment, the direction corresponding to the deviation motion parameter is the y-axis direction of the reference coordinate system, and the deviation motion parameter is the absolute value of the difference between the y-coordinate of the starting coordinate and the y-coordinate of the end coordinate.
[0112] If the feature point (X, Y) and the feature point '(X', Y') are two feature points in the same feature combination, then the value of the moving motion parameter of the same feature combination is the absolute value of the difference between X' and X, and the value of the deviation motion parameter of the same feature combination is the absolute value of the difference between Y' and Y.
[0113] S0224. Determine a valid feature combination in the total feature set based on the valid parameters, the traveling motion parameters, and the deviation motion parameters.
[0114] The effective parameters include a first effective parameter and a second effective parameter, wherein the first effective parameter corresponds to the y-axis direction of the reference coordinate system. By comparing the first effective parameter, the second effective parameter, the traveling motion parameter and the deviation motion parameter, all feature combinations are analyzed to determine the effective feature combination.
[0115] Reference Figure 4 and Figure 5 , in the specific method of S0224, including:
[0116] S02241. Compare the first valid parameter and the deviation motion parameter to determine the basic feature combination in the total feature set.
[0117] Among them, the first effective parameter is the threshold value when the feature point moves in the y-axis direction of the reference coordinate system. If the deviation motion parameter is greater than or equal to the first effective parameter, it means that the movement of the feature combination corresponding to the deviation motion parameter seriously deviates from the normal driving direction of the vehicle. Therefore, the feature combination corresponding to the deviation motion parameter is judged to be an invalid feature combination; otherwise, it is judged that the deviation degree of the feature combination corresponding to the deviation motion parameter is within the preset threshold, and the feature combination can be obtained as the basic feature combination.
[0118] S02242. Determine a valid feature combination in the total feature set according to a ratio between the traveling motion parameter and the deviation motion parameter and a preset second valid parameter.
[0119] Among them, the travel motion parameters can reflect the distance traveled by the vehicle in the normal driving direction. In the normal driving state, the movement of the feature points on the x-axis should be clearly different and limited from the movement on the y-axis. Therefore, for an effective feature combination, the difference between the travel motion parameters and the deviation motion parameters should be large.
[0120] If the ratio between the moving motion parameter and the deviation motion parameter is less than the second valid parameter, it means that the moving motion parameter and the deviation motion parameter are relatively close, and it is judged that the acquisition of the moving motion parameter is not accurate, and the two feature points acquired are not accurate. Therefore, the basic feature combination corresponding to the moving motion parameter is determined to be an invalid feature combination; if the ratio between the moving motion parameter and the deviation motion parameter is greater than or equal to the second valid parameter, it means that the moving motion parameter is in the normal range, and the basic feature combination corresponding to the moving motion parameter is determined to be a valid feature combination.
[0121] By screening the first effective parameter, several basic feature combinations can be screened out from the total feature set, and by comparing the first effective parameter, several effective feature combinations can be further screened out. By calculating the effective feature combinations, the displacement of the vehicle in the normal driving direction can be determined more accurately.
[0122] Reference Figure 4 and Figure 5 , S03, determine the valid action parameters according to the starting coordinates and the end coordinates of the valid feature combination, and determine the displacement parameters according to each valid action parameter.
[0123] The effective action parameter refers to the displacement of the feature point of the effective feature combination in the normal driving direction of the vehicle, which is related to the position of the feature point in the effective feature combination. Since the travel motion parameter is the displacement of the feature point on the x-axis, the travel motion parameter of the effective feature combination can be obtained as the effective action parameter of the effective feature combination.
[0124] The displacement parameter refers to the displacement of the vehicle in the normal driving direction, and the displacement of the characteristic point can reflect the real displacement of the vehicle, so the displacement parameter can be determined by the effective action parameter. In order to make the displacement parameter more accurate and convincing, the displacement parameter is the average value of all effective action parameters.
[0125] In this embodiment, the distance between adjacent units on the x-axis of the reference coordinate system is the length of the pixels of the image. The movement reflected by the effective action parameter is equivalent to the feature point moving a number of pixels on the x-axis. Therefore, in the process of calculating the effective action parameter, the length of a single pixel is defined as the pixel length m, and the number of pixels between the starting coordinate and the end coordinate is defined as the moving pixel N. The effective action parameter can be obtained by formula (1).
[0126] Effective action parameter = pixel length m * moving pixel N (l)
[0127] Similarly, the average value of the moving pixels N of each valid feature combination is defined as moving pixels N x , then, the displacement parameter can be obtained by formula (2).
[0128] Displacement parameter = pixel length m * moving pixel N x (2)
[0129] Reference Figure 6 , S04, determine the synchronization speed according to the displacement parameter and the time parameter.
[0130] Among them, through displacement parameters and time parameters, the displacement of the vehicle along the normal driving direction within a specific time can be calculated, and the basic speed of the vehicle can be calculated. By introducing a preset acceleration into the basic speed for calculation, the synchronous speed of the vehicle at a preset time node in the future can be deduced.
[0131] Reference Figure 6 , the specific method of S04 includes:
[0132] S041. Determine a time difference value according to a position of the image in the image sequence and a preset time parameter.
[0133] The acquisition times corresponding to the two selected images should be different, and the difference between the two acquisition times is the time difference value. In this embodiment, the two selected images are images of two adjacent frames in the image sequence, so the time difference value is equal to the time parameter; in other embodiments, if two images separated by e frames in the image sequence are selected, the time difference value is the time parameter*e.
[0134] S042. Determine a height parameter, and determine a basic speed according to the height parameter, the displacement parameter, the time difference value, and a preset focal length parameter.
[0135] Among them, the height parameter refers to the image acquisition module 1 (refer to Figure 3 ) and the chassis of the vehicle. The image in this embodiment is acquired by the image acquisition module 1 through shooting the vehicle from a distance. Therefore, the actual driving distance of the vehicle can be calculated using the acquired height parameters, the focal length of the lens of the image acquisition module 1, and the displacement parameters acquired by analyzing the pixel points, and the basic speed of the vehicle can be calculated using the actual driving distance of the vehicle and the time difference value.
[0136] Define the focal length of the camera lens as focal length f, the distance between the camera lens and the vehicle as distance h, and the actual travel distance of the vehicle as distance L. Then, the distance L can be obtained by formula (3).
[0137]
[0138] Define the time difference as △t, and then the basic speed can be obtained by formula (4).
[0139]
[0140] S043. Determine a target speed according to the basic speed, store the target speed in a preset synchronization database, and obtain a target speed that meets the time node condition from the synchronization database as the synchronization speed.
[0141] The synchronization speed refers to the speed that can reflect the vehicle's driving speed and can be used in conjunction with other technologies that require the introduction of vehicle driving speed. The synchronization database contains all target speeds obtained in chronological order. In practical applications such as vehicle chassis photography technology, after the synchronization speed is determined, the system can adjust the shooting frequency of the camera used to take segmented photos in real time, that is, adjust the time interval between two adjacent segmented photos, thereby compensating for the defect of vehicle speed changes in real time.
[0142] However, in the process of measuring vehicle speed by combining image calculation, the system needs time to send and receive electrical signals and take pictures. This time causes the actual time difference to differ from the preset time difference by tens to hundreds of milliseconds. Calculated at a speed of 5km / h, the vehicle often has passed tens of centimeters, which is not accurate enough and there will be problems with speed synchronization differences. Moreover, during the process of moving forward, if the vehicle speed in the previous period of time is used for synchronization, the impact of the speed synchronization difference problem will become increasingly greater.
[0143] Therefore, if the synchronization speed is always determined by combining image calculation, the risk is relatively high. In order to alleviate the problem of speed synchronization difference, this solution also introduces the speed deduction method to predict the target speed. The principle of speed deduction is to predict the future changes of the basic speed based on the acquired basic speed, as well as the frequency and magnitude of the changes, so as to deduce the target speed after a specific time, store the target speed in the synchronization database, and arrange each target speed according to the time node.
[0144] When the synchronous speed of the corresponding time node needs to be obtained, the target speed of the selected time node is obtained as the synchronous speed, which is equivalent to calculating the synchronous speed in advance. This method of calculating the synchronous speed in advance is used to replace the image calculation method. When calculating the synchronous speed in the future, there is no need to re-acquire the image. Only the preset time difference value is used for deduction. There is no problem of difference between the actual time difference and the time difference value, which improves the accuracy of the vehicle speed.
[0145] Reference Figure 8 , in the specific method of S043, including:
[0146] S0431. Store the basic speed as the target speed in a preset synchronization database, store the basic speed in a preset basic database, and determine whether the basic speed in the basic database meets the deduction condition. If so, execute S0432; if not, return to S021 and select the next group of basic image groups in chronological order.
[0147] The synchronization database refers to a database containing all target speeds, and the obtained basic speed can be stored in the synchronization database as the initial target speed. The deduction condition refers to whether there are two basic speeds corresponding to different time periods and with the same time difference in the basic database, so the number of basic speeds in the basic database should be 2.
[0148] If the number of basic speeds in the basic database is less than 2, the speed deduction lacks the necessary conditions, and it is necessary to return to step S021 and reselect the basic image group. It is worth noting that the two reselected images should be the next images of the already selected images. For example, in the acquired image sequence, image a1, image a2, and image a3 are sequentially arranged in chronological order. If the current basic image group includes image a1 and image a2, the next reselected basic image group should include image a2 and image a3.
[0149] If the number of basic speeds in the basic database is equal to 2, the speed deduction meets the necessary conditions and the speed deduction can be performed.
[0150] It is understandable that, since there are at most two basic speeds, the synchronization database also has two target speeds by directly obtaining the basic speed as the target speed, and all target speeds in the synchronization database except these two target speeds are obtained by deducing the two basic speeds.
[0151] S0432. Determine a speed deduction method according to different basic speeds in the basic database, deduce a target speed according to the determined speed deduction method, and store the determined target speeds in the synchronization database in chronological order.
[0152] Among them, the moving process of the vehicle is generally divided into the process of uniform speed, acceleration, deceleration and stopping. In the actual driving process, it is difficult for the vehicle to move in a straight line at a uniform speed completely according to the preset driving direction. It will still have a certain acceleration, and the acceleration may also change. Therefore, in order to obtain a more accurate target speed, on the basis of the two basic speeds, it is also necessary to calculate the target speed through a speed deduction method corresponding to different speed change laws. In this embodiment, the speed deduction method includes a momentum weighted method and a variable weighted method, and the acceleration remains unchanged in the deduction of the momentum weighted method, and the deduction acceleration itself in the variable weighted method will change.
[0153] Reference Figure 8 and Fig. 9 , in the specific method of S0432, including:
[0154] S04321. Determine a first basic speed and a second basic speed according to different basic speeds in a basic database, and determine a first acceleration according to the first basic speed and the second basic speed.
[0155] The basic speed stored earlier in the basic database at the time level is the first basic speed, and the basic speed stored later is the second basic speed; that is, the first basic speed is the basic speed corresponding to the first basic image group, and the second basic speed is the basic speed corresponding to the next basic image group. In this embodiment, only two basic speeds are stored in the basic database. When a new basic speed is updated into the basic database, the basic speed stored earlier in the basic database will be deleted.
[0156] For example, in the acquired image sequence, image a1, image a2, and image a3 are sequentially arranged in time order, wherein the interval time between image a1 and image a2 is a time difference value, the interval time between image a2 and image a3 is also a time difference value, and the time difference value is an integer multiple of the time parameter;
[0157] The first basic speed is obtained by the image a1 and the image a2 through the method described in step S021 to step S042;
[0158] The second basic speed is obtained from the image a2 and the image a3 through the method described in steps S021 to S042.
[0159] Furthermore, by comparing the first basic speed with the second basic speed, it can be determined whether a first acceleration exists between the first basic speed and the second basic speed.
[0160] Define the first base speed as V m-3 , the second basic speed is V m-2 , the first acceleration is A m-3 , the time difference is △t, then A can be obtained by formula (5) m-3 .
[0161]
[0162] S04322. Determine whether the first acceleration satisfies the constant speed condition. If so, return to S021 and select the next basic image group in chronological order; if not, execute S04323.
[0163] Among them, if the first acceleration is equal to 0, the constant speed condition is met, which means that after time t, the vehicle speed remains unchanged at the first basic speed and the vehicle is in a constant speed driving state. This situation is unlikely to occur during the actual driving of the vehicle, so it is necessary to return to S021 to recalculate the first acceleration.
[0164] If the first acceleration is greater than or equal to 0, the constant speed condition is not met, which means that the vehicle speed will change with time.
[0165] S04323. Determine a third basic speed according to the first acceleration, the second basic speed and the time difference value.
[0166] The third basic speed is the basic speed that the second basic speed becomes after time t. Using the first acceleration, the change of the second basic speed after time t can be deduced, thereby obtaining the third basic speed. The third basic speed is defined as V m-1 , then V can be obtained by formula (6) m-1 .
[0167] V m-1 =V m-2 +(A m-3 *Δt) (6)
[0168] S04324. Determine a second acceleration according to the second basic speed, the third basic speed and the time difference value.
[0169] By comparing the second basic speed with the third basic speed, a second acceleration between the second basic speed and the third basic speed can be obtained. The second acceleration is defined as A m-2 , then A can be obtained by formula (7) m-2 .
[0170]
[0171] S04325. Determine the acceleration change value according to the first acceleration and the second acceleration, and judge whether the acceleration change value satisfies the momentum constant condition. If so, execute S043261; otherwise, execute S043262.
[0172] The acceleration change value refers to the difference between the acceleration before and after the acceleration changes when the acceleration of the vehicle changes. The existence of the acceleration change value can be used to determine whether the first acceleration and the second acceleration are equal.
[0173] If the first acceleration and the second acceleration are equal and the acceleration change value is 0, the momentum constancy condition is met, the vehicle is in uniform acceleration motion, and the acceleration remains unchanged during driving. Therefore, the target speed can be deduced according to the momentum weighting method. On the contrary, if the acceleration change value is not 0, the momentum constancy condition is not met. During the driving process of the vehicle, the acceleration itself will change, and the target speed can be deduced according to the variable weighting method.
[0174] S04326. Determine the target speed according to the selected speed deduction method, store the determined target speed in the synchronization database in chronological order, and execute S0433.
[0175] Reference Figure 8 and Fig.10 , in the specific method of S04326, including:
[0176] S043261. Momentum weighted method: determine the target speed according to the first basic speed, the first acceleration and the time difference value, store the determined target speed in the synchronization database in chronological order, and execute S0433.
[0177] Among them, the momentum weighting method is a method of deducing speed by using constant acceleration by eliminating the change amplitude of acceleration. Since the vehicle is in a uniformly accelerated movement, as time increases, the first basic speed changes according to the first acceleration, and the target speed at the corresponding time node can be determined.
[0178] Define the target speed as V m , the time node corresponding to the target speed is T m , the time node corresponding to the first basic speed is T 0 , T m With T 0 The time difference between them is t m , where t m is a positive integer multiple of the time parameter, then V can be obtained by formula (8): m .
[0179] V m =V m-3 +A m-3 *t m (8)
[0180] According to the momentum weighting method, the target speeds at different time nodes can be obtained in sequence according to the order of gradually increasing time nodes. After the obtained target speeds are stored in the synchronization database in sequence according to the order of gradually increasing acquisition time, it is equivalent to that each target speed has only one order corresponding to time. When it is necessary to obtain the actual driving speed of the vehicle at a certain time node, the target speed of the corresponding order can be obtained from the synchronization database as the synchronization speed that can represent the actual driving speed of the vehicle.
[0181] In addition, in other embodiments, the momentum weighted method may also use other formulas such as formula (8-1), formula (8-2), etc. to combine the first basic speed and the first acceleration to deduce the target speed.
[0182] in,
[0183]
[0184] In formula (8-1), β is a momentum adjustment coefficient and is variable. Different first accelerations correspond to different momentum adjustment coefficients. Each momentum adjustment coefficient is obtained by the user through experimental experience and preset in the system.
[0185] V m =V m-3 +A m-3 *δ*t m (8-2)
[0186] In formula (8-1), δ is the momentum adjustment coefficient and is unique. It is obtained by the user through experimental experience and preset in the system.
[0187] S043262, the weighted variation method, determines the target speed according to the third basic speed, the time difference value, the acceleration change value, and the preset variation coefficient, stores the determined target speed in the preset synchronization database in chronological order, and executes S0433.
[0188] Among them, the variation weighting method is a method of predicting the acceleration change iteration by weighting the acceleration change amplitude into the speed prediction, and then obtaining a better speed value of the square acceleration change value. The variation coefficient refers to an adjustment coefficient preset in the system to determine the acceleration change amplitude; the value of the variation coefficient will affect the magnitude of the acceleration change.
[0189] Since the acceleration changes in different time periods are not constant, in order to make the predicted acceleration closer to the actual acceleration, the coefficient of variation should also be changed according to the change in the actual speed. That is, the value of the coefficient of variation is different at different time nodes, so different acceleration change values correspond to different coefficients of variation.
[0190] In an embodiment, each variation coefficient is obtained by a user through experimental experience and preset in the system. In other embodiments, the variation coefficient can also be deduced through methods such as big data analysis and machine learning.
[0191] Specifically, by analyzing the change between the first acceleration and the second acceleration, the acceleration change value can be determined. The acceleration change value is defined as AA m-3 , then AA can be obtained by formula (9): m-3 .
[0192] AA m-3 =A m-2 -A m-3 (9)
[0193] Define the variation coefficient as α. The value of the variation coefficient is associated with the time node corresponding to the acceleration change value. That is, for different time nodes, the value of the variation coefficient is also different. It can be obtained by formula (10): m .
[0194]
[0195] Among them, V m-1 is the third basic speed, A m-2 is the second acceleration. It can be understood that V m The corresponding time node is the mth time node on the time axis, V m-1 The corresponding time node is the m-1th time node on the time axis.
[0196] It can be understood that after determining the first basic speed and the second basic speed, the second acceleration, the third basic speed and the acceleration change value can be calculated by formula (5), formula (6), formula (7) and formula (9), and then the target speed can be calculated by formula (10) in combination with the variation coefficient.
[0197] For example, taking m=3 as an example, V0 and V1 are determined by the method of steps S021 to S042;
[0198] On the basis of V0 and V1 being determined, A0 can be obtained by formula (5), V2 can be obtained by formula (6), A1 can be obtained by formula (7), and AA0 can be obtained by formula (9). On the basis of V2, A1, and AA0 being determined, V3 can be obtained by combining the corresponding coefficients of variation by formula (10);
[0199] On the basis of V2 and V3 being determined, A2 can be obtained by formula (7), and AA1 can be obtained by formula (9) in combination with A1. On the basis of V3, A2, AA1, and AA0 being determined, V4 can be obtained by formula (10) in combination with the corresponding coefficient of variation.
[0200] On the basis of V3 and V4 being determined, A3 can be obtained by formula (7), and AA2 can be obtained by formula (9) in combination with A2. On the basis of V4, A3, AA2, AA1, and AA0 being determined, V5 can be obtained by formula (10) in combination with the corresponding coefficients of variation.
[0201] On the basis of V4 and V5 being determined, A4 can be obtained by formula (7), and AA3 can be obtained by formula (9) in combination with A3. On the basis of V5, A4, AA3, AA2, AA1, and AA0 being determined, V6 can be obtained by formula (10) in combination with the corresponding coefficients of variation.
[0202] And so on.
[0203] On the basis of having determined Vn-2 and Vn-1, An-2 can be obtained through formula (7), and combined with An-3, AAn-3 can be obtained through formula (9). On the basis of having determined Vn-1, An-2, AAn-3, AAn-4, AAn-5, ..., AAn-n, Vn can be obtained by combining the corresponding variation coefficients through formula (10).
[0204] Through the derivation of the above examples, it can be understood that as long as the first basic speed and the second basic speed are determined, the vehicle speed at the next time node of the second basic speed can be obtained. Therefore, as long as the first basic speed and the second basic speed are continuously updated and iterated, the vehicle speed at the next time node can be obtained one by one in chronological order, so that the target speed of the future time node can be gradually obtained. In the embodiment, the initial first basic speed and the initial second basic speed are determined by analyzing the image feature points, that is, V0 and V1 need to be obtained in combination with image processing, and all other speeds can be deduced and obtained, and then the target speed corresponding to the future time node can be obtained.
[0205] According to the weighted variation method, the target speeds at different time nodes can be obtained in sequence according to the order of increasing time nodes. After the obtained target speeds are stored in the synchronization database in sequence according to the order of increasing acquisition time, it is equivalent to making each target speed have and have an order corresponding to time.
[0206] S0433. Based on the selected time node, obtain the synchronization speed from the synchronization database.
[0207] When it is necessary to obtain the actual driving speed of the vehicle at a certain time node, the target speed of the corresponding order can be obtained from the synchronization database based on the selected time node, and the obtained target speed can be used as the synchronization speed that can represent the actual driving speed of the vehicle.
[0208] The implementation principle of a vehicle speed detection method in an embodiment of the present application is as follows: by using a feature point extraction method, the actual driving speed of the vehicle can be calculated by continuously shooting images and analyzing the displacement of feature points, which can reduce the obstruction to the vehicle's driving path during actual speed measurement and is more convenient. In the method of analyzing feature points, the accuracy of the speed obtained after analyzing the feature points is improved by screening effective feature points, thereby improving the accuracy of speed detection.
[0209] After obtaining the basic speed that meets the deduction conditions, the system can automatically deduce the various synchronous speeds of the vehicle at future time nodes through the initial two basic speeds and the preset coefficient of variation. In technologies that require the actual driving speed of the vehicle to participate in the auxiliary, such as vehicle chassis photography technology, each synchronous speed can be used as an auxiliary parameter for analysis. Using the speed deduction method, on the one hand, the synchronous speed can be obtained in advance. Compared with the method of obtaining the synchronous speed by analyzing feature points, the speed deduction method can obtain the synchronous speed more quickly, so that the synchronous speed can be transmitted to other devices more quickly for coordination; on the other hand, the speed deduction method does not require the system to re-acquire the image. When calculating the synchronous speed later, it is not necessary to re-acquire the image. Only the preset time difference value is used for deduction, which reduces the time consumed by the system when sending and receiving electrical signals or taking pictures. There is no problem of difference between the actual time difference and the time difference value, which improves the accuracy of the vehicle speed.
[0210] Embodiment 2:
[0211] Reference Fig.11 In one embodiment, a vehicle speed detection system is provided, which corresponds to the vehicle speed detection method in the first embodiment. The system includes an image acquisition module 1, an effective feature point acquisition module 2, a displacement parameter acquisition module 3 and a speed prediction module 4. The functional modules are described in detail as follows:
[0212] The image acquisition module 1 is used to acquire an image sequence based on a preset time parameter.
[0213] The image acquisition module 1 includes a camera submodule 11, a lens submodule 12 for increasing the shooting field of view of the camera submodule 11, an illumination submodule 13 for improving the ambient brightness of the shooting field of view, and a height measurement submodule 14 for detecting the distance between the lens submodule 12 and the vehicle.
[0214] The effective feature point acquisition module 2 acquires effective feature points in the image sequence and determines effective feature combinations, wherein the effective feature combinations include effective feature points corresponding to different images.
[0215] The displacement parameter acquisition module 3 is used to determine the displacement parameters of the effective feature combination according to the positions of the effective feature points in the same effective feature combination.
[0216] The speed prediction module 4 is used to determine the synchronous speed according to the displacement parameter and the time parameter.
[0217] Embodiment three:
[0218] Reference Fig.12 In one embodiment, a computer-readable storage medium is provided, which stores a computer program that can be loaded by a processor and execute the above-mentioned vehicle speed detection method. When the computer program is executed by the processor, the following steps are implemented: S01. Acquire an image sequence based on a preset time parameter.
[0219] S021. Select two images in the image sequence as a basic image group, obtain feature points of the selected basic image group, determine feature combinations, and establish a feature set containing all feature combinations.
[0220] S0221. Preset reference coordinate system and valid parameters.
[0221] S0222. Determine the starting coordinates and the ending coordinates according to the positions of the feature points in the feature combination corresponding to the reference coordinate system.
[0222] S0223. Determine motion parameters according to the starting coordinates and the ending coordinates.
[0223] S02241. Compare the first valid parameter and the deviation motion parameter to determine the basic feature combination in the total feature set.
[0224] S02242. Determine a valid feature combination in the total feature set according to a ratio between the traveling motion parameter and the deviation motion parameter and a preset second valid parameter.
[0225] S03. Determine valid action parameters according to the starting coordinates and the end coordinates of the valid feature combination, and determine displacement parameters according to each valid action parameter.
[0226] S041. Determine a time difference value according to a position of the image in the image sequence and a preset time parameter.
[0227] S042. Determine a height parameter, and determine a basic speed according to the height parameter, the displacement parameter, the time difference value, and a preset focal length parameter.
[0228] S0431. Store the basic speed as the target speed in the preset synchronization database, store the basic speed in the preset basic database, and determine whether the basic speed in the basic database meets the deduction conditions. If so, execute S04321; if not, return to S021 and select the next group of basic image groups in chronological order.
[0229] S04321. Determine a first basic speed and a second basic speed according to different basic speeds in a basic database, and determine a first acceleration according to the first basic speed and the second basic speed.
[0230] S04322. Determine whether the first acceleration satisfies the constant speed condition. If so, return to S021 and select the next basic image group in chronological order; if not, execute S04323.
[0231] S04323. Determine a third basic speed according to the first acceleration, the second basic speed and the time difference value.
[0232] S04324. Determine a second acceleration according to the second basic speed, the third basic speed and the time difference value.
[0233] S04325. Determine the acceleration change value according to the first acceleration and the second acceleration, and judge whether the acceleration change value satisfies the momentum constant condition. If so, execute S043261; otherwise, execute S043262.
[0234] S043261. Momentum weighted method: determine the target speed according to the first basic speed, the first acceleration and the time difference value, store the determined target speed in the synchronization database in chronological order, and execute S0433.
[0235] S04362, the weighted variation method, determines the target speed according to the third basic speed, the time difference value, the acceleration change value, and the preset variation coefficient, stores the determined target speed in the preset synchronization database in chronological order, and executes S0433.
[0236] S0433. Based on the selected time node, obtain the synchronization speed from the synchronization database.
[0237] The computer-readable storage medium includes, for example, various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0238] The embodiments of the specific implementation methods are all preferred embodiments of the present application, and are not intended to limit the protection scope of the present application. Therefore, any equivalent changes made based on the structure, shape, and principle of the present application should be included in the protection scope of the present application.
Claims
1. A vehicle speed detection method, characterized in that: Acquire an image sequence based on preset time parameters; Acquire valid feature points in an image sequence and determine valid feature combinations, wherein the valid feature combinations include valid feature points corresponding to different images; wherein, acquire feature points in an image sequence and determine feature combinations, wherein the feature combinations include feature points corresponding to different images; preset valid parameters, determine motion parameters of feature points in the same feature combination, and determine the valid feature combination based on the motion parameters and valid parameters; the motion parameters are used to reflect the displacement of two feature points in the same feature combination, and the valid parameters are used to compare with the motion parameters to analyze whether the displacement of two feature points in the feature combination meets the preset standard; Determine the displacement parameter of the effective feature combination according to the position of the effective feature point in the same effective feature combination; Determine the synchronous speed according to the displacement parameter and the time parameter, wherein the synchronous speed can reflect the driving speed of the vehicle; The steps of determining the effective feature combination include: presetting a reference coordinate system and effective parameters; Determine the starting coordinates and the end coordinates according to the positions of the feature points in the feature combination corresponding to the reference coordinate system; According to the starting coordinates and the end point coordinates, the motion parameters are determined; wherein the motion parameters include the traveling motion parameters and the deviation motion parameters; the traveling motion parameters are used to reflect the correspondence between the moving direction of the feature point and the preset driving direction of the vehicle, the direction corresponding to the traveling motion parameters is the x-axis direction of the reference coordinate system, and the traveling motion parameters are the absolute value of the difference between the x-coordinate of the starting coordinate and the x-coordinate of the end point coordinate; the deviation motion parameters are used to reflect the deviation between the moving direction of the feature point and the preset driving direction of the vehicle, which is equivalent to reflecting the deviation of the displacement of the feature point; the direction corresponding to the deviation motion parameters is the y-axis direction of the reference coordinate system, and the deviation motion parameters are the absolute value of the difference between the y-coordinate of the starting coordinate and the y-coordinate of the end point coordinate; Determine a valid feature combination in the feature set according to the valid parameters, the traveling motion parameters and the deviation motion parameters; wherein the valid parameters include a first valid parameter and a second valid parameter; The steps for determining valid feature combinations in the total feature set include: Compare the first effective parameter and the deviation motion parameter to determine the basic feature combination in the feature set; wherein the first effective parameter is a threshold when the feature point moves in the y-axis direction of the reference coordinate system; if the deviation motion parameter is greater than or equal to the first effective parameter, then the feature combination corresponding to the deviation motion parameter is judged to be an invalid feature combination; otherwise, then the deviation degree of the feature combination corresponding to the deviation motion parameter is judged to be within a preset threshold, and the feature combination is obtained as the basic feature combination; According to the ratio between the moving motion parameter and the deviation motion parameter and the preset second effective parameter, the effective feature combination in the total feature set is determined; if the ratio between the moving motion parameter and the deviation motion parameter is less than the second effective parameter, the basic feature combination corresponding to the motion parameters is determined to be an invalid feature combination; if the ratio between the moving motion parameter and the deviation motion parameter is greater than or equal to the second effective parameter, the basic feature combination corresponding to the moving motion parameters is determined to be a valid feature combination.
2. The method according to claim 1, characterized in that: The specific method for determining the synchronous speed according to the displacement parameter and the time parameter includes: Determine a time difference value according to the position of the image in the image sequence and a preset time parameter, wherein the time difference value refers to the time difference between the acquisition times of different images; Determine a height parameter, and determine a basic speed according to a displacement parameter, a time difference value, and a preset focal length parameter, wherein the height parameter is the distance between the image acquisition module and the vehicle; The synchronization speed is determined based on the base speed.
3. The method according to claim 2, characterized in that: The specific method for determining the synchronization speed according to the basic speed includes: Determine a first basic speed and a second basic speed, wherein the first basic speed and the second basic speed are basic speeds corresponding to different time nodes respectively; determining a first acceleration according to the first base speed and the second base speed; The momentum weighted method determines the target speed according to the first basic speed, the first acceleration and the time difference value.
4. The method according to claim 3, characterized in that: The specific method for determining the synchronization speed according to the basic speed includes: Determine a first basic speed and a second basic speed, wherein the first synchronous speed and the second synchronous speed are basic speeds corresponding to different time nodes; Determine a first acceleration according to the first basic speed, the second basic speed and the time difference value; Determine a third basic speed according to the first acceleration, the second basic speed and the time difference value; Determine a second acceleration according to the second basic speed, the third basic speed and the time difference value; determining an acceleration change value according to the first acceleration and the second acceleration; The variable weighted method determines the target speed based on the third basic speed, the time difference value, the acceleration change value, and the preset variable coefficient.
5. The method according to claim 4, characterized in that: The variation coefficient can vary according to different time nodes.
6. The method according to any one of claims 2 to 4, characterized in that: The specific method for determining the synchronization speed according to the basic speed includes: Determine a first basic speed and a second basic speed, wherein the first synchronous speed and the second synchronous speed are basic speeds corresponding to different time nodes; determining a first acceleration according to the first base speed and the second base speed; Determine a third basic speed according to the first acceleration, the second basic speed and the time difference value; Determine a second acceleration according to the second basic speed, the third basic speed and the time difference value; Determining an acceleration change value according to the first acceleration and the second acceleration, and selecting a velocity deduction method based on the acceleration change value, wherein the velocity deduction method includes a momentum weighted method and a variation weighted method; Determine the target speed based on the selected speed deduction method.
7. A vehicle speed detection system, characterized in that: Used to execute the vehicle speed detection method according to any one of claims 1 to 6, comprising An image acquisition module (1) is used to acquire an image sequence based on a preset time parameter; The image acquisition module (1) comprises a camera submodule (11), a lens submodule (12) for increasing the shooting field of view of the camera submodule (11), an illumination submodule (13) for increasing the ambient brightness of the shooting field of view, and a height measurement submodule (14) for detecting the distance between the lens submodule (12) and a vehicle; An effective feature point acquisition module (2) acquires effective feature points in the image sequence and determines an effective feature combination, wherein the effective feature combination includes effective feature points corresponding to different images; A displacement parameter acquisition module (3) is used to determine the displacement parameters of the effective feature combination according to the positions of the effective feature points in the same effective feature combination; and A speed prediction module (4) is used to determine the synchronous speed according to the displacement parameter and the time parameter; The effective feature point acquisition module (2) is configured as follows: Acquire feature points in an image sequence and determine a feature combination, wherein the feature combination includes feature points corresponding to different images; preset effective parameters, determine motion parameters of feature points in the same feature combination, and determine an effective feature combination based on the motion parameters and effective parameters; the motion parameters are used to reflect the displacement of two feature points in the same feature combination, and the effective parameters are used to compare with the motion parameters to analyze whether the displacement of two feature points in the feature combination meets the preset standard; Preset effective parameters, determine motion parameters of feature points in the same feature combination, and determine the effective feature combination according to the motion parameters and effective parameters, including: Preset reference coordinate system and effective parameters; Determine the starting coordinates and the end coordinates according to the positions of the feature points in the feature combination corresponding to the reference coordinate system; According to the starting coordinates and the end point coordinates, the motion parameters are determined; wherein the motion parameters include the traveling motion parameters and the deviation motion parameters; the traveling motion parameters are used to reflect the correspondence between the moving direction of the feature point and the preset driving direction of the vehicle, the direction corresponding to the traveling motion parameters is the x-axis direction of the reference coordinate system, and the traveling motion parameters are the absolute value of the difference between the x-coordinate of the starting coordinate and the x-coordinate of the end point coordinate; the deviation motion parameters are used to reflect the deviation between the moving direction of the feature point and the preset driving direction of the vehicle, which is equivalent to reflecting the deviation of the displacement of the feature point; the direction corresponding to the deviation motion parameters is the y-axis direction of the reference coordinate system, and the deviation motion parameters are the absolute value of the difference between the y-coordinate of the starting coordinate and the y-coordinate of the end point coordinate; Determine a valid feature combination in the feature set according to the valid parameters, the traveling motion parameters and the deviation motion parameters; wherein the valid parameters include a first valid parameter and a second valid parameter; The steps for determining valid feature combinations in the total feature set include: Compare the first effective parameter and the deviation motion parameter to determine the basic feature combination in the feature set; wherein the first effective parameter is a threshold when the feature point moves in the y-axis direction of the reference coordinate system; if the deviation motion parameter is greater than or equal to the first effective parameter, then the feature combination corresponding to the deviation motion parameter is judged to be an invalid feature combination; otherwise, then the deviation degree of the feature combination corresponding to the deviation motion parameter is judged to be within a preset threshold, and the feature combination is obtained as the basic feature combination; According to the ratio between the moving motion parameter and the deviation motion parameter and the preset second effective parameter, the effective feature combination in the total feature set is determined; if the ratio between the moving motion parameter and the deviation motion parameter is less than the second effective parameter, the basic feature combination corresponding to the motion parameters is determined to be an invalid feature combination; if the ratio between the moving motion parameter and the deviation motion parameter is greater than or equal to the second effective parameter, the basic feature combination corresponding to the moving motion parameters is determined to be a valid feature combination.
8. A computer-readable storage medium, characterized in that: A computer program is stored which can be loaded by a processor and execute the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Method, device and mobile terminal for panorama shooting
CN102905079A
Moving vehicle speed measurement method based on target tracking and feature point matching
CN104050818A
Method for controlling speed of electric car
CN104129305A
Method and device for measuring speed of specific vehicle in video record
CN105989593A
Vehicle speed information generation method and device, electronic equipment and computer readable medium
CN111965383A
