Obstacle ground frame determination method, controller, vehicle, storage medium and program
By determining the obstacle's grounding point information in the image acquired by the vehicle-mounted shooting device, and forming a closed grounding frame in the AVM diagram, the problem of incomplete display due to the large field of view is solved, and the integrity and integrity of the obstacle's grounding information are improved. Security.
Patent Information
- Application Number
- CN202410736596.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-06-07
AI Technical Summary
Due to the large field of view of the vehicle-mounted shooting device and the limited display size of the AVM map, when the image is mapped to the AVM map, only part of the content can be displayed, and the grounding information of the obstacle cannot be fully displayed, affecting driving and parking. Safety.
By determining the grounding point information of the target obstacle in the image acquired by the vehicle-mounted shooting device, and based on this information, the closed grounding frame in the AVM diagram is determined, including the critical grounding point and the effective grounding point, connected to form a grounding frame, and mapped to the AVM diagram to supplement the incomplete obstacle information.
It realizes the determination of the complete grounding information of incompletely displayed obstacles in the AVM diagram, improving the safety of driving and parking.
Smart Images

Figure CN118314334B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of vehicles, and in particular, to a method for determining an obstacle ground frame, a controller, a vehicle, a storage medium, and a program. Background Art
[0002] With the development of vehicle technology, related technologies can map images obtained by a vehicle-mounted camera device into an AVM map to assist the driver in driving the vehicle.
[0003] However, since the field of view of the vehicle-mounted camera is large and the display size of the AVM is limited, when mapping the image acquired by the vehicle-mounted camera into the AVM, only part of the displayed content in the image can be mapped into the AVM. As a result, there is a problem that obstacles in the image are not fully displayed in the AVM, and it is impossible to determine the grounding information of the incompletely displayed obstacles in the AVM, which can easily cause driving safety problems. Summary of the invention
[0004] The purpose of the present disclosure is to provide a method for determining an obstacle grounding frame, a controller, a vehicle, a storage medium and a program to solve the above-mentioned technical problems.
[0005] In order to achieve the above-mentioned object, the present disclosure provides a method for determining an obstacle ground frame in a first aspect, the method comprising:
[0006] Determining ground point information of a target obstacle in an image acquired by a vehicle-mounted camera device, wherein the target obstacle is an obstacle that is not fully displayed in the AVM map of the vehicle after the image is mapped to the AVM map of the vehicle;
[0007] A closed grounding frame of the target obstacle in the AVM image is determined according to the grounding point information.
[0008] Optionally, determining a closed grounding frame of the target obstacle in the AVM image according to the grounding point information includes:
[0009] Determine, according to the grounding point information, a critical grounding point and an effective grounding point of the target obstacle, wherein the critical grounding point is a grounding point located at the edge of an effective area, and the effective grounding point is a grounding point located in the effective area other than the critical grounding point, and the effective area is an area in the image whose image content can be mapped into the AVM map of the vehicle;
[0010] A closed grounding frame of the target obstacle in the AVM diagram is determined according to the critical grounding point and the effective grounding point.
[0011] Optionally, determining the critical grounding point of the target obstacle according to the grounding point information includes:
[0012] Determining a grounding frame of the target obstacle according to the grounding point information;
[0013] The critical grounding point of the target obstacle is determined according to the boundary line between the invalid area and the valid area and the grounding frame, wherein the invalid area is an area in the image whose image content cannot be mapped to the AVM image.
[0014] Optionally, determining the critical grounding point of the target obstacle according to a boundary line between the invalid area and the valid area and the grounding frame includes:
[0015] The intersection point of the boundary line and the ground frame is determined as the critical ground point of the target obstacle.
[0016] Optionally, determining the critical grounding point of the target obstacle according to the grounding point information includes:
[0017] Determine, according to the grounding point information, a cross-border edge of the target obstacle, wherein the cross-border edge is an edge of the target obstacle that is not fully displayed in the AVM image after the image is mapped to the AVM image;
[0018] A critical grounding point of the target obstacle is determined according to the cross-border edge.
[0019] Optionally, the grounding point information includes an edge of the target obstacle in contact with the ground and a first grounding point coordinate of an end point of the edge, and determining the cross-border edge of the target obstacle according to the grounding point information includes:
[0020] Determine, according to the first ground point coordinates, a first identifier for characterizing whether the endpoint of the edge is located in a valid area, the valid area being an area in the image that can be mapped to the AVM image by a pixel point;
[0021] When the first identifiers between the end points corresponding to the edge of the target obstacle in contact with the ground are different, the edge is determined as the crossing edge of the target obstacle.
[0022] Optionally, determining, according to the first ground point coordinates, a first identifier used to characterize whether the endpoint of the edge is located in a valid area includes:
[0023] A first identifier for characterizing whether the endpoint of the edge is located in a valid area is determined based on the coordinates of the first ground point and a preset coordinate information comparison table, wherein the coordinate information comparison table is used to indicate whether a pixel point in the image is located in the valid area.
[0024] Optionally, determining the critical grounding point of the target obstacle according to the cross-border edge includes:
[0025] Determine a second identifier for characterizing whether a grounding point in the cross-border edge is located in a valid area;
[0026] When the second identifiers between two adjacent grounding points in the cross-border edge are different, the corresponding second identifiers in the two adjacent grounding points are used to characterize the target grounding point where the grounding point is located in the valid area and determined as the critical grounding point of the target obstacle.
[0027] Optionally, when the second identifiers between two adjacent grounding points in the cross-border edge are different, using the corresponding second identifiers in the two adjacent grounding points to characterize the target grounding point where the grounding point is located in the valid area, and determining it as a critical grounding point located at the edge of the valid area in the cross-border edge, includes:
[0028] Any endpoint corresponding to the cross-border edge is used as the initial first grounding point to be processed, and the following process is performed cyclically:
[0029] When the first target grounding point adjacent to the first grounding point to be processed in the cross-border edge and the second identifier between the first grounding point to be processed are the same, the first target grounding point is used as the new first grounding point to be processed until the second identifier between the first target grounding point and the first grounding point to be processed is different, and when the second identifier between the first target grounding point and the first grounding point to be processed is different, the corresponding second identifier between the first target grounding point and the first grounding point to be processed is used to characterize the grounding point located in the valid area, and is determined as the critical grounding point located at the edge of the valid area in the cross-border edge.
[0030] Optionally, the determining a second identifier for characterizing whether the grounding point in the cross-border edge is located in a valid area includes:
[0031] Determine a second grounding point coordinate of a grounding point in the cross-border edge;
[0032] A second identifier for characterizing whether the ground point in the cross-border edge is located in a valid area is determined based on the coordinates of the second ground point and a preset coordinate information comparison table, wherein the coordinate information comparison table is used to indicate whether a pixel point in the image is located in the valid area.
[0033] Optionally, the determining the coordinates of a second grounding point of the grounding point in the cross-border edge includes:
[0034] Any endpoint corresponding to the cross-border edge is used as the initial second grounding point to be processed, and the following process is performed cyclically:
[0035] According to the grounding point coordinates of the second grounding point to be processed, the preset horizontal axis interval value and the preset vertical axis interval value, determine the second grounding point coordinates of the second target grounding point adjacent to the second grounding point to be processed in the cross-border edge, and use the second target grounding point as the new second grounding point to be processed until the adjacent grounding point corresponding to the other endpoint of the cross-border edge is used as the second grounding point to be processed, wherein the horizontal axis interval value is used to characterize the horizontal axis coordinate interval value between adjacent grounding points in the cross-border edge, and the vertical axis interval value is used to characterize the vertical axis coordinate interval value between adjacent grounding points in the cross-border edge.
[0036] Optionally, the horizontal axis interval value and the vertical axis interval value are determined in the following manner:
[0037] Determine, according to the grounding point coordinates of each endpoint corresponding to the cross-border edge, a horizontal axis coordinate difference and a vertical axis coordinate difference between each endpoint corresponding to the cross-border edge;
[0038] When the absolute value of the horizontal axis coordinate difference is greater than the absolute value of the vertical axis coordinate difference, the preset coordinate interval value is determined as the horizontal axis interval value, and the vertical axis interval value is determined according to the coordinate interval value and a preset calculation formula;
[0039] When the absolute value of the horizontal axis coordinate difference is greater than the absolute value of the vertical axis coordinate difference, the preset coordinate interval value is determined as the vertical axis interval value, and the horizontal axis interval value is determined according to the coordinate interval value and the preset calculation formula.
[0040] Optionally, the coordinate information comparison table is obtained in the following manner:
[0041] Determine a first coordinate of a pixel point in the image, and determine a second coordinate of the pixel point in the AVM image based on the first coordinate, a distance corresponding to the pixel point, and a preset coordinate mapping relationship, wherein the coordinate mapping relationship is used to characterize a mapping relationship between the coordinate of the pixel point in the image in the image and the coordinate of the pixel point in the AVM image;
[0042] Determine, according to the image size of the AVM image and the second coordinate, whether the pixel point corresponding to the second coordinate is located at the target mark of the valid area;
[0043] A coordinate information comparison table is determined according to the correspondence between the pixel point, the first coordinate and the target identifier.
[0044] Optionally, the coordinate mapping relationship is obtained in the following manner:
[0045] The camera used to acquire the image is jointly calibrated to obtain the camera intrinsic parameters and camera extrinsic parameters with the target position as the origin;
[0046] Determine a first product of a coordinate matrix of pixel points in the image and a preset camera depth, and determine a second product of a camera intrinsic parameter matrix and a camera extrinsic parameter matrix, and determine a ratio of the first product to the second product as a coordinate mapping relationship, wherein the coordinate matrix is determined according to the coordinates of the pixel points, the camera intrinsic parameter matrix is determined according to the camera intrinsic parameters, and the camera extrinsic parameter matrix is determined according to the camera extrinsic parameters.
[0047] Optionally, determining a closed grounding frame of the target obstacle in the AVM diagram according to the critical grounding point and the effective grounding point includes:
[0048] Connecting the critical grounding point and the effective grounding point to form a starting grounding frame in the image;
[0049] According to a preset coordinate mapping relationship, the starting ground frame is mapped into the AVM map to obtain a closed ground frame of the target obstacle in the AVM map.
[0050] Optionally, determining the grounding point information of the target obstacle in the image acquired by the vehicle-mounted camera device includes:
[0051] The image is input into a target detection model to obtain the grounding point information of the target obstacle, wherein the target detection model is obtained by training the detection model with the sample image as input and the grounding point information of the sample obstacle as output.
[0052] Optionally, the image is obtained by:
[0053] The image around the vehicle is obtained by collecting the image by a fisheye camera arranged at a preset position of the vehicle.
[0054] A second aspect of the present disclosure provides a controller, the controller comprising:
[0055] processor;
[0056] a memory for storing processor-executable instructions;
[0057] Wherein, the processor is configured to: execute the steps of any method described in the first aspect.
[0058] A third aspect of the present disclosure provides a vehicle, comprising the controller according to the second aspect, or,
[0059] The vehicle comprises a processor and a memory for storing processor executable instructions, wherein the processor is configured to: execute the steps of any one of the methods described in the first aspect.
[0060] A fourth aspect of the present disclosure provides a non-temporary computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any one of the methods described in the first aspect.
[0061] A fifth aspect of the present disclosure provides a computer program product, comprising a computer program, which, when executed by a processor, implements the steps of any one of the methods described in the first aspect.
[0062] Through the above technical solution, the grounding point information of the target obstacle can be determined based on the image obtained by the vehicle-mounted camera device, and the closed grounding frame of the target obstacle in the AVM map can be determined based on the grounding point information, wherein the target obstacle is an obstacle that is not fully displayed in the AVM map. Thus, the closed grounding frame of the displayed part of the target obstacle in the AVM map can be determined based on the image obtained by the vehicle-mounted camera device. That is to say, the present disclosure can determine the grounding information of the incompletely displayed obstacle in the AVM map, thereby making the grounding information in the AVM map richer and more complete, and improving driving safety and / or parking safety.
[0063] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] The accompanying drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present disclosure but do not constitute a limitation of the present disclosure. In the accompanying drawings:
[0065] Figure 1 is a schematic diagram showing a comparison of a target obstacle before and after mapping according to an exemplary embodiment of the present disclosure;
[0066] Figure 2 is a flow chart of a method for determining an obstacle ground frame according to an exemplary embodiment of the present disclosure;
[0067] Figure 3 is a schematic diagram showing determination of a valid area and an invalid area according to an exemplary embodiment of the present disclosure;
[0068] Figure 4 is a ground frame of a target obstacle displayed in an AVM map based on the method of the present disclosure according to an exemplary embodiment of the present disclosure;
[0069] Figure 5is a schematic diagram showing a cross-border edge determination of a target obstacle according to an exemplary embodiment of the present disclosure;
[0070] Figure 6 is a flow chart of another method for determining an obstacle ground frame according to an exemplary embodiment of the present disclosure;
[0071] Figure 7 is a structural block diagram of a device for determining an obstacle ground frame according to an exemplary embodiment of the present disclosure;
[0072] Figure 8 It is a schematic diagram of a functional block diagram of a vehicle according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0073] The specific implementation of the present disclosure is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described herein is only used to illustrate and explain the present disclosure, and is not used to limit the present disclosure.
[0074] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0075] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0076] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0077] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0078] As mentioned in the background technology, since the field of view of the vehicle-mounted camera device is large, and the display size of the AVM map is limited, when mapping the image acquired by the vehicle-mounted camera device into the AVM map, only part of the display content in the image can be mapped into the AVM map. Therefore, after the image is mapped into the AVM map, there is a problem that the obstacles in the image are not fully displayed in the AVM map, and then the grounding information of the incompletely displayed obstacles in the AVM map cannot be determined, making the obstacle grounding information in the AVM map incomplete, which is easy to cause driving safety.
[0079] For example, in a parking scenario, the vehicle's automatic assistance system can use a fisheye camera to capture fisheye images, then identify obstacles in the fisheye images and map the identified obstacles into the AVM map, so as to plan the path according to the display of obstacles in the AVM map. However, during the mapping process, only part of the content in the fisheye image can be mapped into the AVM map, which leads to the problem that obstacles in the image are not fully displayed in the AVM map, such as Figure 1 As shown. As a result, the closed ground frame of the obstacle displayed in the AVM image cannot be determined, making the obstacle grounding information in the AVM image incomplete, and the grounding area of the obstacle displayed in the AVM image cannot be accurately determined, resulting in parking safety issues when the automatic assistance system performs parking path planning.
[0080] In view of this, the present disclosure provides an obstacle ground frame determination method, a controller, a vehicle, a storage medium and a program to solve the above technical problems.
[0081] The embodiments of the present disclosure are further explained below with reference to the accompanying drawings.
[0082] Figure 2 is a flowchart of a method for determining an obstacle ground frame according to an exemplary embodiment of the present disclosure, referring to Figure 2 , the method may include the following steps:
[0083] S201: Determine the grounding point information of a target obstacle in an image acquired by a vehicle-mounted camera device, where the target obstacle is an obstacle that is not fully displayed in the AVM map after the image is mapped to the vehicle's AVM map.
[0084] The target obstacle may be all obstacles that are not fully displayed in the AVM map, or obstacles that are not fully displayed in the AVM map and are close to the vehicle. The obstacle may be a wheel chock, a cone, a pedestrian, a ground lock, a pillar, and / or other vehicles, etc., which is determined according to actual conditions, and the embodiments of the present disclosure do not impose any limitation on this.
[0085] The grounding point information is used to characterize the contact information between the target obstacle and the ground, which can be determined according to the actual situation, and the embodiments of the present disclosure do not impose any restrictions on this. For example, the grounding point information may include the number of grounding points, the location of grounding points, the distribution information of grounding points, the number of grounding wires, the connection method between grounding wires, or the location of grounding wires.
[0086] Among them, the image acquired by the vehicle-mounted camera device may be one or more images, and the embodiments of the present disclosure do not impose any restrictions on this. In order to be able to more accurately determine the grounding point information of the target obstacle, the image acquired by the vehicle-mounted camera device may be multiple images, and the image content corresponding to each image is different. For example, images can be collected by fisheye cameras set in the front, rear, left front, left rear, right front and / or right rear of the vehicle. That is to say, in a possible manner, the image can be obtained by collecting images around the vehicle with a fisheye camera set at a preset position of the vehicle, so that the grounding point information of the target obstacle can be accurately determined based on images in different positions.
[0087] After the image is acquired through the vehicle-mounted camera, the image can be analyzed and processed to obtain the grounding point information of the target obstacle.
[0088] Among possible ways, determining the grounding point information of the target obstacle in the image may include:
[0089] The image is input into the target detection model to obtain the grounding point information of the target obstacle, wherein the target detection model is trained by taking the sample image as input and the grounding point information of the sample obstacle as output.
[0090] The detection model may be a detection model in the related art, or a detection model that is improved from the detection model in the related art, and the embodiments of the present disclosure do not impose any restrictions on this. For example, the detection model may be an R-CNN (Region-based Convolutional Neural Networks) series model, an SSD (Single Shot MultiBox Detector) model, or a YOLO (You Only LookOnce) series model.
[0091] Among them, the label can be determined according to the specific situation of the sample grounding point information, and the embodiments of the present disclosure do not impose any restrictions on this. For example, when the sample grounding point information includes a grounding frame where the target obstacle contacts the ground and an edge where the target obstacle contacts the ground, the label may include a first label and a second label, wherein the first label is used to indicate the sample grounding frame of the sample image, and the second label is used to indicate the sample edge in the sample image. Accordingly, after the sample image is input into the detection model, the predicted grounding frame and predicted edge of the sample image can be obtained, thereby determining the first loss function value based on the predicted grounding frame and the first label, determining the second loss function value based on the predicted edge and the second label, and updating the parameters of the detection model based on the first loss function value and the second loss function value until a preset number of iterations is reached or the accuracy of the detection model reaches a preset value.
[0092] After the detection model is determined, in order to determine the grounding point information of the target obstacle according to the image based on the detection model, the detection model needs to be trained based on the training data to obtain the target detection model.
[0093] Among possible approaches, the target detection model can be obtained by training the detection model in the following ways:
[0094] Obtain a sample image and a label, wherein the label is used to indicate the grounding point information of a sample obstacle in the sample image; input the sample image into the detection model to obtain the predicted grounding point information of the sample obstacle, and determine the loss function value based on the predicted grounding point information and the label, and update the parameters of the detection model based on the loss function value until a preset number of iterations is reached or the accuracy of the detection model reaches a preset value.
[0095] Therefore, the grounding point information of the target obstacle can be obtained in the above manner.
[0096] S202: Determine a closed grounding frame of the target obstacle in the AVM image according to the grounding point information.
[0097] In a possible manner, determining a closed ground frame of the target obstacle in the AVM map according to the ground point information may include:
[0098] According to the grounding point information, the critical grounding point and the effective grounding point of the target obstacle are determined. The critical grounding point is the grounding point located at the edge of the effective area, and the effective grounding point is the grounding point located in the effective area except the critical grounding point. The effective area is the area in the image whose image content can be mapped to the AVM image; according to the critical grounding point and the effective grounding point, the closed grounding frame of the target obstacle in the AVM image is determined.
[0099] It should be understood that the image content in the image is generally expressed in the form of pixels. Therefore, the effective area can also refer to the area in the image where the pixels can be mapped to the AVM map. That is, the pixels in the area can be displayed in the AVM map after coordinate transformation. For example, Figure 3 As shown, after the quadrilateral ABCD in the image is mapped into the AVM image, only the BE edge, BC edge and CF edge are displayed in the AVM image, and thus, the area where the BE edge, BC edge and CF edge are located is the valid area of the image.
[0100] After the effective area is determined, the critical grounding point and the effective grounding point of the target obstacle can be determined based on the effective area and the grounding point information.
[0101] For example, after obtaining the grounding point information, the grounding frame or grounding wire where the target obstacle contacts the ground can be determined based on the grounding point information, and then the critical grounding point and the effective grounding point of the target obstacle can be determined based on the distribution of the grounding frame or the grounding wire in the effective area. After that, the effective grounding frame of the target obstacle in the image is obtained by connecting the critical grounding point and the effective grounding point, and the effective grounding frame is mapped to the AVM map based on the mapping relationship between the image and the AVM map to obtain the closed grounding frame of the target obstacle in the AVM map. That is to say, in a possible manner, determining the closed grounding frame of the target obstacle in the AVM map based on the critical grounding point and the effective grounding point may include:
[0102] The critical grounding point and the effective grounding point are connected to form a starting grounding frame in the image; according to the preset coordinate mapping relationship, the starting grounding frame is mapped to the AVM image to obtain a closed grounding frame of the target obstacle in the AVM image.
[0103] For example, Figure 4 As shown in the figure, the quadrilateral ABCD in the image is used to characterize the grounding frame of the target obstacle. Since the grounding lines displayed in the effective area are BE grounding line, BC grounding line and CF grounding line, and the grounding points E and F are located at the edge of the effective area, the critical grounding points (grounding points E and F) and the effective grounding points (grounding points B and C) of the target obstacle can be obtained. Then, the grounding points E, F, B and C can be connected to obtain the starting grounding frame BCEF, and then the starting grounding frame BCEF is mapped to the AVM map based on the mapping relationship between the image and the AVM map to obtain the closed grounding frame B'C'F'E' of the target obstacle in the AVM map.
[0104] Among possible ways, determining the critical touchdown point of the target obstacle based on the touchdown point information may include:
[0105] According to the grounding point information, the grounding frame of the target obstacle is determined; according to the boundary line between the invalid area and the valid area and the grounding frame, the critical grounding point of the target obstacle is determined, wherein the invalid area is the area in the image whose image content cannot be mapped into the AVM image.
[0106] As mentioned above, the image content in the image is generally expressed in the form of pixels. Therefore, the invalid area can also refer to the area in the image where the pixels cannot be mapped to the AVM map. That is, the pixels in this area cannot be displayed in the AVM map after the coordinate transformation. Figure 3 As shown, after the quadrilateral ABCD in the image is mapped into the AVM image, the EA edge, the AD edge and the DF edge are not displayed. Therefore, the area where the EA edge, the AD edge and the DF edge are located is an invalid area of the image.
[0107] It should be understood that since the critical grounding point is a grounding point located at the edge of the effective area, after the effective area is determined by pixel mapping, the critical grounding points can be connected to obtain the boundary line between the effective area and the invalid area. Figure 3 As shown, after the grounding point E and the grounding point F are obtained, by connecting EF and extending toward the edge of the image, the boundary line between the effective area and the invalid area, that is, the straight line MN, can be obtained.
[0108] It should be understood that the boundary line between the valid area and the invalid area obtained here is only for schematic illustration and does not constitute a limitation to the scheme. In a possible manner, a coordinate information comparison table can also be determined in advance based on the mapping relationship between the image and the AVM map, wherein the coordinate information comparison table is used to indicate whether the pixel point in the image is located in the valid area. Then, based on the coordinate information comparison table, the target pixel point in the image that is located in the valid area and close to the pixel point located in the invalid area is determined, and finally the boundary line between the valid area and the invalid area is obtained by connecting the target pixel point.
[0109] After determining the boundary line between the invalid area and the valid area, the critical grounding point can be determined according to the distribution of the grounding frame of the target obstacle and the boundary line.
[0110] Among possible ways, determining the critical grounding point of the target obstacle according to the boundary line between the invalid area and the valid area and the grounding frame may include:
[0111] The intersection of the boundary line and the ground frame is determined as the critical grounding point of the target obstacle.
[0112] For example, continue to refer to Figure 3As shown, if the quadrilateral ABCD represents the grounding frame of the target obstacle, the intersection points (intersection point E and intersection point F) of the grounding frame ABCD and the straight line MN can be determined as critical grounding points.
[0113] Among possible ways, determining the critical touchdown point of the target obstacle based on the touchdown point information may include:
[0114] According to the grounding point information, the cross-border edge of the target obstacle is determined. The cross-border edge is the edge of the target obstacle that is not fully displayed in the AVM image after the image is mapped to the AVM image. According to the cross-border edge, the critical grounding point of the target obstacle is determined.
[0115] Among them, determining the cross-border edge of the target obstacle can be to first determine the grounding line (i.e., edge) where the target obstacle contacts the ground, then map the edge to the AVM map through the mapping relationship between the image and the AVM map, and determine whether the edge is a cross-border edge based on the display of the edge in the AVM map. Alternatively, the valid area and invalid area of the image can be determined in advance based on the mapping relationship between the image and the AVM map; then, after the image is acquired, the grounding point where the target obstacle contacts the ground in the image is determined, and the cross-border edge is determined based on the distribution of the grounding point in the valid area and the invalid area.
[0116] For example, Figure 5 As shown, the target obstacle has four grounding points. When all four grounding points are in the valid area or all four grounding points are in the invalid area, it is determined that there is no cross-border edge in the target obstacle; otherwise, there is a cross-border edge in the target obstacle.
[0117] In a possible manner, the grounding point information includes the edge of the target obstacle in contact with the ground and the first grounding point coordinates of the end point of the edge. Determining the cross-border edge of the target obstacle around the vehicle according to the grounding point information may include:
[0118] According to the coordinates of the first grounding point, determine whether the endpoint representing the edge is located in the first identifier of the valid area; when the first identifiers between the endpoints corresponding to the edge where the target obstacle contacts the ground are different, determine the edge as a cross-border edge.
[0119] For example, the edge of the target obstacle that contacts the ground includes the edge ab , and the edge ab Include endpoints a and endpoints b , if the endpoint a The first identifier and endpoint b If the first identifier of ab Determine it as a cross-border edge. a The first identifier and endpoint bIf the first identifier of is the same, the edge ab Determined as non-cross-border edge.
[0120] In a possible manner, in order to quickly determine the first identifier of the endpoint and improve the efficiency of determining the closed ground frame, determining the first identifier for characterizing whether the endpoint of the edge is located in the valid area according to the first ground point coordinates may include:
[0121] A first identifier for characterizing whether an endpoint of an edge is located in a valid area is determined according to the first ground point coordinates and a preset coordinate information comparison table, wherein the coordinate information comparison table is used to indicate whether a pixel point in an image is located in a valid area.
[0122] For example, the grounding point coordinates of endpoint 1 are ( , ), , ) is pixel 1. If the coordinate information comparison table indicates that pixel 1 is located in the valid area, a first identifier used to characterize that endpoint 1 is located in the valid area is determined.
[0123] For example, the grounding point coordinates of endpoint 2 are ( , ), , ) is pixel 2. If the coordinate information comparison table indicates that pixel 2 is not located in the valid area, a first identifier used to characterize that endpoint 2 is not located in the valid area is determined.
[0124] It should be understood that the first identification of whether the endpoint of the edge is located in the valid area according to the first ground point coordinates is only for schematic illustration and does not constitute a limitation on the scheme. In a possible manner, the pixel corresponding to the first ground point coordinates can also be mapped to the AVM map according to the mapping relationship between the image and the AVM map, and then the first identification is determined according to the display of the pixel in the AVM map. For example, if the pixel can be displayed in the AVM map, it is determined that the endpoint of the edge is located in the first identification of the valid area; if the pixel cannot be displayed in the AVM map, it is determined that the endpoint of the edge is not located in the first identification of the valid area. Alternatively, the target coordinates of the pixel corresponding to the first ground point coordinates in the AVM map can be determined according to the mapping relationship between the image and the AVM map, and then the first identification is determined according to the target coordinates and the coordinate range of the AVM map. For example, if the target coordinates are within the coordinate range of the AVM map, it is determined that the endpoint of the edge is located in the first identification of the valid area; if the target coordinates are not within the coordinate range of the AVM map, it is determined that the endpoint of the edge is not located in the first identification of the valid area.
[0125] Among the possible ways, the coordinate information comparison table can be obtained by:
[0126] Determine the first coordinate of a pixel point in the image, and determine the second coordinate of the pixel point in the AVM image based on the first coordinate, the distance corresponding to the pixel point, and a preset coordinate mapping relationship, wherein the coordinate mapping relationship is used to characterize the mapping relationship between the coordinates of the pixel point in the image and the coordinates in the AVM image; determine whether the pixel point corresponding to the second coordinate is located in a target identifier in a valid area according to the image size and the second coordinate of the AVM image; determine a coordinate information comparison table according to the correspondence between the pixel point, the first coordinate, and the target identifier.
[0127] It should be understood that the distance corresponding to the pixel point is determined according to the actual situation, and the embodiments of the present disclosure do not impose any limitation on this.
[0128] It should also be understood that, based on the image size of the AVM image and the second coordinate, determining whether the pixel point corresponding to the second coordinate is located in the target identification of the valid area can be: first, determining the coordinate range of the AVM image based on the image size of the AVM image; and then determining the target identification based on the second coordinate and the coordinate range of the AVM image.
[0129] For example, if the coordinates of the pixel point in the image are ( , ), the distance corresponding to the pixel point is K meters, then through the coordinate mapping relationship and the distance corresponding to the pixel point, the coordinate of the pixel point in the AVM map can be obtained as ( , ), because the grounding point , so it is ignored. If the image length of the AVM image is M and the image width is N, then according to the image length M, image width N and ( ),Sure( ) is within the coordinate range of the AVM diagram. If ( ) In the coordinate range of the AVM map, determine the target mark used to characterize the pixel point within the valid area; if ( ) is not within the coordinate range of the AVM map, and is used to identify the target mark that the pixel point is not within the valid area.
[0130] Among the possible ways, the coordinate mapping relationship can be obtained by:
[0131] The camera used to acquire the image is jointly calibrated to obtain the camera intrinsic parameters and camera extrinsic parameters with the target position as the origin; the first product of the coordinate matrix of the pixel points in the image and the preset camera depth is determined, and the second product of the camera intrinsic parameter matrix and the camera extrinsic parameter matrix is determined, and the ratio of the first product to the second product is determined as the coordinate mapping relationship, wherein the coordinate matrix is determined according to the coordinates of the pixel points, the camera intrinsic parameter matrix is determined according to the camera intrinsic parameters, and the camera extrinsic parameter matrix is determined according to the camera extrinsic parameters.
[0132] The preset camera depth and target position can be set according to actual conditions, and the embodiment of the present disclosure does not impose any restrictions on this. For example, the target position can be the center of the rear axle of the vehicle.
[0133] After determining the center of the vehicle's rear axle, the camera can be jointly calibrated with the center of the vehicle's rear axle as the origin to obtain the camera's intrinsic parameters and camera extrinsic parameters, and then determine the coordinate mapping relationship.
[0134] For example, the coordinate matrix of the pixel points in the image can be set as: , the camera intrinsic parameter matrix can be set as: , the camera extrinsic matrix can be set as: , thus, the coordinate matrix of the pixel points in the image in the AVM map can be obtained by the following formula: , that is to say, the coordinate mapping relationship between the coordinates of the pixel point in the image and the coordinates of the pixel point in the AVM map can be obtained by the following formula:
[0135]
[0136] in, , , and is the camera internal parameter. Specifically, and represents the focal length, and represents the principal point coordinates, and is the camera external parameter, indicating the camera pose, Indicates the camera depth, and Represents the coordinates of the pixel in the image. , and Represents the coordinates of the pixel in the AVM image.
[0137] It should be understood that, since the AVM map can simultaneously display images of different orientations of the vehicle, and the display positions of images of different orientations in the AVM map are different, the coordinate mapping relationship between the images captured by the vehicle-mounted camera devices at different orientations and the AVM map is different. Therefore, when determining the coordinate mapping relationship between the image and the AVM map, the above steps can be performed for each image to obtain the coordinate mapping relationship between each image and the AVM map.
[0138] Among the possible approaches, determining the critical grounding point of the target obstacle based on the cross-border edge may include:
[0139] Determine a second identifier used to characterize whether a grounding point in a cross-border edge is located in a valid area; when the second identifiers between two adjacent grounding points in the cross-border edge are different, the corresponding second identifiers in the two adjacent grounding points are used to characterize a target grounding point located in a valid area, and determine it as a critical grounding point of the target obstacle.
[0140] For example, the cross-border edge includes a ground point a , grounding point b , grounding point c , grounding point d And grounding point e , and the grounding point a , grounding point b The second identification of the grounding point c is used to indicate that the grounding point is located in the effective area. d And grounding point e The second mark is used to indicate that the grounding point is not located in the valid area. c The second mark and grounding point d The second mark is different, and because the grounding point c The second mark is used to identify the grounding point c Located in the effective area, ground point d The second mark is used to identify the grounding point d is not in the effective area, so the ground point c Determined as a critical grounding point in the cross-border margin located at the edge of the effective area.
[0141] In a possible manner, when the second identifiers between two adjacent grounding points in the cross-border edge are different, using the corresponding second identifiers in the two adjacent grounding points to characterize the target grounding point located in the valid area, and determining it as the critical grounding point located at the edge of the valid area in the cross-border edge, may include:
[0142] Take any endpoint corresponding to the cross-border edge as the initial first grounding point to be processed, and loop the following process: when the first target grounding point adjacent to the first grounding point to be processed in the cross-border edge and the second identifier between the first grounding point to be processed are the same, take the first target grounding point as the new first grounding point to be processed until the second identifier between the first target grounding point and the first grounding point to be processed is different, and when the second identifier between the first target grounding point and the first grounding point to be processed is different, use the corresponding second identifier between the first target grounding point and the first grounding point to be processed to characterize the grounding point located in the valid area, and determine it as the critical grounding point located at the edge of the valid area in the cross-border edge.
[0143] For example, the cross-border edge includes grounding points arranged in sequence a , grounding point b , grounding point c , grounding point d And grounding point e When determining the critical grounding point, the grounding point can be a As the initial first grounding point to be processed, and determine the grounding point a With ground point b Are the second identifiers between the same? If the grounding point a With ground point b If the second mark between them is different, then according to the grounding point a Second identification and grounding point b The second mark of determines the critical grounding point. Specifically, if the grounding point a The second mark represents the grounding point a If it is in the effective area, the ground point a Determined as a critical grounding point; if the grounding point a The second mark represents the grounding point a If it is not in the effective area, the ground point b Determined as a critical grounding point. a With ground point b If the second mark between them is the same, the ground point b As a new first grounding point to be processed, the above steps are repeated until a critical grounding point located at the edge of the effective area in the cross-border edge is obtained.
[0144] In a possible manner, determining the second identifier used to characterize whether the grounding point in the cross-border edge is located in the valid area may include:
[0145] Determine a second grounding point coordinate of a grounding point in a cross-border edge; determine a second identifier used to characterize whether the grounding point in the cross-border edge is located in a valid area based on the second grounding point coordinates and a preset coordinate information comparison table, wherein the coordinate information comparison table is used to indicate whether a pixel point in an image is located in a valid area.
[0146] Among them, the method of determining the second identifier for characterizing whether the grounding point in the cross-border edge is located in the valid area based on the second grounding point coordinates and the coordinate information comparison table can refer to the method of determining the first identifier for characterizing whether the endpoint of the edge is located in the valid area based on the first grounding point coordinates and the coordinate information comparison table, which will not be repeated here.
[0147] In a possible manner, determining the coordinates of a second grounding point of a grounding point in a cross-border edge may include:
[0148] Take any endpoint corresponding to the cross-border edge as the initial second grounding point to be processed, and loop the following process: determine the second grounding point coordinates of the second target grounding point adjacent to the second grounding point to be processed in the cross-border edge according to the grounding point coordinates of the second grounding point to be processed, a preset horizontal axis interval value, and a preset vertical axis interval value, and take the second target grounding point as the new second grounding point to be processed, until the adjacent grounding point corresponding to the other endpoint of the cross-border edge is taken as the second grounding point to be processed, wherein the horizontal axis interval value is used to characterize the horizontal axis coordinate interval value between adjacent grounding points in the cross-border edge, and the vertical axis interval value is used to characterize the vertical axis coordinate interval value between adjacent grounding points in the cross-border edge.
[0149] For example, the cross-border edge includes grounding points arranged in sequence a , grounding point b , grounding point c , grounding point d And grounding point e . When determining the grounding point b , grounding point c And grounding point d When the grounding point coordinates are a As the initial second grounding point to be processed, and according to the grounding point a The grounding point coordinates ( , ), preset horizontal axis interval value and the preset vertical axis interval value , determine the grounding point b The grounding point coordinates ( , ),Right now, , Then connect the ground point b As the new second grounding point to be processed, repeat the above steps until the grounding point d As the second grounding point to be processed.
[0150] In a possible manner, the horizontal axis interval value and the vertical axis interval value can be determined by:
[0151] According to the grounding point coordinates of each endpoint corresponding to the cross-border edge, the horizontal axis coordinate difference and the vertical axis coordinate difference between the endpoints corresponding to the cross-border edge are determined; when the absolute value of the horizontal axis coordinate difference is greater than the absolute value of the vertical axis coordinate difference, the preset coordinate interval value is determined as the horizontal axis interval value, and the vertical axis interval value is determined according to the coordinate interval value and the preset calculation formula; when the absolute value of the horizontal axis coordinate difference is greater than the absolute value of the vertical axis coordinate difference, the preset coordinate interval value is determined as the vertical axis interval value, and the horizontal axis interval value is determined according to the coordinate interval value and the preset calculation formula.
[0152] It should be understood that the coordinate interval value can be set according to actual conditions, and the embodiments of the present disclosure do not impose any restrictions on this. For example, the coordinate interval value can be set to 1 nm, 5 nm, or 1 mm.
[0153] It should also be understood that the preset calculation formula can be determined according to actual conditions, and the embodiments of the present disclosure do not impose any restrictions on this. For example, the preset calculation formula can be determined according to the grounding point coordinates of the two endpoints of the cross-border edge and / or the shape of the edge.
[0154] For example, when the shape of the edge is a straight line, the starting calculation formula can be set to: , and then determine the slope based on the two endpoints of the edge k and constant b Then according to the slope k and constant b, Determine the preset calculation formula. At the same time, since the pixel points are all integers, and the grounding points in the cross-border edge that need to be determined are the points closest to the straight line, the constant b Set to 0 to determine the pixel coordinates along the straight line. In other words, the preset calculation formula can be set to If the cross-border edge includes endpoint 1 and endpoint 2, the ground coordinate of endpoint 1 is ( , ), the ground coordinates of endpoint 2 are ( , ). Then the horizontal coordinate difference between endpoint 1 and endpoint 2 is for: , the vertical coordinate difference between endpoint 1 and endpoint 2 for: .like , indicating that the maximum difference of the horizontal axis is greater than the maximum difference of the vertical axis, and the horizontal axis direction is the main direction of the step, so the preset coordinate interval value can be determined as the horizontal axis interval value, for example, 1 is determined as the horizontal axis interval value. At the same time, according to the horizontal axis interval value and the preset calculation formula, the vertical axis interval value is determined, that is: is determined as the vertical axis interval value. , indicating that the maximum difference of the vertical axis is greater than the maximum difference of the horizontal axis, and the vertical axis direction is the main direction of the step, so the preset coordinate interval value can be determined as the vertical axis interval value, for example, 1 is determined as the vertical axis interval value. At the same time, according to the vertical axis interval value and the preset calculation formula, the horizontal axis interval value is determined, that is: Determine the horizontal axis interval value.
[0155] To facilitate understanding of the obstacle ground frame determination method of the present disclosure, an implementation of the present disclosure is described below in conjunction with each step:
[0156] For example, Figure 6 As shown, first, the image captured by the vehicle-mounted shooting device can be obtained, and the image can be input into the target detection model to obtain the edge of the target obstacle in contact with the ground and the first grounding point coordinates of the endpoint of the edge. Secondly, the first identifier used to characterize whether the endpoint is located in the valid area can be determined according to the first grounding point coordinates of the endpoint and the preset coordinate information comparison table, and the cross-border edge can be determined according to the first identifier between the endpoints. Next, the second grounding point coordinates of each grounding point in the cross-border edge can be determined according to the first grounding point coordinates of the two endpoints of the cross-border edge, and the second identifier used to characterize whether the grounding point in the cross-border edge is located in the valid area can be determined according to the second grounding point coordinates and the preset coordinate information comparison table. Then, the critical grounding point can be determined according to the second identifier of the adjacent grounding point in the cross-border edge, and the effective grounding point can be determined according to the second identifier of each grounding point in the cross-border edge. Finally, the initial grounding frame can be obtained by connecting the critical grounding point and the effective grounding, and the initial grounding frame can be mapped to the AVM map based on the mapping relationship between the image and the AVM map to obtain the closed grounding frame of the target obstacle in the AVM map.
[0157] In summary, through the above technical solution, the grounding point information of the target obstacle can be determined, and based on the grounding point information, the closed grounding frame of the target obstacle in the AVM map can be determined, wherein the target obstacle is an obstacle that is not fully displayed in the AVM map. Thus, the closed grounding frame of the displayed portion of the target obstacle in the AVM map can be determined based on the image acquired by the vehicle-mounted camera. In other words, the present disclosure can determine the grounding information of the incompletely displayed obstacle in the AVM map, thereby making the grounding information in the AVM map richer and more complete, and improving driving safety and / or parking safety.
[0158] Based on the same concept, the embodiment of the present disclosure also provides a device for determining an obstacle ground frame, such as Figure 7 As shown, the obstacle ground frame determining device 700 may include:
[0159] A first determination module 701 is used to determine the grounding point information of a target obstacle in an image acquired by a vehicle-mounted camera device, wherein the target obstacle is an obstacle that is not fully displayed in the AVM map after the image is mapped to the AVM map of the vehicle;
[0160] The second determination module 702 is used to determine a closed ground frame of the target obstacle in the AVM image according to the ground point information.
[0161] Through the above-mentioned obstacle grounding frame determination device 700, the grounding point information of the target obstacle can be determined based on the image obtained by the vehicle-mounted shooting device, and the closed grounding frame of the target obstacle in the AVM map can be determined based on the grounding point information, wherein the target obstacle is an obstacle that is not fully displayed in the AVM map. Thus, the closed grounding frame of the displayed part of the target obstacle in the AVM map can be determined based on the image obtained by the vehicle-mounted shooting device. That is to say, the present disclosure can determine the grounding information of the incompletely displayed obstacle in the AVM map, thereby making the grounding information in the AVM map richer and more complete, and improving driving safety and / or parking safety.
[0162] In a possible manner, the second determining module 702 may include:
[0163] The first determination submodule is used to determine the critical grounding point and the effective grounding point of the target obstacle according to the grounding point information, the critical grounding point is the grounding point located at the edge of the effective area, the effective grounding point is the grounding point located in the effective area except the critical grounding point, and the effective area is the area in the image whose image content can be mapped into the AVM map of the vehicle;
[0164] The second determination submodule is used to determine a closed grounding frame of the target obstacle in the AVM diagram according to the critical grounding point and the effective grounding point.
[0165] In a possible manner, the first determining submodule may include:
[0166] A first determining unit, configured to determine a grounding frame of a target obstacle according to grounding point information;
[0167] The second determination unit is used to determine the critical grounding point of the target obstacle according to the boundary line between the invalid area and the valid area and the grounding frame, wherein the invalid area is an area in the image whose image content cannot be mapped into the AVM image.
[0168] In a possible manner, the second determining unit may be used to determine an intersection point between the boundary line and the grounding frame as a critical grounding point of the target obstacle.
[0169] In a possible manner, the first determining submodule may include:
[0170] A third determining unit is used to determine a cross-border edge of the target obstacle according to the grounding point information, where the cross-border edge is an edge of the target obstacle that is not fully displayed in the AVM image after the image is mapped to the AVM image;
[0171] The fourth determining unit is used to determine a critical grounding point of the target obstacle according to the cross-border edge.
[0172] In a possible manner, the grounding point information includes the edge of the target obstacle in contact with the ground and the first grounding point coordinates of the end point of the edge. Accordingly, the third determining unit may include:
[0173] A first determination subunit is used to determine, according to the coordinates of the first ground point, a first identifier used to characterize whether an endpoint of an edge is located in a valid area, where the valid area is an area in the image where pixels can be mapped to the AVM image;
[0174] The second determining subunit is configured to determine the edge as a cross-border edge of the target obstacle when the first identifiers between the end points corresponding to the edge where the target obstacle contacts the ground are different.
[0175] In a possible manner, the first determination subunit can be used to determine a first identifier used to characterize whether the endpoint of the edge is located in a valid area based on the coordinates of the first ground point and a preset coordinate information comparison table, wherein the coordinate information comparison table is used to indicate whether a pixel point in the image is located in the valid area.
[0176] In a possible manner, the fourth determining unit may include:
[0177] A third determination subunit is used to determine a second identifier used to characterize whether a grounding point in a cross-border edge is located in a valid area;
[0178] The fourth determination subunit is used to use the corresponding second identifiers of the two adjacent grounding points to characterize the target grounding point located in the valid area when the second identifiers between the two adjacent grounding points in the cross-border edge are different, and determine it as the critical grounding point of the target obstacle.
[0179] In a possible manner, the fourth determination subunit can be used to: take any endpoint corresponding to the cross-border edge as the initial first grounding point to be processed, and loop the following process: when the first target grounding point adjacent to the first grounding point to be processed in the cross-border edge and the second identifier between the first grounding point to be processed are the same, take the first target grounding point as the new first grounding point to be processed until the second identifier between the first target grounding point and the first grounding point to be processed is different, and when the second identifier between the first target grounding point and the first grounding point to be processed is different, use the corresponding second identifier between the first target grounding point and the first grounding point to be processed to characterize the grounding point located in the valid area, and determine it as the critical grounding point located at the edge of the valid area in the cross-border edge.
[0180] In a possible manner, the third determining subunit may include:
[0181] A first determination component is used to determine the coordinates of a second grounding point of a grounding point in a cross-border edge;
[0182] The second determination component is used to determine a second identifier for characterizing whether a ground point in a cross-border edge is located in a valid area based on the coordinates of the second ground point and a preset coordinate information comparison table, wherein the coordinate information comparison table is used to indicate whether a pixel point in an image is located in a valid area.
[0183] In a possible manner, the second determination component can be used to: take any endpoint corresponding to the cross-border edge as the initial second grounding point to be processed, and loop the following process: determine the second grounding point coordinates of the second target grounding point adjacent to the second grounding point to be processed in the cross-border edge according to the grounding point coordinates of the second grounding point to be processed, a preset horizontal axis interval value and a preset vertical axis interval value, and take the second target grounding point as the new second grounding point to be processed, until the adjacent grounding point corresponding to the other endpoint of the cross-border edge is taken as the second grounding point to be processed, wherein the horizontal axis interval value is used to characterize the horizontal axis coordinate interval value between adjacent grounding points in the cross-border edge, and the vertical axis interval value is used to characterize the vertical axis coordinate interval value between adjacent grounding points in the cross-border edge.
[0184] In a possible manner, the horizontal axis interval value and the vertical axis interval value can be determined by:
[0185] Determine the horizontal axis coordinate difference and the vertical axis coordinate difference between the endpoints corresponding to the cross-border edge according to the ground point coordinates of the endpoints corresponding to the cross-border edge;
[0186] When the absolute value of the horizontal axis coordinate difference is greater than the absolute value of the vertical axis coordinate difference, the preset coordinate interval value is determined as the horizontal axis interval value, and the vertical axis interval value is determined according to the coordinate interval value and the preset calculation formula;
[0187] When the absolute value of the horizontal axis coordinate difference is greater than the absolute value of the vertical axis coordinate difference, the preset coordinate interval value is determined as the vertical axis interval value, and the horizontal axis interval value is determined according to the coordinate interval value and the preset calculation formula.
[0188] Among the possible ways, the coordinate information comparison table can be obtained by:
[0189] Determine a first coordinate of a pixel point in the image, and determine a second coordinate of the pixel point in the AVM image based on the first coordinate, a distance corresponding to the pixel point, and a preset coordinate mapping relationship, wherein the coordinate mapping relationship is used to characterize a mapping relationship between the coordinate of the pixel point in the image in the image and the coordinate in the AVM image;
[0190] Determine, based on the image size of the AVM image and the second coordinate, whether the pixel point corresponding to the second coordinate is located in the target identification of the valid area;
[0191] According to the correspondence between the pixel point, the first coordinate and the target identifier, a coordinate information comparison table is determined.
[0192] Among the possible ways, the coordinate mapping relationship can be obtained by:
[0193] The camera used to acquire the image is jointly calibrated to obtain the camera intrinsic parameters and camera extrinsic parameters with the target position as the origin;
[0194] Determine a first product of a coordinate matrix of pixel points in an image and a preset camera depth, and determine a second product of a camera intrinsic parameter matrix and a camera extrinsic parameter matrix, and determine a ratio of the first product to the second product as a coordinate mapping relationship, wherein the coordinate matrix is determined according to the coordinates of the pixel points, the camera intrinsic parameter matrix is determined according to the camera intrinsic parameters, and the camera extrinsic parameter matrix is determined according to the camera extrinsic parameters.
[0195] In a possible manner, the second determining submodule may include:
[0196] A connection unit, used for connecting the critical grounding point and the effective grounding point to form a starting grounding frame in the image;
[0197] The mapping unit is used to map the starting ground frame into the AVM map according to a preset coordinate mapping relationship to obtain a closed ground frame of the target obstacle in the AVM map.
[0198] In a possible manner, the first determination module 701 can be used to input the image into a target detection model to obtain the grounding point information of the target obstacle, wherein the target detection model is obtained by training the detection model with the sample image as input and the grounding point information of the sample obstacle as output.
[0199] Among the possible ways, the image can be obtained by:
[0200] The images around the vehicle are collected by a fisheye camera set at a preset position on the vehicle.
[0201] Based on the same concept, the embodiment of the present disclosure further provides a controller, which may include:
[0202] processor;
[0203] a memory for storing processor-executable instructions;
[0204] The processor may be configured to: execute the steps of any of the above-mentioned obstacle ground frame determination methods.
[0205] Based on the same concept, the embodiment of the present disclosure further provides a vehicle, including the above-mentioned controller, or,
[0206] The vehicle includes a processor and a memory for storing processor executable instructions, wherein the processor can be configured to: execute the steps of any of the above-mentioned obstacle ground frame determination methods.
[0207] Based on the same concept, an embodiment of the present disclosure further provides a non-temporary computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned obstacle ground frame determination methods are implemented.
[0208] Based on the same concept, an embodiment of the present disclosure further provides a computer program product, including a computer program, which implements the steps of any of the above-mentioned obstacle ground frame determination methods when executed by a processor.
[0209] Please refer to Figure 8 , Figure 8 800 is a functional block diagram of a vehicle according to an exemplary embodiment. The vehicle 800 may include various subsystems, such as an infotainment system 810, a perception system 820, a decision control system 830, a drive system 840, and a computing platform 850. The vehicle 800 may also include more or fewer subsystems, and each subsystem may include multiple components. In addition, each subsystem and each component of the vehicle 800 may be interconnected by wire or wirelessly.
[0210] In some embodiments, the infotainment system 810 may include a communication system, an entertainment system, and a navigation system, etc.
[0211] The perception system 820 may include several sensors for sensing information about the environment around the vehicle 800. For example, the perception system 820 may include a global positioning system (the global positioning system may be a GPS system, or a Beidou system or other positioning systems), an inertial measurement unit (IMU), a laser radar, a millimeter wave radar, an ultrasonic radar, and a camera.
[0212] The decision control system 830 may include a computing system, a vehicle controller, a steering system, a throttle, and a braking system.
[0213] The drive system 840 may include components that provide powered motion for the vehicle 800. In one embodiment, the drive system 840 may include an engine, an energy source, a transmission system, and wheels. The engine may be one or a combination of an internal combustion engine, an electric motor, and an air compression engine. The engine is capable of converting energy provided by the energy source into mechanical energy.
[0214] Some or all functions of the vehicle 800 are controlled by a computing platform 850. The computing platform 850 may include at least one processor 851 and a memory 852, and the processor 851 may execute instructions 853 stored in the memory 852.
[0215] The processor 851 may be any conventional processor, such as a commercially available CPU. The processor may also include a graphics processor (Graphic Process Unit, GPU), a field programmable gate array (Field Programmable Gate Array, FPGA), a system on chip (System on Chip, SOC), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC) or a combination thereof.
[0216] The memory 852 may be implemented by any type of volatile or nonvolatile memory device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.
[0217] In addition to instructions 853 , memory 852 may also store data, such as road maps, route information, vehicle location, direction, speed, etc. The data stored in memory 852 may be used by computing platform 850 .
[0218] In the embodiment of the present disclosure, the processor 851 may execute instruction 853 to complete all or part of the steps of the above-mentioned obstacle ground frame determination method.
[0219] The preferred embodiments of the present disclosure are described in detail above in conjunction with the accompanying drawings; however, the present disclosure is not limited to the specific details in the above embodiments. Within the technical concept of the present disclosure, a variety of simple modifications can be made to the technical solution of the present disclosure, and these simple modifications all fall within the protection scope of the present disclosure.
[0220] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present disclosure will not further describe various possible combinations.
Claims
1. A method for determining an obstacle ground frame, characterized in that: The method comprises: Determining ground point information of a target obstacle in an image acquired by a vehicle-mounted camera device, wherein the target obstacle is an obstacle that is not fully displayed in the AVM map of the vehicle after the image is mapped to the AVM map of the vehicle; Determine the critical grounding point and the effective grounding point of the target obstacle according to the grounding point information, wherein the critical grounding point is a grounding point located at the edge of the effective area, and the effective grounding point is a grounding point located in the effective area except the critical grounding point, and the effective area is an area in the image whose image content can be mapped into the AVM image; A closed grounding frame of the target obstacle in the AVM diagram is determined according to the critical grounding point and the effective grounding point.
2. The method for determining an obstacle ground frame according to claim 1, characterized in that: The step of determining the critical grounding point of the target obstacle according to the grounding point information includes: Determining a grounding frame of the target obstacle according to the grounding point information; The critical grounding point of the target obstacle is determined according to the boundary line between the invalid area and the valid area and the grounding frame, wherein the invalid area is an area in the image whose image content cannot be mapped to the AVM image.
3. The method for determining an obstacle ground frame according to claim 2, characterized in that: The determining the critical grounding point of the target obstacle according to the boundary line between the invalid area and the valid area and the grounding frame includes: The intersection point of the boundary line and the ground frame is determined as the critical ground point of the target obstacle.
4. The method for determining an obstacle ground frame according to claim 1, characterized in that: The step of determining the critical grounding point of the target obstacle according to the grounding point information includes: Determine, according to the grounding point information, a cross-border edge of the target obstacle, wherein the cross-border edge is an edge of the target obstacle that is not fully displayed in the AVM image after the image is mapped to the AVM image; A critical grounding point of the target obstacle is determined according to the cross-border edge.
5. The method for determining an obstacle ground frame according to claim 4, characterized in that: The grounding point information includes the edge of the target obstacle in contact with the ground and the first grounding point coordinates of the end point of the edge. The determining the cross-border edge of the target obstacle according to the grounding point information includes: Determining, according to the first ground point coordinates, a first identifier used to characterize whether the endpoint of the edge is located in a valid area; When the first identifiers between the end points corresponding to the edge where the target obstacle contacts the ground are different, the edge is determined as the crossing edge of the target obstacle.
6. The method for determining an obstacle ground frame according to claim 5, characterized in that: The determining, according to the first ground point coordinates, a first identifier used to characterize whether the endpoint of the edge is located in a valid area includes: A first identifier for characterizing whether the endpoint of the edge is located in a valid area is determined based on the coordinates of the first ground point and a preset coordinate information comparison table, wherein the coordinate information comparison table is used to indicate whether a pixel point in the image is located in the valid area.
7. The method for determining an obstacle ground frame according to claim 4, characterized in that: The determining, according to the cross-border edge, a critical grounding point of the target obstacle includes: Determine a second identifier for indicating whether a grounding point in the cross-border edge is located in a valid area; When the second identifiers between two adjacent grounding points in the cross-border edge are different, the corresponding second identifiers in the two adjacent grounding points are used to characterize the target grounding point where the grounding point is located in the valid area and determined as the critical grounding point of the target obstacle.
8. The method for determining an obstacle ground frame according to claim 7, characterized in that: When the second identifiers between two adjacent grounding points in the cross-border edge are different, the corresponding second identifiers in the two adjacent grounding points are used to characterize the target grounding point where the grounding point is located in the valid area, and are determined as the critical grounding point located at the edge of the valid area in the cross-border edge, including: Any endpoint corresponding to the cross-border edge is used as the initial first grounding point to be processed, and the following process is performed cyclically: When the first target grounding point adjacent to the first grounding point to be processed in the cross-border edge and the second identifier between the first grounding point to be processed are the same, the first target grounding point is used as the new first grounding point to be processed until the second identifier between the first target grounding point and the first grounding point to be processed is different, and when the second identifier between the first target grounding point and the first grounding point to be processed is different, the corresponding second identifier between the first target grounding point and the first grounding point to be processed is used to characterize the grounding point located in the valid area, and is determined as the critical grounding point located at the edge of the valid area in the cross-border edge.
9. The method for determining an obstacle ground frame according to claim 7, characterized in that: The determining of the second identifier for characterizing whether the grounding point in the cross-border edge is located in a valid area includes: Determine a second grounding point coordinate of the grounding point in the cross-border edge; A second identifier for characterizing whether the ground point in the cross-border edge is located in a valid area is determined based on the coordinates of the second ground point and a preset coordinate information comparison table, wherein the coordinate information comparison table is used to indicate whether a pixel point in the image is located in the valid area.
10. The method for determining an obstacle ground frame according to claim 9, characterized in that: The determining of the second grounding point coordinates of the grounding point in the cross-border edge includes: Any endpoint corresponding to the cross-border edge is used as the initial second grounding point to be processed, and the following process is performed cyclically: According to the grounding point coordinates of the second grounding point to be processed, the preset horizontal axis interval value and the preset vertical axis interval value, determine the second grounding point coordinates of the second target grounding point adjacent to the second grounding point to be processed in the cross-border edge, and use the second target grounding point as the new second grounding point to be processed until the adjacent grounding point corresponding to the other endpoint of the cross-border edge is used as the second grounding point to be processed, wherein the horizontal axis interval value is used to characterize the horizontal axis coordinate interval value between adjacent grounding points in the cross-border edge, and the vertical axis interval value is used to characterize the vertical axis coordinate interval value between adjacent grounding points in the cross-border edge.
11. The method for determining an obstacle ground frame according to claim 10, characterized in that: The horizontal axis interval value and the vertical axis interval value are determined by: Determine, according to the grounding point coordinates of each endpoint corresponding to the cross-border edge, a horizontal axis coordinate difference and a vertical axis coordinate difference between each endpoint corresponding to the cross-border edge; When the absolute value of the horizontal axis coordinate difference is greater than the absolute value of the vertical axis coordinate difference, the preset coordinate interval value is determined as the horizontal axis interval value, and the vertical axis interval value is determined according to the coordinate interval value and a preset calculation formula; When the absolute value of the horizontal axis coordinate difference is greater than the absolute value of the vertical axis coordinate difference, the preset coordinate interval value is determined as the vertical axis interval value, and the horizontal axis interval value is determined according to the coordinate interval value and the preset calculation formula.
12. The method for determining an obstacle ground frame according to claim 9, characterized in that: The coordinate information comparison table is obtained in the following manner: Determine a first coordinate of a pixel point in the image, and determine a second coordinate of the pixel point in the AVM image based on the first coordinate, a distance corresponding to the pixel point, and a preset coordinate mapping relationship, wherein the coordinate mapping relationship is used to characterize a mapping relationship between the coordinate of the pixel point in the image in the image and the coordinate of the pixel point in the AVM image; Determine, according to the image size of the AVM image and the second coordinate, whether the pixel point corresponding to the second coordinate is located at the target mark of the valid area; A coordinate information comparison table is determined according to the correspondence between the pixel point, the first coordinate and the target identifier.
13. The method for determining an obstacle ground frame according to claim 12, characterized in that: The coordinate mapping relationship is obtained in the following way: The camera used to acquire the image is jointly calibrated to obtain the camera intrinsic parameters and camera extrinsic parameters with the target position as the origin; Determine a first product of a coordinate matrix of pixel points in the image and a preset camera depth, and determine a second product of a camera intrinsic parameter matrix and a camera extrinsic parameter matrix, and determine a ratio of the first product to the second product as a coordinate mapping relationship, wherein the coordinate matrix is determined according to the coordinates of the pixel points, the camera intrinsic parameter matrix is determined according to the camera intrinsic parameters, and the camera extrinsic parameter matrix is determined according to the camera extrinsic parameters.
14. The method for determining an obstacle ground frame according to any one of claims 1 to 13, characterized in that: The step of determining a closed grounding frame of the target obstacle in the AVM diagram according to the critical grounding point and the effective grounding point includes: Connecting the critical grounding point and the effective grounding point to form a starting grounding frame in the image; According to a preset coordinate mapping relationship, the starting ground frame is mapped into the AVM map to obtain a closed ground frame of the target obstacle in the AVM map.
15. The method for determining an obstacle ground frame according to any one of claims 1 to 13, characterized in that: The step of determining the grounding point information of the target obstacle in the image acquired by the vehicle-mounted camera device includes: The image is input into a target detection model to obtain the grounding point information of the target obstacle, wherein the target detection model is obtained by training the detection model with the sample image as input and the grounding point information of the sample obstacle as output.
16. The method for determining an obstacle ground frame according to any one of claims 1 to 13, characterized in that: The image is obtained by: The image around the vehicle is obtained by collecting the image by a fisheye camera arranged at a preset position of the vehicle.
17. A controller, characterized in that: The controller comprises: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to: execute the steps of the method described in any one of claims 1-16.
18. A vehicle, characterized in that: comprising a controller as claimed in claim 17, or, The vehicle comprises a processor and a memory for storing processor executable instructions, wherein the processor is configured to: perform the steps of the method of any one of claims 1-16.
19. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 16 are implemented.
20. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 16 are implemented.
