A method for distinguishing vehicle driving status based on vision assistance in urban canyons
By using the celestial fisheye camera and the optical flow method in the urban canyon environment to eliminate noise and solve the vehicle driving state characteristics, the problem of low positioning accuracy caused by a single GNSS filter model is solved, and accurate vehicle driving state judgment and navigation are achieved. Improved accuracy.
Patent Information
- Application Number
- CN202311727980.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-15
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2043-12-15
AI Technical Summary
In urban environments, the single choice of GNSS filtering model results in low vehicle positioning accuracy, and it is difficult to accurately distinguish the diversity of vehicle driving states.
The optical flow method based on computer vision is used to capture the environment image above the vehicle through the celestial fisheye camera, obtain the optical flow information, remove the noise, compare it with the characteristics of the vehicle's driving status, solve the changes in the optical flow movement of the pixel points, and generate an accurate vehicle Driving status information.
It improves the accuracy of vehicle navigation and positioning in the urban canyon environment, and achieves low-cost, small calculation, and strong real-time judgment of vehicle driving status.
Smart Images

Figure CN117705064B
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of vehicle navigation and positioning in urban canyons, and in particular to a method for distinguishing a vehicle driving state in an urban canyon based on vision assistance. Background Art
[0002] The wheel of history rolls forward, and the development of the times is driving the urbanization process of mankind. Some emerging fields in this environment, such as autonomous driving and smart cities, have become research hotspots, and people are in urgent need of high-precision positioning in urban environments.
[0003] The Global Navigation Satellite System (GNSS) is an airborne radio navigation and positioning system that can provide users with all-weather 3D coordinates, speed and time information at any location on the earth's surface or near-earth space. Visually assisted GNSS vehicle-mounted navigation and positioning is a common method for positioning in complex urban environments. The device is mainly composed of a receiving antenna, a receiver, a navigation computer, a visual display and a position detection device. In urban environments, due to the influence of complex environments, the vehicle positioning results obtained using the vehicle-mounted navigation and positioning method are not high. At the same time, the single selection of GNSS filter model is also one of the reasons for this result. There are generally many normal driving states of vehicles, such as acceleration, constant speed, deceleration, turning and stationary, etc., and the GNSS filter model often uses a single model in the current experimental research, which is not very reasonable, and there is a big difference with the actual multiple driving states of vehicles in this environment. Therefore, it is urgent to select different models for different driving states of vehicles, but how to obtain different driving states of vehicles and distinguish the driving states in real time is the first problem.
[0004] Cameras are not only low-priced, low-power, light-weight, small-sized, and can provide rich information about the surrounding environment, but they are also sensors that exist on almost every vehicle. As a type of camera, fisheye cameras with ultra-wide-angle special lenses can obtain a vertical viewing angle close to or equal to 180°. The advantage of using a celestial fisheye camera is that when judging the motion state by the optical flow method, dynamic objects on the ground are prone to interference. If the camera is pointed to the sky, it can not only obtain sufficient useful environmental information, but also avoid noise interference to a certain extent, ensuring the accuracy of the experiment. In addition, if the target is installed on the vehicle and points to the sky, it can capture 360° environmental information above. It is feasible to capture sky scene image information through a celestial fisheye camera and then judge the different driving states of the vehicle. Summary of the invention
[0005] In view of the shortcoming that a single vehicle model is often used in vehicle-mounted GNSS navigation and positioning in urban environments, the present invention proposes a method for distinguishing vehicle driving states based on visual assistance in urban canyons to solve the problem of low positioning accuracy caused by the single GNSS filter model in experiments and research in this environment. The method is based on computer vision optical flow method, using a fisheye camera pointing to the sky to capture the environment image above the vehicle, obtain the corresponding image optical flow information, then select the optical flow range and remove the optical flow noise therein, and then compare the vehicle driving state characteristics with the optical flow information, and obtain the different driving states of the vehicle by solving the size and direction of the optical flow motion change of the selected pixel point, and make corrections based on the different driving state characteristics of the vehicle and the characteristics of the connection and switching of the driving state, so as to generate accurate vehicle driving state information. The method has the characteristics of low cost, small calculation amount and strong real-time performance, and can accurately judge the different driving states of the vehicle in real time in the urban canyon environment, and improve the accuracy of vehicle-mounted navigation positioning in this environment by fully mining the obtained results.
[0006] To achieve the above object, the present invention provides the following solutions:
[0007] The vehicle driving state identification method based on vision assistance in urban canyons includes:
[0008] Collecting sky environment data, processing the sky environment data, and obtaining pixel point optical flow;
[0009] Verifying the optical flow of the pixel points, building an optical flow recognition model, and recognizing the verified optical flow of the pixel points based on the optical flow recognition model to obtain vehicle operation status information;
[0010] The vehicle operating state is corrected to obtain final vehicle operating state information.
[0011] Optionally, collecting sky environment data includes:
[0012] The experimental vehicle is set up to operate in an urban canyon environment and the sky environment images are captured based on the on-board fisheye camera to obtain sky environment data.
[0013] Optionally, obtaining the pixel optical flow includes:
[0014] The sky environment data is read into MATLAB in the form of a folder for programming and processing to obtain image optical flow information data;
[0015] According to the quality of the optical flow of the image pixel points and the distance from the center of the lens, the image optical flow information data is screened and the information range is extracted to obtain the pixel point optical flow.
[0016] Optionally, after obtaining the pixel point optical flow, the method includes: removing pixel point noise from the center of the fisheye lens and the pixel point optical flow with disordered optical flow direction.
[0017] Optionally, verifying the pixel optical flow includes:
[0018] Comparing the optical flow of the pixel point after the pixel point noise is removed with the first driving state of the experimental vehicle to obtain a verification result;
[0019] The first driving state of the experimental vehicle includes: acceleration, stationary and turning.
[0020] Optionally, constructing the optical flow recognition model includes:
[0021] Set the previous frame time and the next frame time of the vehicle-mounted fisheye camera, and obtain the position of the pixel point of the previous frame in the next frame;
[0022] According to the position of the pixel point of the previous frame in the next frame with constant brightness, and based on the small motion assumption, the position of the pixel point of the previous frame in the next frame is subjected to Taylor series expansion to obtain a first recognition model to be processed;
[0023] Performing spatial consistency processing on the first recognition model to be processed, and establishing a second recognition model to be processed based on the LK algorithm using the pixels in the 3*3 window;
[0024] The second recognition model to be processed is subjected to matrix transformation, unknown numbers in the second recognition model to be processed after the matrix transformation are interpreted by the least square method, and matrix transformation is performed again to obtain the optical flow recognition model.
[0025] Optionally, obtaining the vehicle running status information includes:
[0026] The optical flow of the pixel point is calculated based on the optical flow recognition model to obtain changes in the size and direction of the optical flow, and an optical flow noise judgment is performed on the image where the pixel point optical flow is located. According to the changes in the size and direction of the optical flow and the judgment result, the vehicle operation status information is obtained.
[0027] Optionally, performing optical flow noise judgment on the image where the pixel optical flow is located includes:
[0028] An optical flow noise threshold is set, and the optical flow noise of the image where the optical flow of the pixel is located is determined according to the optical flow noise threshold. If the optical flow noise is greater than the optical flow noise threshold, the grayscale contrast of the image where the optical flow of the pixel is located is increased; if the optical flow noise is less than the optical flow noise threshold, no processing is performed on the image where the optical flow of the pixel is located.
[0029] Optionally, the method for obtaining the change in the size and direction of the optical flow is:
[0030]
[0031] Among them, V x is the vector of optical flow in the x direction, V y is the vector of optical flow in the y direction, I xi with I yi is the i-th pixel at (x, y), I ti For the corresponding moment.
[0032] Optionally, obtaining the final vehicle running status information includes:
[0033] Performing feedback comparison between the vehicle running state and a second driving state of the experimental vehicle to obtain a feedback comparison result;
[0034] According to the feedback comparison result, the vehicle running state is corrected to obtain the final vehicle running state information.
[0035] The beneficial effects of the present invention are:
[0036] The present invention takes the urban canyon environment as the background, and aims at the problem that the GNSS filter model is selected singly and the positioning accuracy is not high in the research experiments and various situations in this environment, and proposes a method for distinguishing the driving state of vehicles based on visual assistance in urban canyons. The method is based on the optical flow method, and a fisheye camera pointing to the sky is installed to capture the environmental image above the vehicle, and obtain the corresponding image optical flow information. Then, in order to eliminate the influence of the optical flow noise as much as possible, the optical flow range is selected and the optical flow noise therein is eliminated, and then the vehicle driving state characteristics are compared with the captured optical flow information. By solving the size and direction of the optical flow motion change of the pixel points in the selected area, the different running states of the vehicle are obtained, and combined with the vehicle driving state switching correction, accurate vehicle motion state information is generated. The method has the characteristics of low cost, small calculation amount, and strong real-time performance. It can judge the accurate vehicle driving state in real time in the urban canyon environment, solve the problem that the GNSS filter model is selected singly during the vehicle navigation positioning in this environment, resulting in low positioning accuracy, thereby improving the vehicle navigation positioning accuracy in this environment.
[0037] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0039] Figure 1 It is a flow chart of a method for distinguishing a vehicle driving state based on vision assistance in an urban canyon according to an embodiment of the present invention;
[0040] Figure 2 A schematic diagram of an information diagram of the sky above an experimental vehicle captured by a celestial fisheye camera according to an embodiment of the present invention;
[0041] Figure 3 This is a display diagram of the optical flow of the selected area according to an embodiment of the present invention. DETAILED DESCRIPTION
[0042] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions 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 are within the scope of protection of the present invention.
[0043] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0044] like Figure 1 As shown, the present invention proposes a method for distinguishing the driving state of a vehicle based on visual assistance in an urban canyon to solve the problem that the GNSS filter model is selected in a single manner and the positioning accuracy is not high in this environment. The method is based on the visual optical flow method, and a fisheye camera is installed in the sky to capture the environment image above the vehicle, and obtain the corresponding image optical flow information. Then, in order to eliminate the influence of the optical flow noise as much as possible, the optical flow range is selected and the optical flow noise therein is eliminated, and then the vehicle driving state characteristics are compared with the captured optical flow information. By solving the size and direction of the optical flow motion change of the pixel points in the selected area, the different running states of the vehicle are obtained, and combined with the vehicle driving state switching correction, accurate vehicle motion state information is generated. The method has the characteristics of low cost, small calculation amount, and strong real-time performance. It can judge the accurate vehicle driving state in real time in the urban canyon environment, thereby improving the vehicle navigation positioning accuracy in this environment.
[0045] Figure 2This is an information map of the sky above the experimental vehicle captured by the Tianxiang fisheye camera. A total of 6067 images of information data above the vehicle were captured in this experiment. The camera specification was 10 frames per second. The entire experiment took about 10 minutes in total.
[0046] Figure 3 The main purpose of selecting a regional optical flow display diagram is to focus on the display of optical flow within a partial area of the image. Combined with this diagram, the content of the method described in this embodiment can be well explained.
[0047] The vehicle driving state identification method based on vision assistance in urban canyons proposed in this study can be summarized into three main parts:
[0048] (1) Image capture and information processing
[0049] Capture the sky view and read the pixel optical flow information to remove the optical flow noise in the image experimental area. Use the vehicle-mounted sky fisheye camera to capture the sky environment information. Based on the imaging characteristics of the sky fisheye camera, the experimental vehicle is placed in the urban canyon environment to stably capture the overhead environment information and obtain the corresponding sky scene image. Secondly, use matlab to process the obtained image data, read it into matlab in the form of a folder for programming and processing, and obtain the image optical flow information data. After that, according to the quality of the captured image pixel optical flow and the distance from the center of the lens, the corresponding pixel optical flow is selected as the experimental data to reduce the interference of non-factors such as noise. Due to the complexity of the urban canyon environment, there is a lot of optical flow noise in this environment. Finally, within the selected range, the range of three hundred and two hundred pixels from the center of the fisheye lens is selected and the area with messy optical flow direction is selected for pixel noise removal.
[0050] (2) Vehicle driving status detection
[0051] The pixel optical flow is compared with the general driving state of the vehicle, such as acceleration, deceleration, constant speed, stationary and turning, etc., and the driving state of the vehicle is judged based on the LK optical flow method. The grayscale contrast of the image is added to the time period when the image noise corresponding to the judged vehicle state accounts for half of the available optical flow points, so as to obtain the general running state of the vehicle. Among them, the formula of the LK optical flow method is as follows:
[0052] Assume that the time of the previous frame is t, and the time of the next frame is t+δt. Then the position of the pixel I(x,y,z,t) of the previous frame I in the next frame is: I(x+δx,y+δy,z+δz,t+δt);
[0053] Among them, x is the position in the direction x, δ is the change, y is the position in the direction y, z is the position in the direction z, and y is the previous frame time.
[0054] According to the constant brightness assumption:
[0055]
[0056] in, is the differential symbol.
[0057] According to the small motion hypothesis, the right side of the above equation is expanded using the Taylor series:
[0058]
[0059] Where H is the higher-order term of the Taylor series expansion, which can be ignored and equal to 0 in the case of small motion.
[0060] According to the above two formulas, we get:
[0061]
[0062] Since this experiment involves a two-dimensional sky scene information image captured by a sky camera, we only need to consider x, y, and t, where Ix, Iy, and It are the differences of the image in the (x, y, t) direction, respectively, and can be written as follows: I x V x +I y V y =-I t , where I x is the position of the pixel in the x direction, V x is the vector of optical flow in the x direction, I y is the position of the pixel in the y direction, V y is the vector of the optical flow in the y direction, I t is the corresponding moment; adding the spatial consistency assumption, the LK algorithm uses the 9 pixels in the 3*3 window to establish 9 equations. In short:
[0063]
[0064] Written in matrix form:
[0065]
[0066] Where A is the set of pixels, represents the optical flow, and b is the moment corresponding to the optical flow.
[0067] In the above formula, the two sides of the equation correspond one to one. In order to separate the positive and negative signs from the values, the right side of the equation is set to -b. Since there are two unknowns and 9 equations, the least squares method is used to solve it:
[0068]
[0069]
[0070] Where T is the transposition symbol.
[0071] The matrix form is written as follows:
[0072]
[0073] Among them, V x is the vector of optical flow in the x direction, V y is the vector of optical flow in the y direction, I xi with I yi is the i-th pixel at (x, y), I ti For the corresponding moment.
[0074] According to the above formula, the optical flow (V x ,V y ).
[0075] (3) Experimental results verification and feedback correction
[0076] The results obtained in (2) are compared with the vehicle deceleration before parking and acceleration after parking, etc. The normal driving state switching of the vehicle and the expected experimental results are compared with the obtained results. The experimental methods and underlying coding content are compared, the experimental results are corrected, and the existing vehicle driving information is integrated to fully extract and mine the useful information provided by the experimental results. The generated chart is shown in Table 1. Through the use of matlab programming, the general vehicle states obtained in the experiment are five: acceleration, deceleration, constant speed, stationary, and turning. The second line is the image sequence and number corresponding to the different motion states obtained in the experiment. The third line is the time period of different vehicle states, which corresponds to the second line of data. Observe the experimental results, the vehicle is decelerated before parking and accelerated after parking. The data is consistent with the actual scene. The segmentation of each time period is clear and detailed, and the duration is appropriate, which proves the rationality and accuracy of this method.
[0077] Table 1
[0078]
[0079] The embodiments described above are only descriptions of the preferred embodiments of the present invention and are not intended to limit the scope of the present invention. Without departing from the design spirit of the present invention, various modifications and improvements made to the technical solutions of the present invention by ordinary technicians in this field should all fall within the protection scope determined by the claims of the present invention.
Claims
1. A method for distinguishing vehicle driving status in urban canyons based on vision assistance, characterized in that: include: Collecting sky environment data, processing the sky environment data, and obtaining pixel point optical flow; Obtaining pixel optical flow includes: The sky environment data is read into MATLAB in the form of a folder for programming and processing to obtain image optical flow information data; According to the quality of the optical flow of the image pixel and the distance from the center of the lens, the image optical flow information data is screened and the information range is extracted to obtain the pixel optical flow; Verify the optical flow of the pixel points and build an optical flow recognition model: Constructing the optical flow recognition model includes: Set the previous frame time and the next frame time of the vehicle-mounted fisheye camera, and obtain the position of the pixel point of the previous frame in the next frame; According to the position of the pixel point of the previous frame in the next frame with constant brightness, and based on the small motion assumption, the position of the pixel point of the previous frame in the next frame is subjected to Taylor series expansion to obtain a first recognition model to be processed; Performing spatial consistency processing on the first recognition model to be processed, and establishing a second recognition model to be processed based on the LK algorithm using the pixels in the 3*3 window; Performing matrix transformation on the second recognition model to be processed, interpreting unknowns in the second recognition model to be processed after the matrix transformation by using the least square method, and performing matrix transformation again to obtain the optical flow recognition model; Based on the optical flow recognition model, the verified pixel optical flow is recognized to obtain the vehicle running status information: Calculating the optical flow of the pixel point based on the optical flow recognition model, obtaining changes in the size and direction of the optical flow, performing optical flow noise judgment on the image where the optical flow of the pixel point is located, and obtaining the vehicle running status information according to the changes in the size and direction of the optical flow and the judgment result; Correcting the vehicle running state information to obtain final vehicle running state information; The final vehicle operation status information includes: acceleration, deceleration, constant speed, stationary, and turning.
2. The method for determining vehicle driving status in an urban canyon based on vision assistance according to claim 1, characterized in that: Collecting sky environment data includes: The experimental vehicle is set up to operate in an urban canyon environment and the sky environment images are captured based on the on-board fisheye camera to obtain sky environment data.
3. The method for determining vehicle driving status in an urban canyon based on vision assistance according to claim 1, characterized in that: After the pixel optical flow is obtained, the following steps are performed: the center of the fisheye lens is used to remove pixel noise from the pixel optical flow with a disordered optical flow direction.
4. The method for determining vehicle driving status in an urban canyon based on vision assistance according to claim 3, characterized in that: Verifying the pixel optical flow includes: Comparing the optical flow of the pixel point after the pixel point noise is removed with the first driving state of the experimental vehicle to obtain a verification result; The first driving state of the experimental vehicle includes: acceleration, stationary and turning.
5. The method for determining vehicle driving status in an urban canyon based on vision assistance according to claim 1, characterized in that: The optical flow noise determination of the image where the pixel optical flow is located includes: An optical flow noise threshold is set, and the optical flow noise of the image where the optical flow of the pixel is located is determined according to the optical flow noise threshold. If the optical flow noise is greater than the optical flow noise threshold, the grayscale contrast of the image where the optical flow of the pixel is located is increased; if the optical flow noise is less than the optical flow noise threshold, no processing is performed on the image where the optical flow of the pixel is located.
6. The method for determining vehicle driving status in an urban canyon based on vision assistance according to claim 1, characterized in that: The method to obtain the change of optical flow size and direction is: Among them, V x is the vector of optical flow in the x direction, V y is the vector of optical flow in the y direction, I xi with I yi is the i-th pixel at (x, y), I ti For the corresponding moment.
7. The method for determining vehicle driving status in an urban canyon based on vision assistance according to claim 1, characterized in that: Acquiring the final vehicle running status information includes: Performing feedback comparison between the vehicle running state and a second driving state of the experimental vehicle to obtain a feedback comparison result; According to the feedback comparison result, the vehicle running state is corrected to obtain the final vehicle running state information.
