A multi-view vision based positioning method
By calculating the position information and confidence level of the center pixel of the target object collected by the camera in the multi-view vision system, the problem of target fusion in multi-view vision localization is solved, and a higher accuracy localization effect is achieved.
Patent Information
- Application Number
- CN202211435856.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-16
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2042-11-16
AI Technical Summary
In existing multi-camera vision positioning technology, the positioning accuracy of a single camera for distant targets is poor, resulting in large positional deviations of the same target in different cameras, which cannot be effectively fused and affects the positioning accuracy.
By acquiring the center pixel data of the target object from multiple cameras, calculating the position information and confidence level of each, and then calculating the fused position information of the target object based on this information, taking into account the distance and confidence level between targets, the positioning accuracy is improved.
It improves the accuracy of multi-view visual positioning, ensures that the fused position information of the target object is matched with a reasonable high confidence level, avoids misjudgment and the use of invalid data, and improves the accuracy of positioning.
Smart Images

Figure CN115690231B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of autonomous driving technology, and in particular to a localization method based on multi-view vision. Background Technology
[0002] Among existing visual positioning technologies, multi-view visual positioning technology uses multiple cameras that overlap each other, fusing the positioning results from each camera to output a single result. Multi-view visual positioning technology can ensure that the high-precision positioning areas of each camera overlap, thus guaranteeing a high level of visual positioning accuracy across a wide area.
[0003] In practice, due to the poor positioning accuracy of a single camera for distant targets, the target information sent to the fusion module often shows that the position of the same target in different cameras deviates too much, causing the fusion module to identify it as two targets and thus fail to fuse them.
[0004] Therefore, there is an urgent need for a visual positioning fusion method to improve the accuracy of multi-view visual positioning. Summary of the Invention
[0005] This specification provides a multi-view vision-based localization method to solve the problem of the inability to fuse the same target due to positional deviations in multi-view vision localization.
[0006] To solve the above-mentioned technical problems, the embodiments in this specification are implemented as follows:
[0007] The localization method based on multi-view vision provided in the embodiments of this specification includes:
[0008] Acquire first positioning point data; the first positioning point data is the center pixel of the target object in the image acquired by the first data acquisition device at the first position.
[0009] Acquire second positioning point data; the second positioning point data is the center pixel of the target object in the image acquired by the second data acquisition device at the second position.
[0010] The first position information of the target object is calculated based on the pixel coordinate information of the first positioning point data;
[0011] The second position information of the target object is calculated based on the pixel coordinate information of the second positioning point data;
[0012] Calculate the first confidence level of the first location information and the second confidence level of the second location information, as well as the target distance between the first location information and the second location information;
[0013] The fused position information of the target object is calculated based on the first confidence level, the second confidence level, and the distance between the targets.
[0014] Optionally, calculating the first confidence level of the first location information and the second confidence level of the second location information specifically includes:
[0015] Get the first pixel offset;
[0016] Determine whether the first pixel offset of the first position information is greater than the pixel offset threshold to obtain a first determination result;
[0017] When the first judgment result indicates yes, the first confidence level is determined to be zero;
[0018] If the first judgment result indicates no, the value of 1 - first pixel offset / pixel offset threshold is determined as the first confidence level;
[0019] Get the second pixel offset;
[0020] Determine whether the second pixel offset of the second position information is greater than the pixel offset threshold to obtain a second determination result;
[0021] When the second judgment result is yes, the second confidence level is zero;
[0022] If the second judgment result is negative, the value of 1 - second pixel offset / pixel offset threshold is the second confidence level.
[0023] Optionally, obtaining the first pixel offset specifically includes:
[0024] Obtain the position information of each pixel adjacent to the first positioning point;
[0025] Calculate the distance between the first positioning point and each of the first pixels;
[0026] Calculate the average distance between the first pixels, and determine the average distance as the offset of the first pixel;
[0027] The specific steps of obtaining the second pixel offset include:
[0028] Obtain the position information of each pixel adjacent to the second positioning point;
[0029] Calculate the distance between the second positioning point and each of the second pixels;
[0030] Calculate the average distance between the second pixels, and determine the average distance as the second pixel offset.
[0031] Optionally, calculating the first position information of the target object based on the pixel coordinate information of the first positioning point data specifically includes:
[0032] The pixel coordinate information of the first positioning point is transformed to obtain the first position information;
[0033] The step of calculating the second position information of the target object based on the pixel coordinate information of the second positioning point data specifically includes:
[0034] The pixel coordinates of the second positioning point are transformed to obtain the second position information.
[0035] Optionally, before acquiring the first positioning point data, the method further includes:
[0036] The data acquisition device acquires images of target objects; the target objects are multiple.
[0037] Identify a set of images with the same target object identifier within the target image;
[0038] The first positioning point data and the second positioning point data are determined in the image set.
[0039] Optionally, calculating the fused positioning data of the target object specifically includes:
[0040] Obtain the maximum allowable distance and minimum confidence level for the target;
[0041] Based on the target distance of the first and second location information, as well as the first and second confidence levels, the fused positioning data of the target object is calculated.
[0042] Optionally, when the target distance between the first location information and the second location information is less than the maximum allowable distance between the targets, and both the first confidence level and the second confidence level are greater than the minimum confidence level, the average value of the first location information and the second location information is calculated, and the average value is used as the fused location information of the target object.
[0043] Optionally, when the target distance between the first location information and the second location information is less than the maximum allowable target distance, and the first confidence level or the second confidence level is less than the minimum credible confidence level,
[0044] A third judgment result is obtained by determining whether the sum of the distance between the targets and the first determined pixel offset is not greater than the maximum allowable distance between the targets; the first determined pixel offset is the lower pixel offset between the first confidence level and the second confidence level.
[0045] When the third judgment result indicates yes, the location information corresponding to the higher confidence level in the first confidence level and the second confidence level is used as the fused location information of the target object;
[0046] When the third judgment result indicates no, the fused position information of the target object is not calculated using the first position information and the second position information.
[0047] Optionally, when both the first confidence level and the second confidence level are less than the minimum confidence level, the fused location information of the target object is not calculated using the first location information and the second location information.
[0048] Optionally, when the target distance between the first location information and the second location information is greater than the maximum allowable target distance, and the first confidence level or the second confidence level is greater than the minimum confidence level, it is determined whether the difference between the target distance and the second determination pixel offset is not greater than the maximum allowable target distance, and a fourth determination result is obtained; the second determination pixel offset is the pixel offset corresponding to the lower of the first confidence level and the second confidence level.
[0049] When the fourth judgment result indicates yes, the location information corresponding to the higher confidence level in the first confidence level and the second confidence level is used as the fused location information of the target object;
[0050] When the fourth judgment result indicates no, the fused position information of the target object is not calculated using the first position information and the second position information.
[0051] One embodiment of this specification can achieve at least the following beneficial effects:
[0052] Using the pixel coordinate information of the first and second positioning point data, the first and second position information of the target object are calculated. A first confidence level is calculated based on the first position information, and a second confidence level is calculated based on the second position information. Finally, based on the first and second confidence levels and the distance between the first and second position information, the fused position information of the target object is calculated. The multi-view vision-based positioning method provided in this specification not only considers the distance between targets but also references the confidence information of the target data, thus improving the accuracy of multi-view vision positioning. Attached Figure Description
[0053] To more clearly illustrate the technical solutions in the embodiments or prior art of this specification, the drawings used in the description of the embodiments or prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0054] Figure 1 This is an architecture diagram of a multi-view vision-based positioning system provided in the embodiments of this specification;
[0055] Figure 2 This is a flowchart illustrating a localization method based on multi-view vision provided in the embodiments of this specification;
[0056] Figure 3 This is a flowchart illustrating a localization method based on multi-view vision in a practical application scenario provided in the embodiments of this specification. Detailed Implementation
[0057] To make the objectives, technical solutions, and advantages of one or more embodiments of this specification clearer, the technical solutions of one or more embodiments of this specification will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of this specification, and not all of them. Based on the embodiments in this specification, all other embodiments obtained by those skilled in the art without creative effort are within the protection scope of one or more embodiments of this specification.
[0058] It should be understood that although the terms first, second, third, etc., may be used in this application to describe various information, this information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another.
[0059] The technical solutions provided in the various embodiments of this specification are described in detail below with reference to the accompanying drawings.
[0060] In existing technologies, during multi-view vision positioning, due to the poor accuracy of a single camera for distant targets, after being fed into the fusion module, the positional deviation of the same target in different cameras may be too large, causing the fusion module to misjudge the target as two targets and fail to perform target fusion.
[0061] To address the shortcomings of existing technologies, this solution provides the following embodiments:
[0062] Figure 1 This is an architecture diagram of a multi-view vision-based localization system as described in an embodiment of this specification. Figure 1As shown, the architecture includes a data acquisition device 10 and a server 20. The data acquisition device 10 acquires images of the target object and locates the target object in the image using an algorithm. The data acquisition device 10 sends the image containing the location information to the server 20. The server 20 performs data fusion on the location data containing the same target object from multiple images and calculates a final output result to achieve the purpose of multi-view perception.
[0063] The data acquisition device 10 can be multiple cameras, each of which can locate the target object within the coverage area; the target object can be an object with a certain speed of movement, such as a moving vehicle or a moving pedestrian.
[0064] Next, a positioning method provided in the embodiments of the specification will be described in detail with reference to the accompanying drawings.
[0065] Figure 2 This is a flowchart illustrating a multi-view vision-based localization method provided in an embodiment of this specification. From a programming perspective, the execution entity of the process can be a program mounted on an application server or application terminal.
[0066] like Figure 2 As shown, the process may include the following steps:
[0067] Step 202: Obtain the first positioning point data; the first positioning point data is the center pixel of the target object in the image acquired by the first data acquisition device at the first position.
[0068] Step 204: Obtain the second positioning point data; the second positioning point data is the center pixel of the target object in the image acquired by the second data acquisition device at the second position.
[0069] The first and second positioning point data can be the center pixel points of the same target object in images acquired by different data acquisition devices. The first and second data acquisition devices can acquire data about the target object at different locations, and then use recognition algorithms to identify the target object in the images, obtaining the first and second positioning point data respectively.
[0070] The data acquisition device can be an image capturing device, such as a camera, which continuously captures images of the target object and uses an image recognition algorithm to identify the target object in each frame of the image.
[0071] Step 206: Calculate the first position information of the target object based on the pixel coordinate information of the first positioning point data.
[0072] Step 208: Calculate the second position information of the target object based on the pixel coordinate information of the second positioning point data.
[0073] Each pixel in an image captured by a camera corresponds to a pixel coordinate system. The pixel coordinate system represents the projection of a three-dimensional object onto the image plane, and its origin is located at the upper left corner of the image. The geodetic coordinate system is a coordinate system established in geodesy using a reference ellipsoid as its base surface; it is also known as the geographic coordinate system. The location of a point on the ground is represented by longitude L, latitude B, and altitude H.
[0074] In practical applications, the pixel coordinate system and the geodetic coordinate system in the image captured by the camera can be calibrated in advance to obtain the transformation matrix H between the pixel coordinate system and the geodetic coordinate system.
[0075] As an optional implementation, calculating the first position information of the target object based on the pixel coordinate information of the first positioning point data specifically includes:
[0076] The pixel coordinate information of the first positioning point is transformed to obtain the first position information;
[0077] The step of calculating the second position information of the target object based on the pixel coordinate information of the second positioning point data specifically includes:
[0078] The pixel coordinates of the second positioning point are transformed to obtain the second position information.
[0079] The pixel coordinates of the first positioning point data can be represented as (X1, Y1), and the pixel coordinates of the second positioning point data can be represented as (X2, Y2). The first position information of the target object is calculated using the pixel coordinate information of the first positioning point data obtained through the above transformation matrix, and the second position information of the target object is calculated using the pixel coordinate information of the second positioning point data.
[0080] Step 210: Calculate the first confidence level of the first location information and the second confidence level of the second location information, as well as the target distance between the first location information and the second location information.
[0081] The first confidence level can be understood as the degree of credibility of the target object at its first location, and the second confidence level can be understood as the degree of credibility of the target object at its second location. Since the first and second location information can be coordinates in a geodetic coordinate system, the distance between the target objects can be determined by the coordinate difference between the first and second location information. Since the first location information is the data of the center pixel of the first positioning point, and the second location information is the data of the center pixel of the second positioning point, the target distance can be the distance between the first and second positioning point data, that is, the positioning difference of the same target object collected by different data acquisition devices at different locations.
[0082] In practical applications, the Euclidean distance calculation method can be used to determine the target distance between the first location information and the second location information.
[0083] Step 212: Calculate the fused position information of the target object based on the first confidence level, the second confidence level, and the distance between the targets.
[0084] In the embodiments of this specification, when performing target fusion, not only is the distance between the targets based on the first position information and the second position information considered, but the position information of the fused target objects is also calculated based on the first confidence level and the second confidence level, so that the fused position information is matched with reasonable high-confidence targets, thereby improving the accuracy of multi-view vision positioning.
[0085] based on Figure 2 In addition to the method described herein, this specification also provides some specific implementation methods of this method, which will be described below.
[0086] Optionally, calculating the first confidence level of the first location information and the second confidence level of the second location information specifically includes:
[0087] Get the first pixel offset;
[0088] Determine whether the first pixel offset of the first position information is greater than the pixel offset threshold to obtain a first determination result;
[0089] When the first judgment result indicates yes, the first confidence level is determined to be zero;
[0090] If the first judgment result indicates no, the value of 1 - first pixel offset / pixel offset threshold is determined as the first confidence level;
[0091] Get the second pixel offset;
[0092] Determine whether the second pixel offset of the second position information is greater than the pixel offset threshold to obtain a second determination result;
[0093] When the second judgment result is yes, the second confidence level is zero;
[0094] If the second judgment result is negative, the value of 1 - second pixel offset / pixel offset threshold is the second confidence level.
[0095] Pixel offset can be understood as the jitter in the frame image caused by the parameters of the data acquisition device itself during the data acquisition process. This jitter introduces a pixel-level offset to the identified target. The pixel offset threshold can be understood as the maximum allowable error. The confidence level of the first positioning point can be determined by the relationship between the first pixel offset and the pixel offset threshold. The confidence level of the second positioning point can be determined by the relationship between the second pixel offset and the pixel offset threshold.
[0096] Optionally, obtaining the first pixel offset specifically includes:
[0097] Obtain the position information of each pixel adjacent to the first positioning point;
[0098] Calculate the distance between the first positioning point and each of the first pixels;
[0099] Calculate the average distance between the first pixels, and determine the average distance as the offset of the first pixel;
[0100] The specific steps of obtaining the second pixel offset include:
[0101] Obtain the position information of each pixel adjacent to the second positioning point;
[0102] Calculate the distance between the second positioning point and each of the second pixels;
[0103] Calculate the average distance between the second pixels, and determine the average distance as the second pixel offset.
[0104] The first pixel offset of the first positioning point can be determined by calculating the average distance between the first positioning point and all its adjacent pixels. Similarly, the second pixel offset of the second positioning point can be determined by calculating the average distance between the second positioning point and all its adjacent pixels.
[0105] In practical applications, the pixel offsets of all pixels in the images acquired by the first and second data acquisition devices can be calculated and stored in advance to obtain the confidence level of each pixel. This allows the confidence level of each pixel to be directly called during target fusion, thereby improving the speed of target fusion.
[0106] Optionally, before acquiring the first positioning point data, the method further includes:
[0107] The data acquisition device acquires images of target objects; the target objects are multiple.
[0108] Identify a set of images with the same target object identifier within the target image;
[0109] The first positioning point data and the second positioning point data are determined in the image set.
[0110] In practical applications, data acquisition devices can locate or identify targets within their coverage area. Each data acquisition device can simultaneously identify multiple targets. When fusing information about targets, it is necessary to determine that the targets being fused are the same. For example, if the image acquired by the first data acquisition device contains location data for vehicles 1 to 4, and the image acquired by the second data acquisition device contains location data for vehicles 2 to 5, then the first and second location point data could be location data for vehicle 3, vehicle 4, or vehicle 2.
[0111] Optionally, calculating the fused positioning data of the target object specifically includes:
[0112] Obtain the maximum allowable distance and minimum confidence level for the target;
[0113] Based on the target distance of the first and second location information, as well as the first and second confidence levels, the fused positioning data of the target object is calculated.
[0114] Optionally, when the target distance between the first location information and the second location information is less than the maximum allowable distance between the targets, and both the first confidence level and the second confidence level are greater than the minimum confidence level, the average value of the first location information and the second location information is calculated, and the average value is used as the fused location information of the target object.
[0115] Optionally, when the target distance between the first location information and the second location information is less than the maximum allowable target distance, and the first confidence level or the second confidence level is less than the minimum confidence level, it is determined whether the sum of the target distance and the first determined pixel offset is not greater than the maximum allowable target distance, and a third determination result is obtained; the first determined pixel offset is the lower pixel offset between the first confidence level and the second confidence level.
[0116] When the third judgment result indicates yes, the location information corresponding to the higher confidence level in the first confidence level and the second confidence level is used as the fused location information of the target object;
[0117] When the third judgment result indicates no, the fused position information of the target object is not calculated using the first position information and the second position information.
[0118] Optionally, when both the first confidence level and the second confidence level are less than the minimum confidence level, the fused location information of the target object is not calculated using the first location information and the second location information.
[0119] Optionally, when the target distance between the first location information and the second location information is greater than the maximum allowable target distance, and the first confidence level or the second confidence level is greater than the minimum confidence level, it is determined whether the difference between the target distance and the second determination pixel offset is not greater than the maximum allowable target distance, and a fourth determination result is obtained; the second determination pixel offset is the pixel offset corresponding to the lower of the first confidence level and the second confidence level.
[0120] When the fourth judgment result indicates yes, the location information corresponding to the higher confidence level in the first confidence level and the second confidence level is used as the fused location information of the target object;
[0121] When the fourth judgment result indicates no, the fused position information of the target object is not calculated using the first position information and the second position information.
[0122] Based on the above description, the embodiments of this specification provide a flowchart of a localization method based on multi-view vision in a practical application scenario, as shown below. Figure 3 As shown. In this embodiment, the example is a moving vehicle at a road intersection. The data acquisition device in this embodiment consists of four cameras, positioned at four different directions within the intersection, capturing images of the vehicle inside the intersection. It is assumed that there is no time difference between the perception data reported by each camera.
[0123] exist Figure 3 The process includes the following steps:
[0124] Step 301: Obtain the first positioning point data and the second positioning point data.
[0125] It should be noted that the first positioning point data and the second positioning point data refer to the center pixel of the target object in images of the same target taken by different cameras.
[0126] Before step 301, the server can perform coordinate transformation and confidence calculation on the pixels in the image captured by the camera to obtain the position information and confidence information of the first positioning point, as well as the position information and confidence information of the second positioning point.
[0127] When calculating the first pixel offset, the average distance between the first positioning point and the latitude and longitude coordinates of the four adjacent pixels (up, down, left, and right) is used as the first pixel offset D1.
[0128] The calculation process for the first confidence level C1 is as follows:
[0129]
[0130] Among them, D MAX This is the pixel offset threshold.
[0131] The calculation process for the second confidence level is the same as that for the first confidence level, and will not be repeated here.
[0132] Step 303: Calculate the first position information of the target object based on the pixel coordinate information of the first positioning point data; calculate the second position information of the target object based on the pixel coordinate information of the second positioning point data.
[0133] Step 305: Calculate the target distance between the first location information and the second location information.
[0134] Step 307: Determine whether the distance between the targets is less than the maximum allowable distance between the targets; if yes, proceed to step 309; if no, proceed to step 311.
[0135] Step 309: Determine whether both the first confidence level and the second confidence level are greater than the minimum credible confidence level; if yes, proceed to step 313; if no, proceed to step 315.
[0136] Step 313: Calculate the average value of the first location information and the second location information, and use the average value as the fused location information of the target object.
[0137] In this embodiment, when the target distance between the first location information and the second location information is less than the maximum allowable distance, and both the first confidence level and the second confidence level are higher than the minimum confidence level, the first location information and the second location information are fused, and the average value of the first location information and the second location information is used as the fused location information of the target object, while the original first location information and the second location information are deleted. Since the confidence levels of both the first location point data and the second location point data are higher than the minimum confidence level, using the average value of their location information as the fused location information of the target object improves the accuracy of target object fusion.
[0138] Step 315: Determine whether the first confidence level or the second confidence level is less than the minimum confidence level. If yes, proceed to step 317; otherwise, proceed to step 319.
[0139] Step 317: Determine whether the sum of the distance between the targets and the first determined pixel offset is not greater than the maximum allowable distance between the targets; if yes, proceed to step 321; if no, proceed to step 319.
[0140] Step 319: Calculate the fused position information of the target object without using the first position information and the second position information.
[0141] Step 321: Use the location information corresponding to the higher confidence level in the first confidence level and the second confidence level as the fused location information of the target object.
[0142] In this embodiment, when the target distance between the first location information and the second location information is less than the maximum allowable target distance, and when either the first confidence level or the second confidence level is less than the minimum confidence level, and the distance between the target distance and the first determined pixel offset is not greater than the maximum allowable target distance, the location information corresponding to the higher confidence level of the first confidence level and the second confidence level is used as the fused location information of the target object.
[0143] Since the confidence level of either the first or second location point data is less than the minimum confidence level, this could be due to deviations caused by factors such as the camera's shooting angle towards the vehicle. Therefore, the sum of the distance between targets and the pixel offset corresponding to the low confidence level is used as a criterion. Assuming this first confidence level is higher than the second confidence level, pixels within the second pixel offset of the second location point data can be considered as pixels of the target object. If the sum of the distance between targets and the pixel offset corresponding to the low confidence level is still less than the maximum allowable distance for the target, it means that the first position information corresponding to the first confidence level can represent the target object's position information. If the sum of the distance between targets and the pixel offset corresponding to the low confidence level is greater than the maximum allowable distance for the target, it means that even the first position information corresponding to the first confidence level is unreliable. In this case, the fused position information of the target object is not used, thus avoiding the use of invalid data as the target fusion data.
[0144] In the embodiments of this specification, when a confidence level is lower than the minimum confidence level, the matching range of pixels is expanded so that the fused position information of the target object can match a target with a higher confidence level, thereby improving the accuracy of multi-view visual positioning.
[0145] Step 311: Determine whether the first confidence level or the second confidence level is greater than the minimum credible confidence level; if yes, proceed to step 323, otherwise proceed to step 319.
[0146] Step 323: Determine whether the difference between the distance between the targets and the second determination pixel offset is not greater than the maximum allowable distance between the targets; if yes, proceed to step 325; if no, proceed to step 319.
[0147] Step 325: Use the location information corresponding to the higher confidence level in the first confidence level and the second confidence level as the fused location information of the target object.
[0148] In this embodiment, when the target distance between the first location information and the second location information is greater than the maximum allowable target distance, and when either the first confidence level or the second confidence level is greater than the minimum confidence level, and the distance between the target distance and the second determination pixel offset is not greater than the maximum allowable target distance, the location information corresponding to the higher confidence level of the first confidence level and the second confidence level is used as the fused location information of the target object.
[0149] In this embodiment, the distance between targets is greater than the maximum allowable distance between targets, but the confidence level of one of the data is higher than the minimum confidence level. In this case, the difference between the distance between targets and the pixel offset corresponding to the low confidence level is used as the judgment condition. Assuming that the first confidence level is higher than the second confidence level, if the difference between the distance between targets and the pixel offset corresponding to the second confidence level is less than the maximum allowable distance between targets, it means that the first position information corresponding to the first confidence level can be used as the information after target fusion; if the difference between the distance between targets and the second pixel offset is greater than the maximum allowable distance between targets, it means that the first position is also not suitable as the information after target fusion, and the first position information and the second position information are not used as the position information after target fusion.
[0150] In the embodiments of this specification, for data with high confidence, the matching range of data pixels is narrowed to determine whether the data with high confidence can be used as the fused position information of the target object, thereby improving the accuracy of multi-view vision positioning.
[0151] In this embodiment, data where the distance between targets is greater than the maximum allowable distance between targets, and where both the first confidence level and the second confidence level are lower than the minimum confidence level, are not used as the fused position information of the targets. This avoids invalid data being used as the fused data of the targets and improves the accuracy of target fusion.
[0152] In practical applications, when a vehicle detected by the camera fails to find a matching vehicle, it may be a newly appearing target vehicle. If the confidence level of the location data is higher than the minimum confidence level, the location data is retained. If the confidence level of the location data is lower than the minimum confidence level, the location data is deleted.
[0153] The foregoing has described specific embodiments of this specification. In some cases, the actions or steps described in the claims may be performed in a different order than those shown in the embodiments and may still achieve the desired results. Furthermore, the processes depicted in the drawings do not necessarily require a specific or sequential order to achieve the desired results. In some embodiments, multitasking and parallel processing are possible or may be advantageous.
[0154] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other.
[0155] In the 1990s, improvements to a technology could be clearly distinguished as either hardware improvements (e.g., improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the methodology). However, with technological advancements, many methodological improvements today can be considered direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved methodology into the hardware circuit. Therefore, it cannot be said that a methodological improvement cannot be implemented using hardware physical modules. For example, a Programmable Logic Device (PLD) (such as a Field Programmable Gate Array (FPGA)) is such an integrated circuit whose logic function is determined by the user programming the device. Designers can program a digital system themselves to "integrate" it onto a PLD, without needing chip manufacturers to design and manufacture dedicated integrated circuit chips. Furthermore, nowadays, instead of manually manufacturing integrated circuit chips, this programming is mostly implemented using "logic compiler" software. Similar to the software compiler used in program development, the original code before compilation must be written in a specific programming language, called a Hardware Description Language (HDL). There are many HDLs, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, and RHDL (Ruby Hardware Description Language). Currently, the most commonly used are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should understand that by simply performing some logic programming on the method flow using one of these hardware description languages and programming it into an integrated circuit, the hardware circuit implementing the logical method flow can be easily obtained.
[0156] The controller can be implemented in any suitable manner. For example, it can take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro)processor, logic gates, switches, application-specific integrated circuits (ASICs), programmable logic controllers, and embedded microcontrollers. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicon Labs C8051F320. A memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art will also recognize that, in addition to implementing the controller in purely computer-readable program code form, the same functionality can be achieved by logically programming the method steps to make the controller take the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers. Therefore, such a controller can be considered a hardware component, and the means included therein for implementing various functions can also be considered as structures within the hardware component. Alternatively, the means for implementing various functions can be considered as both software modules implementing the method and structures within the hardware component.
[0157] The systems, devices, modules, or units described in the above embodiments can be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, a computer can be, for example, a personal computer, laptop computer, cellular phone, camera phone, smartphone, personal digital assistant, media player, navigation device, email device, game console, tablet computer, wearable device, or any combination of these devices.
[0158] For ease of description, the above devices are described separately by function as various units. Of course, in implementing this application, the functions of each unit can be implemented in one or more software and / or hardware.
[0159] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0160] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0161] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0162] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0163] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0164] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0165] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital character versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0166] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0167] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0168] This application can be described in the general context of computer-executable instructions, such as program modules, that are executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform a specific task or implement a specific abstract data type. This application can also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.
[0169] The above description is merely an embodiment of this application and is not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.
Claims
1. A localization method based on multi-view vision, characterized in that, include: Obtain the data of the first positioning point; The first positioning point data is the center pixel of the target object in the image acquired by the first data acquisition device at the first position; Acquire second positioning point data; the second positioning point data is the center pixel of the target object in the image acquired by the second data acquisition device at the second position; The pixel offsets of all pixels in the images acquired by the first and second data acquisition devices are calculated and stored in advance to obtain the confidence level of each pixel; the pixel offset is the jitter of the frame image caused by the parameters of the data acquisition device itself during the data acquisition process. The first position information of the target object is calculated based on the pixel coordinate information of the first positioning point data; The second position information of the target object is calculated based on the pixel coordinate information of the second positioning point data; Calculate the first confidence level of the first location information and the second confidence level of the second location information, as well as the target distance between the first location information and the second location information; specifically including: Get the first pixel offset; Determine whether the first pixel offset of the first position information is greater than a pixel offset threshold to obtain a first determination result; When the first judgment result indicates yes, the first confidence level is determined to be zero; If the first judgment result indicates no, the value of 1 - first pixel offset / pixel offset threshold is determined as the first confidence level; Get the second pixel offset; Determine whether the second pixel offset of the second position information is greater than the pixel offset threshold to obtain a second determination result; When the second judgment result is yes, the second confidence level is zero; If the second judgment result is negative, the value of 1 - second pixel offset / pixel offset threshold is the second confidence level; Based on the first confidence level, the second confidence level, and the distance between targets, the fused position information of the target objects is calculated; specifically including: Obtain the maximum allowed distance and minimum confidence level for the target; Based on the target distance between the first location information and the second location information, as well as the first confidence level and the second confidence level, the fused positioning data of the target object is calculated; When the target distance between the first location information and the second location information is less than the maximum allowable distance between the targets, and both the first confidence level and the second confidence level are greater than the minimum confidence level, the average value of the first location information and the second location information is calculated, and the average value is used as the fused location information of the target object. When the distance between the target and the first location information and the second location information is less than the maximum allowable distance between the targets, and the first confidence level or the second confidence level is less than the minimum credible confidence level. A third judgment result is obtained by determining whether the sum of the distance between the targets and the first judgment pixel offset is not greater than the maximum allowable distance between the targets; the first judgment pixel offset is the pixel offset corresponding to the lower confidence level among the first confidence level and the second confidence level. When the third judgment result indicates yes, the location information corresponding to the higher confidence level in the first confidence level and the second confidence level is used as the fused location information of the target object; When the third judgment result indicates no, the fused position information of the target object is not calculated using the first position information and the second position information. If either the first confidence level or the second confidence level is less than the minimum confidence level, the fused location information of the target object is not calculated using the first location information and the second location information. When the target distance between the first location information and the second location information is greater than the maximum allowable target distance, and the first confidence level or the second confidence level is greater than the minimum confidence level, it is determined whether the difference between the target distance and the second judgment pixel offset is not greater than the maximum allowable target distance, and a fourth judgment result is obtained; the second judgment pixel offset is the pixel offset corresponding to the lower confidence level among the first confidence level and the second confidence level. When the fourth judgment result indicates yes, the location information corresponding to the higher confidence level in the first confidence level and the second confidence level is used as the fused location information of the target object; When the fourth judgment result indicates no, the fused position information of the target object is not calculated using the first position information and the second position information.
2. The localization method based on multi-view vision according to claim 1, characterized in that, The specific steps of obtaining the first pixel offset include: Obtain the position information of each pixel adjacent to the first positioning point; Calculate the distance between the first positioning point and each of the first pixels; Calculate the average distance between the first pixels, and determine the average distance as the offset of the first pixel; The specific steps of obtaining the second pixel offset include: Obtain the position information of each pixel adjacent to the second positioning point; Calculate the distance between the second positioning point and each of the second pixels; Calculate the average distance between the second pixels, and determine the average distance as the second pixel offset.
3. The localization method based on multi-view vision according to claim 1, characterized in that, The step of calculating the first position information of the target object based on the pixel coordinate information of the first positioning point data specifically includes: The pixel coordinate information of the first positioning point is transformed to obtain the first position information; The step of calculating the second position information of the target object based on the pixel coordinate information of the second positioning point data specifically includes: The pixel coordinates of the second positioning point are transformed to obtain the second position information.
4. The localization method based on multi-view vision according to claim 1, characterized in that, Before acquiring the first positioning point data, the method further includes: The data acquisition device acquires images of target objects; there are multiple target objects. Determine a set of images with the same target object identifier from the target object image; The first positioning point data and the second positioning point data are determined in the image set.
Citation Information
Patent Citations
Target detection method and device
CN112069862A
Target detection method and device
WO2020248910A1
Target positioning method and system, and related device
WO2022143237A1
