Vehicle positioning method, device, electronic equipment and storage medium

Through the camera device to identify road signs and match them with the map, combined with satellite positioning, it solves the problem of inaccuracy when the vehicle positioning signal is weak, improves the accuracy and real-time positioning, and is suitable for assisted driving and automatic driving.

CN113566824BActive Publication Date: 2024-10-11GUANGZHOU XIAOPENG CONNECTIVITY TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110750146.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-02
Publication Date
2024-10-11
Estimated Expiration
2041-07-02

Smart Images

  • Figure CN113566824B_ABST
    Figure CN113566824B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses a vehicle positioning method, device, electronic device and storage medium, the method comprising: obtaining a road image captured by a vehicle camera, identifying a target road sign included in the road image and a first sign type of the target road sign; determining a sign type to be found corresponding to the first sign type, and obtaining one or more map signs belonging to the sign type to be found from a map; matching the target road sign with each of the obtained map signs to obtain a matching result of the target road sign; and correcting the positioning position of the vehicle according to the matching result of the target road sign. The implementation of the embodiment of the present application can improve the accuracy and real-time performance of vehicle positioning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle technology, and in particular to a vehicle positioning method, device, electronic device and storage medium. Background Art

[0002] Vehicle positioning is the basis for realizing functions such as assisted driving or autonomous driving. At present, vehicles can obtain their positioning through satellite positioning systems such as the Global Positioning System (GPS) and the Beidou satellite system. However, satellite positioning signals are easily affected by the environment, and there are problems such as weak signal strength and unstable system, which leads to inaccurate vehicle positioning. Summary of the invention

[0003] The embodiments of the present application disclose a vehicle positioning method, device, electronic device and storage medium, which can improve the accuracy and real-time performance of vehicle positioning.

[0004] An embodiment of the present application discloses a vehicle positioning method, which includes: acquiring a road image captured by a camera device of a vehicle, identifying a target road sign included in the road image and determining a first sign type of the target road sign; determining a sign type to be found corresponding to the first sign type, and acquiring one or more map signs belonging to the sign type to be found from a map; matching the target road sign with each acquired map sign to obtain a matching result of the target road sign; and correcting the positioning position of the vehicle according to the matching result of the target road sign.

[0005] In one embodiment, the marker type to be searched includes: the first marker type, and a preset second marker type that is easily confused with the first marker type.

[0006] In one embodiment, the first mark type includes a dotted line type, and the second mark type easily confused with the dotted line type includes a solid line type; or, the first mark type includes a double solid line type, and the second mark type easily confused with the double solid line type includes a single solid line type; or, the first mark type includes a long dotted line type, and the second mark type easily confused with the long dotted line type includes a short dotted line type.

[0007] In one embodiment, the matching result includes: the map position of a target map sign that matches the target road sign in the map; and correcting the positioning position of the vehicle based on the matching result of the target road sign includes: determining a calculation weight of the target road sign; determining a first transformation matrix corresponding to the current moment based on the calculation weight, the estimated position of the target road sign in the world coordinate system, and the map position of the target map sign; the estimated position is determined based on the road image and the positioning position of the vehicle before correction; and correcting the positioning position of the vehicle using the first transformation matrix.

[0008] In one embodiment, determining the calculation weight of the target road sign includes: determining the calculation weight of the target road sign as a calculation weight corresponding to the first sign type.

[0009] In one embodiment, the matching result also includes: one or more matching point pairs between the target road sign and the target map sign; the calculation weight of the target road sign includes: the calculation weights of each matching point pair; and determining the calculation weight of the target road sign includes: determining the distribution position of the first matching point in each matching point pair, the first matching point being a matching point located at the target road sign; determining the calculation weight of each matching point pair based on the distribution position of the first matching point.

[0010] In one embodiment, the matching of the target road sign with each acquired map sign to obtain a matching result of the target road sign includes: obtaining a second transformation matrix corresponding to a previous moment, wherein the second transformation matrix is ​​determined based on the matching result of the road sign and the map sign at the previous moment; determining an initial position of the target road sign based on the road image and the positioning position of the vehicle before correction, and correcting the initial position of the target road sign using the second transformation matrix to obtain an estimated position of the target road sign in a world coordinate system; matching the target road sign with each map sign based on the estimated position of the target road sign and the map positions of each acquired map sign in the map to obtain a matching result of the target road sign.

[0011] In one embodiment, the vehicle includes at least two cameras; and obtaining the road image captured by the camera of the vehicle includes: stitching the images respectively captured by the at least two cameras to obtain a top view centered on the vehicle as the road image.

[0012] The embodiment of the present application discloses a vehicle positioning device, including: an identification module, used to obtain a road image captured by a camera device of a vehicle, identify a target road sign included in the road image and determine a first sign type of the target road sign; an acquisition module, used to determine a to-be-searched sign type corresponding to the first sign type, and obtain one or more map signs belonging to the to-be-searched sign type from a map; a matching module, used to match the target road sign with each obtained map sign to obtain a matching result of the target road sign; and a correction module, used to correct the positioning position of the vehicle according to the matching result of the target road sign.

[0013] An embodiment of the present application discloses an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor implements any vehicle positioning method disclosed in the embodiment of the present application.

[0014] The embodiment of the present application discloses a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, any vehicle positioning method disclosed in the embodiment of the present application is implemented.

[0015] Compared with the related art, the embodiments of the present application have the following beneficial effects:

[0016] The vehicle can obtain a road image captured by a camera device, and identify the target road sign included in the road image and the first sign type of the target road sign. The vehicle can further obtain the sign type to be found corresponding to the first sign type, and obtain one or more map signs belonging to the sign type to be found from the map. After obtaining one or more map signs, the vehicle can match the target road sign with each map sign to obtain a matching result of the target road sign, so that the vehicle's positioning position can be corrected using the matching result. The map sign on the map can provide reference information for vehicle positioning, which is conducive to correcting the vehicle's positioning position. In addition, the vehicle does not match the target road sign with all the map signs included in the map, but separates different sign types according to the first sign type of the target road sign for separate matching, which is conducive to reducing the computing power consumption required for matching and improving the real-time performance of vehicle positioning. In addition, it is also possible to avoid matching target road signs with map signs that have too large type differences, which can reduce matching errors and help further improve the accuracy of vehicle positioning. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, 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 application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0018] Figure 1 is an example diagram of an application scenario of a vehicle positioning method disclosed in an embodiment;

[0019] Figure 2 is a schematic diagram of a method flow of a vehicle positioning method disclosed in an embodiment;

[0020] Figure 3 is an example diagram of a target road sign, a vehicle, and a map sign disclosed in an embodiment;

[0021] Figure 4 is a method flow diagram of another vehicle positioning method disclosed in an embodiment;

[0022] Figure 5 is an example diagram of a target road sign and a target map sign disclosed in an embodiment;

[0023] Figure 6 A schematic flow chart of a method for matching a target road sign and a map sign disclosed in an embodiment;

[0024] Figure 7 is an example diagram of another target road sign, vehicle and map sign disclosed in an embodiment;

[0025] Figure 8 is a structural schematic diagram of a vehicle positioning device disclosed in an embodiment;

[0026] Fig. 9 It is a structural schematic diagram of an electronic device disclosed in an embodiment of the present application. DETAILED DESCRIPTION

[0027] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only 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.

[0028] It should be noted that the terms "including" and "having" and any variations thereof in the embodiments of the present application and the accompanying drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products or devices.

[0029] The embodiments of the present application disclose a vehicle positioning method, device, electronic device and storage medium, which can improve the accuracy and real-time performance of vehicle positioning.

[0030] See also Figure 1 , Figure 1 FIG. 1 is an example diagram of an application scenario of a vehicle positioning method disclosed in an embodiment. Figure 1 As shown, a vehicle 10 may be included. The vehicle 10 may be provided with one or more camera devices, such as a visible light camera, an infrared camera, a fisheye camera, and the like.

[0031] The vehicle 10 may travel on a road 20, which may include one or more different types of road signs. Road signs may refer to graphic symbols used to indicate road information, such as lane lines, turn arrows, speed reduction warning lines, zebra crossings, road signs, etc., but are not limited thereto. Figure 1 As shown, the road signs on the road 20 currently traveled by the vehicle 10 may include a lane line 21, a lane line 22, and a turn arrow 23. When the vehicle 10 travels on the road 20, the camera of the vehicle 10 may capture an image including one or more road signs.

[0032] The vehicle 10 may also acquire a map 30, which may include one or more different types of map markers, which may be digitized versions of road markers on the real-world road 20. Figure 1 As shown, the map 30 may include a lane line 31 matching the lane line 21, a lane line 32 matching the lane line 22, and a turn arrow 33 matching the turn arrow 23. The map 30 may include the position of each map mark, for example, the absolute coordinates of the map mark in the world coordinate system, so that the map 30 can provide a reference for vehicle positioning.

[0033] See also Figure 2 , Figure 2 The present invention is a schematic flow chart of a vehicle positioning method disclosed in an embodiment. The method can be applied to vehicles with on-board computers, electronic control units (ECUs), etc., without specific limitation. Figure 2 As shown, the method may include:

[0034] 210. Acquire a road image captured by a camera device of a vehicle, and identify a target road sign and a first sign type of the target road sign included in the road image.

[0035] In the embodiment of the present application, the vehicle camera device may be set at a location including the front windshield, the rearview mirrors on both sides, etc., but is not limited thereto. The road image may be an image captured by a single camera device at the current moment, or may be an image obtained by stitching images captured by multiple cameras at the current moment, without specific limitation.

[0036] Optionally, when the vehicle includes at least two cameras, the vehicle can stitch the images captured by the at least two cameras at the current moment to obtain a bird's-eye view centered on the vehicle as a road image. When stitching the images, processing operations related to visual transformations such as perspective transformation and affine transformation may also be included. When the road image is a bird's-eye view centered on the vehicle, the road image may include road signs in different directions of the vehicle, and may include more information related to the road signs, which is conducive to improving the success rate of matching the target road signs in the map. Exemplarily, when the road image is an image captured by the vehicle's forward-looking camera, the road image may only include the lane lines of the vehicle's current lane; and when the road image is a 360° panoramic bird's-eye view of the vehicle, the road image may include the lane lines of the vehicle's current lane, and may also include lane lines of other lanes adjacent to the moving vehicle.

[0037] After obtaining the road image, the vehicle may identify the target road sign in the road image, wherein identifying the target road sign may include: determining the image position of the target road sign in the road image, and determining the first sign type of the target road sign.

[0038] Exemplarily, the vehicle may identify a target road sign in a road image based on feature matching. Reference image features of different types of road signs such as lane lines and turn arrows may be pre-designed. After acquiring the road image, the vehicle may extract features from the road image and match the extracted image features to be identified with one or more reference image features. When the image features to be identified match the reference image features, the image position of the target road sign in the road image may be determined based on the image position of the image features to be identified in the road image, and the first sign type of the target road sign may be determined as the type of the road sign corresponding to the matched reference image features.

[0039] Exemplarily, the vehicle can identify the target road sign in the road image based on an end-to-end method such as machine learning or deep learning. A recognition model can be pre-built, and the recognition model can be a neural network model such as a convolutional neural network (CNN) or a U-net. The recognition model is trained using sample images carrying road sign labels so that the recognition model has the ability to recognize road signs. The road image is input into the trained recognition model, and the image position of the target road sign in the road image output by the recognition model and the first sign type of the target road sign can be obtained.

[0040] It should be noted that the embodiment of the present application does not limit the method of identifying the target road sign from the road image.

[0041] 220. Determine a to-be-searched marker type corresponding to the first marker type, and obtain one or more map markers belonging to the to-be-searched marker type from the map.

[0042] In one embodiment, the sign type to be found corresponding to the first sign type may include the first sign type. That is, the vehicle may obtain one or more map signs of the same sign type as the target road sign from the map.

[0043] Exemplarily, the target road sign may be a solid lane line, and the vehicle may obtain one or more solid lane lines from a map.

[0044] In one embodiment, the sign type to be searched corresponding to the first sign type may include: the first sign type, and a preset second sign type that is easily confused with the first sign type. The second sign type may be set according to actual business needs and is not specifically limited. That is, the vehicle may obtain from the map one or more map signs of the same sign type as the target road sign, and obtain from the map one or more map signs of a sign type that is easily confused with the target road sign.

[0045] Optionally, the first sign type may include a dashed line type, and the second sign type that is easily confused with the dashed line type may include a solid line type. The dashed line type may include a single dashed line type and a double dashed line type; the solid line type may include a single solid line type and a double solid line type, but is not limited thereto. For example, if the target road sign is a single dashed lane line, the vehicle may obtain a single dashed lane line, a single solid lane line, and a double solid lane line from the map.

[0046] Alternatively, the first sign type may include a double solid line type, and the second sign type that is easily confused with the double solid line type may include a single solid line type. For example, if the target road sign is a double solid line lane line, the vehicle may obtain a double solid line lane line and a single solid line lane line from the map.

[0047] Alternatively, the first sign type may include a long dashed line type, and the second sign type that is easily confused with the long dashed line type may include a short dashed line type. Wherein, both the long dashed line type and the short dashed line type are dashed line types, and the line segment length of the short dashed line type may be shorter than the line segment length of the long dashed line type. Exemplarily, the dashed line segment used in the driving lane line may be a long dashed line type, and the dashed line segment used in the left turn waiting area may be a short dashed line type.

[0048] It should be noted that the above gives examples of multiple groups of sign types, and each group of sign types includes two or more sign types that are easily confused with each other. For example, the implementation type and the dashed line type are a group of easily confused sign types. When the first sign type includes a dashed line type, the second sign type that is easily confused with the dashed line type may include a solid line type; when the first sign type includes a solid line type, the second sign type that is easily confused with the solid line type may include a dashed line type. The aforementioned double solid line type and single solid line type may be a group of easily confused sign types, and the long dashed line type and short dashed line type may be a group of easily confused sign types, which will not be repeated in the following content.

[0049] Due to the influence of factors such as shooting angle and image clarity, there may be a problem of misidentification when determining the first sign type of the target road sign based on the road image. If the first sign type is misidentified, it is easy to cause map matching errors. In the embodiment of the present application, the vehicle can be compatible with the recognition errors of the target road sign by setting a second sign type that is easily confused with the first sign type, reducing the impact of type recognition errors on map matching, which is conducive to improving the overall robustness of the vehicle positioning method.

[0050] 230. Match the target road sign with each acquired map sign to obtain a matching result of the target road sign.

[0051] After the vehicle obtains one or more map signs from the map whose sign types are the same as or easily confused with the target road sign, the vehicle can match the target road sign with each of the obtained map signs.

[0052] The target road sign may be an imaging result of a road sign on the road in a road image, and the map sign on the map may be a digitized form of the road sign on the road. Therefore, matching the target road sign with each map sign may refer to finding a target map sign that belongs to the same road sign in the real world as the target road sign from each acquired map sign. Matching methods may include but are not limited to: nearest neighbor search and brute force matching (Brute-FroceMatcher).

[0053] For example, if the target road sign is a dashed lane line A, the vehicle can search for a lane line A' that matches lane line A among multiple dashed lane lines included in the map. If the target road sign is a turn arrow B, the vehicle can search for a lane line B' that matches turn arrow B among multiple turn arrows included in the map.

[0054] The matching result of the target road sign may include: a target map sign that matches the target road sign, and a map position of the target map sign in the map. It should be noted that the map may be constructed based on a world coordinate system, so the map position of the target map sign in the map may be the position of the target map sign in the world coordinate system.

[0055] 240. Correct the positioning position of the vehicle according to the matching result of the target road sign.

[0056] The vehicle can determine the relative position of the target road sign relative to the vehicle according to the image position of the target road sign in the road image. Exemplarily, the vehicle can determine the relative position of the target road sign and the camera device according to the image position of the target road sign, and further obtain the relative position of the target road sign relative to the vehicle according to the external parameters of the camera device.

[0057] In addition, the vehicle may also include sensors that can be used for positioning, such as a satellite positioning system, a wheel speed meter, and an inertial measurement unit (IMU). The vehicle can obtain data collected by one or more of the above sensors to determine the vehicle's positioning position in the world coordinate system as the vehicle's positioning position before correction. Based on the relative position of the target road sign relative to the vehicle and the preliminarily determined vehicle positioning position, the vehicle can determine the estimated position of the target road sign in the world coordinate system, so that the target road sign and the vehicle can be registered to the map, that is, the target road sign and the vehicle can be unified to the map.

[0058] The vehicle may further determine a first transformation matrix at the current moment according to the estimated position of the target road sign in the world coordinate system and the map position of the target map sign matching the target road sign. The method of calculating the first transformation matrix may include but is not limited to nonlinear optimization, such as using a General Graph Optimization (G2O) algorithm, or calculating based on a Ceres optimizer.

[0059] The first transformation matrix may be used to indicate the position difference between the estimated position of the target road sign determined by the vehicle based on the uncorrected positioning position of the vehicle and the road image and the accurate map position of the target road sign (i.e., the map position of the target map sign). This difference may be caused by the inaccuracy of the initial positioning position of the vehicle, so the positioning position of the vehicle may be corrected using the first transformation matrix.

[0060] For example, see Figure 3 , Figure 3 is an example diagram of a target road sign, a vehicle, and a map sign disclosed in an embodiment. Figure 3 As shown, vehicle 310a can be used to indicate the location of the vehicle preliminarily determined based on one or more sensor data, and lane lines 311a and 312a are target lane markers determined based on the vehicle's location before correction and the road image. Vehicle 310b can be used to indicate the vehicle's actual location, lane line 311b is a target map marker on the map that matches lane line 311a, and lane line 312b is a target map marker on the map that matches lane line 312a. Figure 3 As shown, there is a position difference between lane line 311a and lane line 311b, and there is a position difference between lane line 312a and lane line 312b, and the position difference can be represented by the first transformation matrix. Accordingly, if the estimated position of vehicle 310a is represented as P1_vec, and the first transformation matrix is ​​T1, then the corrected vehicle positioning position P2_vec=P1_vec*T1, and the corrected P2 is close to the actual positioning position 301b of the vehicle.

[0061] It should be noted that the vehicle can identify one or more target road signs in the road image. When the road image includes multiple target road signs, the vehicle can perform the aforementioned steps 210 to 230 to obtain a matching result corresponding to each of the multiple target road signs, thereby correcting the positioning position of the vehicle according to the matching results corresponding to the multiple target road signs.

[0062] For example, the vehicle can identify three target road signs from the road image, namely, a dotted lane line A, a turn arrow B, and a solid lane line C. Based on the target road signs and the positioning position of the vehicle before correction, the vehicle can determine the estimated position of the dotted lane line A as P1_A, the estimated position of the turn arrow B as P1_B, and the estimated position of the solid lane line C as P1_C.

[0063] In addition, the map position of the dotted lane line A' that matches the dotted lane line A on the map is P2_A, the map position of the turn arrow B' that matches the turn arrow B on the map can be P2_B, and the map position of the solid lane line C' that matches the solid lane line C on the map can be P2_C.

[0064] The vehicle can determine the first transformation matrix at the current moment based on P1_A and P2_A corresponding to the dotted lane line A, P1_B and P2_B corresponding to the turn arrow B, and P1_C and P2_C corresponding to the solid lane line C, thereby correcting the vehicle's positioning position using the first transformation matrix at the current moment.

[0065] It can be seen that in the aforementioned embodiment, the vehicle can shoot the target road sign on the road through the camera device, and match the target road sign with the map sign in the map. The reference information provided by the map sign on the map can be used to correct the positioning position of the vehicle, which can improve the accuracy of vehicle positioning. In addition, the vehicle does not match the target road sign with all the map signs included in the map, but first determines the corresponding sign type to be found according to the first sign type of the target road sign, thereby obtaining the map sign belonging to the sign type to be found in the map, and matching the target road sign with the map sign belonging to the sign type to be found in the map. In other words, the vehicle can separate different sign types for separate matching, which is conducive to reducing the computing power consumption required for matching, and can improve the real-time performance of vehicle positioning. In addition, it can also avoid matching target road signs with map signs that have too large type differences, which can reduce matching errors and help further improve the accuracy of vehicle positioning.

[0066] See also Figure 4 , Figure 4 The method flow chart of another vehicle positioning method disclosed in an embodiment is as follows, and the method can be applied to vehicles. Figure 4 As shown, the method may include:

[0067] 410. Acquire a road image captured by a camera device of a vehicle, identify a target road sign included in the road image, and determine a first sign type of the target road sign.

[0068] 420. Determine a to-be-searched marker type corresponding to the first marker type, and obtain one or more map markers belonging to the to-be-searched marker type from the map.

[0069] The vehicle may determine the first sign type as the sign type to be found; or, the vehicle may determine the first sign type and a second sign type that is easily confused with the first sign type as the sign type to be found.

[0070] 430. Match the target road sign with each acquired map sign to obtain a matching result of the target road sign.

[0071] The implementation of steps 410 to 430 can refer to the aforementioned embodiment, and will not be described in detail below.

[0072] 440. Determine the calculation weight of the target road sign.

[0073] The calculation weight of the target road sign may refer to the weight when calculating the first conversion matrix. The vehicle may identify one or more target road signs in the road image, each target road sign may correspond to a calculation weight, and the calculation weights of different target road signs may be the same or different, without specific limitation.

[0074] Optionally, the vehicle may determine the calculation weight according to the first sign type of the target road sign. The calculation weights corresponding to the road signs of different sign types may be pre-set, and after determining the first sign type, the vehicle may determine the calculation weight of the target road sign as the calculation weight corresponding to the first sign type. By determining the calculation weight of the target road sign according to the sign type, the importance of the road signs of different sign types in calculating the conversion matrix may be adjusted based on the characteristics of the different sign types, which is conducive to improving the calculation accuracy of the conversion matrix, thereby improving the accuracy of vehicle positioning.

[0075] Exemplarily, the calculation weight corresponding to a feature-rich sign type may be higher than the calculation weight corresponding to a feature-simple sign type. Among them, when image features are extracted for road signs of different sign types, the number of image features extracted from the feature-rich sign type may be greater than the number of image features extracted from the feature-simple sign type. For example, turn arrows, dotted line types, etc. may be feature-rich sign types, and solid line types may be feature-simple sign types. Therefore, the calculation weight corresponding to turn arrows and dotted line types may be higher than the calculation weight corresponding to solid line types. Feature-rich sign types have more extracted image features, so the probability of error in image recognition and map matching is relatively lower than that of simple feature sign types. Therefore, assigning higher calculation weights to feature-rich sign types is conducive to improving the calculation accuracy of the conversion matrix, thereby improving the accuracy of vehicle positioning.

[0076] Optionally, if the matching result includes one or more matching point pairs between the target road sign and the target map sign, the calculation weight of the target road sign may include the calculation weights of each matching point pair. The vehicle may determine the calculation weight of the target road sign in the following ways:

[0077] Method 1: Determine the calculation weight of each matching point pair as the calculation weight corresponding to the first mark type.

[0078] Method 2: Determine the distribution position of the first matching point in each matching point pair, where the first matching point is a matching point located at the target road sign; determine the calculation weight of each matching point pair according to the distribution position of the first matching point.

[0079] The calculation weights corresponding to the different distribution positions of the first matching point can be preset, and the calculation weights corresponding to the different distribution positions can be the same or different, and there is no specific limitation. When the vehicle determines the calculation weight of each matching point pair according to the distribution position of the first matching point, the calculation weight of each matching point pair can be directly determined as the calculation weight corresponding to the distribution position of the first matching point. For example, the calculation weight corresponding to the endpoint of the distribution position of the target road sign can be set to be higher than the calculation weight corresponding to the middle area of ​​the target road sign.

[0080] Alternatively, when the vehicle determines the calculation weight of each matching point pair according to the distribution position of the first matching point, it may also first set an initial calculation weight for each matching pair, and then adjust the initial calculation weight according to the distribution position of the first matching point. The initial calculation weight may be a random default value, or the initial calculation weight may also be a calculation weight corresponding to the first sign type of the target road sign, without specific limitation. Exemplarily, when adjusting the initial calculation weight according to the distribution position, if the distribution position of the first matching point is at the end point of the target road sign, the calculation weight of the matching point pair may be increased based on the initial calculation weight; if the distribution position of the first matching point is in the middle area of ​​the target road sign, the calculation weight of the matching point pair may be reduced based on the initial calculation weight. That is, the calculation weight of the matching point pair at the end point is higher than the calculation weight of the matching point pair in the middle area.

[0081] The vehicle determines the calculation weights of the matching point pairs according to the different distribution positions of the first matching points. The characteristics of the different distribution positions can be used to adjust the importance of each matching pair when calculating the first transformation matrix, which is beneficial to improving the calculation accuracy of the first transformation matrix, thereby improving the accuracy of vehicle positioning.

[0082] For example, see Figure 5 , Figure 5 1 is an example diagram of a target road sign and a target map sign disclosed in an embodiment. Figure 5 As shown, the target road sign 510a is identified from the road image and can be mapped to the map according to the positioning position of the vehicle before correction, and the target map sign 510b is a map sign on the map that matches the target road sign 510a.

[0083] The matching result of the target road sign 510a and the target map sign 510b may include a plurality of matching pairs, each of which may include a first matching point located on the target road sign 510a and a second matching point located on the target map sign 510b. Figure 5As shown, the first matching point 511a and the second matching point 511b may form a first matching point pair, the first matching point 513a and the second matching point 513b may form a third matching point pair, and the first matching point 515a and the second matching point 515b may form a fifth matching point pair.

[0084] like Figure 5 As shown, different matching point pairs have different distribution positions on the target road sign 510a and the target map sign 510b, and the two matching points included in the same matching point pair have the same distribution positions on the target road sign 510a and the target map sign 510b.

[0085] The distribution position of the first matching point 511a in the first matching point pair and the first matching point 515a in the fifth matching point pair may be the end point of the target road sign 510a. Wherein, based on the vehicle driving direction, the distribution position of the first matching point 511a in the first matching point pair may be the top of the target road sign 510a; the distribution position of the first matching point 515a in the fifth matching point pair may be the bottom of the target road sign 510a.

[0086] The distribution position of the first matching point 513 a in the third matching point pair may be the middle of the target road sign 510 a .

[0087] If the calculation weight of the matching point pairs at the endpoints is set higher than the calculation weight of the matching point pairs in the middle area, when the vehicle calculates the first transformation matrix corresponding to the current moment, the calculation weights of the first matching point pair and the fifth matching point pair are higher than the calculation weight of the third matching point pair.

[0088] 450. Determine a first transformation matrix corresponding to the current moment according to the calculated weight of the target road sign, the estimated position of the target road sign in the world coordinate system, and the map position of the target map sign.

[0089] The calculation weight of the target road sign can be used to adjust the importance of road signs of different sign types when calculating the first transformation matrix; or, it can also be used to adjust the importance of matching points at different distribution positions in the same target road sign when calculating the first transformation matrix, which is beneficial to improve the calculation accuracy of the first transformation matrix, thereby improving the accuracy of vehicle positioning.

[0090] It should be noted that if the matching result includes one or more matching point pairs between the target road sign and the target map sign, the estimated position of the target road sign in the world coordinate system may include: the estimated position of the first matching point in each matching point pair in the world coordinate system; the map position of the target map sign may include: the map position of the second matching point in each matching point pair in the map.

[0091] Therefore, when the vehicle determines the first transformation matrix corresponding to the current moment, it can determine the first transformation matrix corresponding to the current moment based on the calculated weights of each matching point pair, the estimated position of the first matching point in each matching point pair, and the map position of the second matching point in each matching point pair.

[0092] 460. Correct the positioning position of the vehicle using the first transformation matrix.

[0093] It can be seen that in the aforementioned embodiment, in addition to searching for matches on the map for different sign types separately, the vehicle can also assign corresponding calculation weights to different sign types when calculating the first transformation matrix at the current moment, which can reduce the amount of search and match calculations while improving the calculation accuracy of the transformation matrix, thereby improving the accuracy of vehicle positioning.

[0094] It can be seen from the above embodiments that the accuracy of the matching result of the target road sign can affect the accuracy of the vehicle positioning. Figure 6 , Figure 6 The following is a flow chart of a method for matching a target road sign with a map sign disclosed in an embodiment. That is, Figure 6 The steps shown may be an implementation of the aforementioned step 230 or step 430. Figure 6 As shown, the following steps may be included:

[0095] 610. Obtain a second conversion matrix corresponding to a previous moment, where the second conversion matrix is ​​determined based on a matching result between a road sign and a map sign at a previous moment.

[0096] The vehicle will keep moving while driving, so the same road signs will appear in the road images taken at different times. Based on this feature, the vehicle can reuse the information obtained at the previous moment when correcting the vehicle positioning position at the current moment.

[0097] For example, after the vehicle determines the location of the vehicle before correction by satellite positioning or inertial navigation at the current moment, a search window can be constructed on the map with the location of the vehicle before correction as the center, and map marks belonging to the type of mark to be found can be obtained from the search window. During the movement of the vehicle, the search window can move with the movement of the vehicle.

[0098] 620. Determine the initial position of the target road sign at the current moment according to the road image at the current moment and the positioning position of the vehicle before correction.

[0099] The vehicle can determine the relative position between the target road sign and the vehicle according to the image position of the target road sign in the road image at the current moment, and determine the initial position of the target road sign at the current moment according to the relative position and the uncorrected positioning position of the vehicle at the current moment.

[0100] 630. Correct the initial position of the target road sign using the second transformation matrix corresponding to the previous moment to obtain an estimated position of the target road sign in the world coordinate system.

[0101] Exemplarily, the initial position of the target road sign at the current moment may be P1_sym, and the second transformation matrix may be T2, then the estimated position of the target road sign in the world coordinate system is P2_sym=P1_sym*T2.

[0102] 640. According to the estimated position of the target road sign and the map positions of each map sign belonging to the sign to be found on the map, the target road sign and each map sign are matched to obtain a matching result of the target road sign.

[0103] The vehicle may determine the distances between each map marker and the target road marker according to the map positions of each map marker and the estimated position of the target road marker, and determine the map marker with the shortest distance as the target map marker that matches the target road marker.

[0104] After the vehicle uses the second transformation matrix to correct the initial position of the target road sign, the distance between the corrected target road sign and the matching target map sign is closer, and the vehicle can accurately and quickly find the target map sign from the map, which is conducive to improving the accuracy of the matching result of the target road sign.

[0105] See also Figure 7 , Figure 7 is another example diagram of a target road sign, a vehicle, and a map sign disclosed in an embodiment. Figure 7 As shown, vehicle 710 may be the uncorrected positioning position of the vehicle at the current moment, and vehicle 720 may be the uncorrected positioning position of the vehicle at the previous moment. The target road sign identified from the road image at the previous moment may be lane line 721a. The target map sign on the map that matches lane line 721a may be lane line 730. At the previous moment, the vehicle may determine the second transformation matrix at the previous moment based on the estimated position of lane line 721a and the map position of lane line 730.

[0106] At the current moment, the initial position of the target road sign determined by the vehicle according to the image position of the target road sign in the road image and the positioning position of the vehicle before correction can be as follows: Figure 7Compared with the previous moment, the vehicle has not changed the driving lane at the current moment, so the target map sign that actually matches the target road sign should be Figure 7 Lane marking 720 in the figure.

[0107] However, lane line 722a is at a similar distance to lane lines 730 and 740 on the map. If lane line 722a is directly matched with each map marker on the map, lane line 740 may be mistakenly identified as a target map marker that matches the target road marker, which may result in calculation errors of the first transformation matrix.

[0108] If the initial position of the target road sign is corrected using the second transformation matrix at the previous moment, the estimated position of the target road sign after correction can be expressed as Figure 7 Compared to lane line 740, lane line 722b is closer to lane line 730, so the vehicle has a higher probability of determining lane line 730 as a target map sign that matches the target road sign.

[0109] It can be seen that by using the second transformation matrix of the previous moment to correct the initial position of the target road sign at the current moment, a more accurate estimated position can be provided for the target road sign before the matching search, which is beneficial to improving the accuracy of the matching result of the target road sign, thereby improving the accuracy of the corrected vehicle positioning.

[0110] See also Figure 8 , Figure 8 The present invention is a schematic diagram of a vehicle positioning device disclosed in an embodiment, and the vehicle positioning device can be installed in the aforementioned vehicle. Figure 8 As shown, the vehicle positioning device 800 may include: an identification module 810 , an acquisition module 820 , a matching module 830 , and a correction module 840 .

[0111] The recognition module 810 may be used to obtain a road image captured by a camera device of the vehicle, and recognize a target road sign and a first sign type of the target road sign included in the road image;

[0112] An acquisition module 820, configured to determine a to-be-searched sign type corresponding to the first sign type, and to acquire one or more map signs belonging to the to-be-searched sign type from a map;

[0113] A matching module 830 is used to match the target road sign with each acquired map sign to obtain a matching result of the target road sign;

[0114] The correction module 840 is used to correct the positioning position of the vehicle according to the matching result of the target road sign.

[0115] In one embodiment, the marker type to be searched may include: a first marker type, and a second marker type that is preset and easily confused with the first marker type.

[0116] In one embodiment, the first mark type may include a dashed line type, and the second mark type that is easily confused with the dashed line type may include a solid line type; or,

[0117] The first sign type may include a double solid line type, and the second sign type that is easily confused with the double solid line type may include a single solid line type or a double dashed line type; or,

[0118] The first mark type may include a long dash line type, and the second mark type that is easily confused with the long dash line type may include a short dash line type.

[0119] In one embodiment, the matching result of the target road sign may include: a map position of a target map sign matching the target road sign in the map.

[0120] The correction module 840 may include: a weight determination unit, a matrix determination unit, and a positioning correction unit.

[0121] A weight determination unit, which can be used to determine the calculation weight of the target road sign;

[0122] A matrix determination unit, which can be used to determine a first transformation matrix corresponding to the current moment according to the calculated weight, the estimated position of the target road sign in the world coordinate system, and the map position of the target map sign; the estimated position is determined according to the road image and the positioning position of the vehicle before correction;

[0123] The positioning correction unit can be used to correct the positioning position of the vehicle using the first conversion matrix.

[0124] In one embodiment, the weight determination unit may be further configured to determine the calculation weight of the target road sign as a calculation weight corresponding to the first sign type.

[0125] In one embodiment, the matching result of the target road sign may further include: one or more matching point pairs between the target road sign and the target map sign; the calculation weight of the target road sign includes: the calculation weight of each matching point pair;

[0126] The weight determination unit can also be used to determine the distribution position of the first matching point in each matching point pair, where the first matching point is a matching point located at the target road sign; and determine the calculation weight of each matching point pair according to the distribution position of the first matching point.

[0127] In one embodiment, the matching module 830 may include: an acquisition unit, a position correction unit, and a matching unit.

[0128] An acquisition unit, which can be used to acquire a second conversion matrix corresponding to a previous moment, where the second conversion matrix is ​​determined based on a matching result between a road sign and a map sign at a previous moment;

[0129] A position correction unit, which can be used to determine the initial position of the target road sign according to the road image and the positioning position of the vehicle before correction, and correct the initial position of the target road sign using a second transformation matrix to obtain an estimated position of the target road sign in the world coordinate system;

[0130] The matching unit may be used to match the target road sign with each map marker according to the estimated position of the target road sign and the acquired map positions of each map marker in the map, so as to obtain a matching result of the target road sign.

[0131] In one embodiment, the vehicle provided with the vehicle positioning device 800 may include at least two camera devices. Also, the vehicle positioning device 800 may further include: a splicing module.

[0132] The stitching module can be used to stitch images captured by at least two camera devices to obtain a bird's-eye view centered on the vehicle as a road image.

[0133] It can be seen that in the aforementioned embodiment, the vehicle positioning device can use a camera to shoot the target road sign on the road, and match the target road sign with the map sign in the map, so that the reference information provided by the map sign on the map can be used to correct the positioning position of the vehicle, which can improve the accuracy of vehicle positioning. In addition, the vehicle positioning device can separate different types of signs for separate matching, which is conducive to reducing the computing power consumption required for matching and can improve the real-time performance of vehicle positioning. Moreover, it can also avoid matching target road signs with map signs that are too different in type, which can reduce matching errors and help further improve the accuracy of vehicle positioning.

[0134] See also Fig. 9 , Fig. 9 Schematic diagram of the structure of an electronic device disclosed in the embodiment of the present application. Fig. 9 As shown, the electronic device 900 may include:

[0135] A memory 910 storing executable program codes;

[0136] a processor 920 coupled to the memory 910;

[0137] The processor 920 calls the executable program code stored in the memory 9101 to execute any vehicle positioning method disclosed in the embodiments of the present application.

[0138] It should be noted that Fig. 9The electronic device shown may also include a power supply, input buttons, a camera, a speaker, a screen, an RF circuit, a Wi-Fi module, a Bluetooth module, a sensor and other components not shown, which are not described in detail in this embodiment.

[0139] An embodiment of the present application discloses a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor implements any one of the vehicle positioning methods disclosed in the embodiment of the present application.

[0140] The embodiment of the present application discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable a computer to execute any one of the vehicle positioning methods disclosed in the embodiment of the present application.

[0141] It should be understood that the "one embodiment" or "an embodiment" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. Those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required for the present application.

[0142] In the various embodiments of the present application, it should be understood that the size of the serial numbers of the above-mentioned processes does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0143] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0144] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0145] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-accessible memory. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a memory and includes several requests for a computer device (which can be a personal computer, server or network device, etc., specifically a processor in a computer device) to perform some or all of the steps of the above-mentioned methods of various embodiments of the present application.

[0146] A person skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable programmable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.

[0147] The above is a detailed introduction to a vehicle positioning method, device, electronic device and storage medium disclosed in the embodiments of the present application. The principles and implementation methods of the present application are described in detail using specific examples. The description of the above embodiments is only used to help understand the method and core idea of ​​the present application. At the same time, for those of ordinary skill in the art, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as limiting the present application.

Claims

1. A vehicle positioning method, characterized in that: The method comprises: Acquire a road image captured by a camera device of a vehicle, and identify a target road sign included in the road image and a first sign type of the target road sign; Determine a to-be-searched sign type corresponding to the first sign type, and obtain one or more map signs belonging to the to-be-searched sign type from a map; the to-be-searched sign type includes: the first sign type, and a preset second sign type that is easily confused with the first sign type; Matching the target road sign with each acquired map sign to obtain a matching result of the target road sign; Correcting the positioning position of the vehicle according to the matching result of the target road sign; The matching of the target road sign with each acquired map sign includes: Finding a target map sign that belongs to the same road sign in the real world as the target road sign from the acquired map signs; Wherein, the first mark type includes a dotted line type, and the second mark type that is easily confused with the dotted line type includes a solid line type; or, The first sign type includes a double solid line type, and the second sign type that is easily confused with the double solid line type includes a single solid line type; or, The first mark type includes a long dash line type, and the second mark type that is easily confused with the long dash line type includes a short dash line type.

2. The method according to claim 1, characterized in that The matching result includes: a map position of a target map sign that matches the target road sign in the map; and correcting the positioning position of the vehicle according to the matching result of the target road sign includes: determining a calculation weight of the target road sign; determining a first transformation matrix corresponding to the current moment according to the calculated weights, the estimated position of the target road sign in the world coordinate system, and the map position of the target map sign; the estimated position being determined according to the road image and the positioning position of the vehicle before correction; The positioning position of the vehicle is corrected using the first transformation matrix.

3. The method according to claim 2, characterized in that The determining of the calculation weight of the target road sign comprises: The calculation weight of the target road sign is determined to be a calculation weight corresponding to the first sign type.

4. The method according to claim 2, characterized in that: The matching result further includes: one or more matching point pairs between the target road sign and the target map sign; the calculation weight of the target road sign includes: the calculation weight of each matching point pair; and determining the calculation weight of the target road sign includes: Determine a distribution position of a first matching point in each matching point pair, wherein the first matching point is a matching point located at the target road sign; The calculation weight of each matching point pair is determined according to the distribution positions of the first matching points.

5. The method according to claim 1, characterized in that The step of matching the target road sign with each of the acquired map signs to obtain a matching result of the target road sign includes: Acquire a second conversion matrix corresponding to a previous moment, where the second conversion matrix is ​​determined according to a matching result of a road sign and a map sign at a previous moment; Determining an initial position of the target road sign according to the road image and the positioning position of the vehicle before correction, and correcting the initial position of the target road sign using the second transformation matrix to obtain an estimated position of the target road sign in a world coordinate system; According to the estimated position of the target road sign and the acquired map positions of the map signs in the map, the target road sign is matched with the map signs to obtain a matching result of the target road sign.

6. The method according to any one of claims 1-2, characterized in that: The vehicle includes at least two camera devices; and the acquiring of a road image captured by the camera devices of the vehicle includes: The images respectively captured by the at least two camera devices are stitched together to obtain a bird's-eye view centered on the vehicle as a road image.

7. A vehicle positioning device, characterized in that: include: a recognition module, configured to acquire a road image captured by a camera device of a vehicle, and recognize a target road sign included in the road image and a first sign type of the target road sign; An acquisition module, used for determining a to-be-searched sign type corresponding to the first sign type, and acquiring one or more map signs belonging to the to-be-searched sign type from a map; The mark type to be found includes: the first mark type, and a preset second mark type that is easily confused with the first mark type; A matching module, used for matching the target road sign with each acquired map sign to obtain a matching result of the target road sign; A correction module, used for correcting the positioning position of the vehicle according to the matching result of the target road sign; The matching module is further used to find a target map sign that belongs to the same road sign in the real world as the target road sign from the acquired map signs, and obtain a matching result of the target road sign; Wherein, the first mark type includes a dotted line type, and the second mark type that is easily confused with the dotted line type includes a solid line type; or, The first sign type includes a double solid line type, and the second sign type that is easily confused with the double solid line type includes a single solid line type; or, The first mark type includes a long dash line type, and the second mark type that is easily confused with the long dash line type includes a short dash line type.

8. An electronic device, characterized in that: The method comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor implements the method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.