Method for rapid assessment of perspective occlusion in simulation of imaging sensors

By using Ground-Truth sensor simulation and central projection evaluation methods in a virtual test environment, the perspective occlusion of virtual objects by the imaging sensor system is quickly identified, which solves the problem of high computational cost in the existing technology and achieves real-time and reliable identification. Effect.

CN110489202BActive Publication Date: 2024-09-10D SPACE GMBH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910336402.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2018-05-14
Filing Date
2019-04-25
Publication Date
2024-09-10
Estimated Expiration
2039-04-25

AI Technical Summary

Technical Problem

In a virtual test environment, it is difficult for existing technologies to quickly and reliably identify the perspective occlusion of virtual objects by the imaging sensor system, especially in real-time applications, which is computationally expensive.

Method used

Using the Ground-Truth sensor simulation method, by configuring the sensor field of view and virtual object position in the virtual test environment, using the central projection and the projection plane of the geometric envelope to perform intersection evaluation, determine whether the object is occluded, and use the GJK algorithm or scaling Factor calculations for quick assessment of perspective occlusions.

Benefits of technology

It achieves a fast and reliable assessment of the sensor system's recognizability of virtual objects, reduces the computational cost of computer graphics methods, is suitable for real-time application of hardware-in-the-loop methods, and reduces the hardware cost of simulation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110489202B_ABST
    Figure CN110489202B_ABST
Patent Text Reader

Abstract

The invention relates to a method for simulating a sensor system comprising an imaging sensor and an image processing unit. A virtual test environment comprises a sensor and a plurality of virtual objects, wherein a certain number of the virtual objects can be identified by the image processing unit. When a first and a second virtual object are detected through the sensor field of view of the sensor, a projection plane is opened. A first geometric body having the same position and size as the first virtual object and a second geometric body having the same position and size as the second virtual object are projected onto the projection plane in a central projection with the position coordinates of the sensor as the viewpoint. When there is an intersection of the images of the first and second geometric bodies, the Euclidean distance between the sensor and the first virtual object is less than the Euclidean distance between the sensor and the second virtual object, and the size of the intersection exceeds a predefined threshold, the second virtual object is assumed to be perspectively obstructed. Otherwise, the second virtual object is assumed to be not perspectively obstructed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to sensor simulation and virtual testing. Background Art

[0002] In the development of safety-critical embedded systems, it is known to check the correct function of the system in a virtual test environment. In a method known as hardware-in-the-loop (HIL), a prototype of the embedded system is connected to a simulation computer, which provides the majority of the virtual test environment and provides the embedded system with input data generated with the aid of the virtual test environment in hard real time. Conversely, the simulation computer can read the control signals of the embedded system and take them into account when calculating the state of the virtual test environment in the corresponding next simulation time step. In earlier development stages, it is also known that the embedded system, instead of the prototype, only has its software or its program logic integrated into the virtual test environment. Such a completely virtual test method is known as software-in-the-loop (SIL) or model-in-the-loop (MIL) and does not necessarily have to be carried out in real time. In the automotive industry, a method called vehicle-in-the-loop (VIL) is also known, in which a prototype of an embedded system in a physical test vehicle is tested while being installed on a test track or a roller test bench, in which synthetic sensor data generated with the aid of the virtual test environment are provided to the embedded system in hard real time.

[0003] Some embedded systems evaluate sensor data supplied by a sensor system including imaging sensors. Such embedded systems are of particular significance in the automotive industry in connection with advanced driver assistance systems (ADAS) and highly automated driving (AF). Imaging sensors are understood to be all sensors whose sensor data can reproduce an image of the sensor's environment, in particular radar sensors, lidar sensors and ultrasonic sensors and also optical sensors of camera systems for passive image acquisition in the visible or invisible spectrum. In addition to the sensors themselves, such sensor systems may also include an image processing unit for evaluating the image data supplied by the sensors. The image processing unit can be provided as an autonomous embedded system or integrated into the embedded system to be tested.

[0004] If a virtual test environment is provided for testing an embedded system, which expects input data from a sensor system including an imaging sensor, the virtual test environment must include a simulation of the sensor system. In some applications, for example when the image processing unit is not the part to be tested or is not part of the part to be tested, it is appropriate to omit a detailed simulation of the sensor in order to save computing effort. Instead of calculating the image data of the sensor by the virtual test environment, the sensor field of view is assigned to the simulated sensor, the sensor field of view is, for example, a cone field of view starting from the sensor with a limited range of action, and a certain number of virtual objects are determined as virtual objects recognizable by the sensor system from a plurality of virtual objects included by the virtual test environment. If the sensor simulation is, for example, set up for the simulation of road sign identification, all virtual road signs that can be added to the virtual test environment can be determined as virtual objects recognizable by the sensor system. During simulation operation of a virtual test environment, in an exemplary use, all virtual road signs detected by the sensor field of view are included in a temporary list of recognized virtual objects, while all other virtual objects detected by the sensor field of view, such as people, trees, buildings, vehicles and traffic lights, are in principle not recognized by the simulated sensor system, i.e., are in principle not included in the temporary list of recognized virtual objects.

[0005] Therefore, in the present description of the invention, simulation with a sensor system preferably refers to simulation with the aid of a simple sensor system model, which only superficially imitates the behavior of the sensor system, but at most simulates the physical or technical processes of the physical sensor system to a small extent and in particular does not include the calculation of synthetic image data, which, for example, imitate the image data generated by a real imaging sensor. Such simple sensor system models are also known as ground-truth sensors. One of their advantages is the low computing effort required for their implementation. Ground-truth sensors are therefore particularly suitable for virtual testing that is implemented in hard real time, for example, using a hardware-in-the-loop method.

[0006] A fundamental problem in the case of ground-truth sensors is to take into account the perspective occlusion of virtual objects that are recognizable by the sensor system. As explained above, the ground-truth sensor first evaluates all virtual objects as being recognized, which are detected by the sensor field of view and determined as objects recognizable by the sensor system. However, in order to simulate the sensor system realistically, it must be checked afterwards whether the virtual object evaluated as recognized is actually visible to the sensor or whether the virtual object is at least partially obscured from the sensor's perspective by another virtual object. If this is the case and the perspective occlusion exceeds a certain level, the virtual object must be removed from the temporary list of recognized virtual objects.

[0007] Numerous methods are known from the specialist field of computer graphics for detecting perspectively obscured surfaces. One option is, for example, the Torsten In the presentation "Visibility and Hidden Surface Removal" by , (part of the course "CMPT 361: Introduction to Computer Graphics" at Simon Fraser University in Canada, available for download on the Internet). Some of these also include the projection of a three-dimensional scene onto a projection plane. However, the purpose of the known method is to calculate a realistic image, and its high computational complexity makes it problematic for real-time applications, because after calculating the sensor image, according to one of the known methods, it must also be assessed whether the detected perspective occlusion still allows the occluded object to be detected by the simulated sensor system.

[0008] The article “Fast Collision Detection Based on Projection Parallel Algorithm” by Xue-li Shen and Tao Li (2nd International Conference on Future Computer und Communication, IEEE, 2010) describes a method for collision detection between two bodies in three-dimensional space by projecting onto three orthogonal projection planes and performing collision detection on each projection plane.

[0009] EP 0 620 409 B1 discloses a simulation environment for the development and testing of missiles for searching for targets. The simulation environment calculates synthetic images of imaging sensors for missiles in hard real time and includes a method for identifying perspectively obscured surfaces. Summary of the invention

[0010] Against this background, the object of the present invention is to accelerate the detection of perspective occlusions in a simulation of a sensor system including an imaging sensor in a virtual test environment.

[0011] In order to achieve this object, a method for simulating a sensor system is proposed, which is described below. The simulated sensor system here comprises an imaging sensor and an image processing unit for detecting objects in the sensor image output by the sensor. The simulation of the sensor system itself is preferably a ground-truth sensor and only implicitly comprises the imaging sensor and the image processing unit.

[0012] To apply the method, a virtual test environment is used, which includes a plurality of virtual objects and in which position coordinates are assigned to the sensor and each virtual object, respectively. In the virtual test environment, the sensor is assigned a sensor field of view, and a certain number of the plurality of virtual objects are determined as virtual objects that can be recognized by the sensor system.

[0013] A simulation run is started on the virtual test environment. During the simulation run, a sensor or at least one virtual object is periodically configured with new position coordinates in the virtual test environment, and it is periodically checked whether at least one virtual object is detected through the sensor field of view.

[0014] When at least one first virtual object and a second virtual object pass through the sensor field of view and the second virtual object can be recognized by the sensor system, the evaluation of the perspective occlusion of the second object by the first object is carried out in the manner described below. For this purpose, a projection plane is first opened in the virtual test environment, the spatial orientation of which is selected so that it is suitable for the central projection of the first object and the second object, if the position coordinates of the sensor are used as the viewpoint of the central projection. A central projection is understood to be a projection with a fan-shaped beam path starting from the viewpoint, which produces an image of the projected point on the projection plane as it would be perceived by an observer, in particular a sensor, at the viewpoint.

[0015] A central projection of at least part of a geometric body at the same position as the first object onto a projection plane is performed using the position coordinates of the sensor as a viewpoint, wherein the size of the unscaled first geometric body completely or at least approximately corresponds to the size of the first object. It is not important whether the first geometric body originally exists in the virtual test environment or is generated as needed for performing the central projection. When the size of the first geometric body and the first object is completely consistent, the first geometric body can also be the same as the first object, that is, it only exists implicitly in the virtual test environment. Preferably, the first geometric body is an envelope or a scaled envelope of the first object. The envelope of an object is understood to be a geometric body that completely surrounds the object, which has a simplified geometric structure relative to the enclosed object, in particular a polyhedron with a small number of vertices or a body that can be described analytically in a simple manner, such as a sphere or a cylinder.

[0016] How many vertices the envelope volume should contain at most or how simple its geometry should be depends on the application and can hardly be determined universally and effectively. If the method is intended to be implemented in real time, the geometry of the geometric body should in principle be selected such that the complete execution of the software implementation of the method is reliably ensured within a time period predetermined by the application, in particular within a simulation time step, so that within a complete simulation run, it is not expected that the predetermined time period will be exceeded due to the software implementation. In particular, it is determined by the implementation of the method, the complexity of the virtual test environment and the simulation and by the hardware equipment of the computer system implementing the method which geometry of the geometric body or which number of vertices is appropriate.

[0017] A partial central projection of an object or a partially implemented central projection is understood to mean that only an incomplete selection of the points of the object is projected onto the projection plane in the central projection. In some embodiments, a set is formed on the projection plane from the projected points, which roughly corresponds to the image produced by the fully implemented central projection of the object.

[0018] In a manner similar to the implementation of the central projection of the first geometric body, at least a partial central projection of a second geometric body at the same position as the second object is implemented onto the projection plane using the position coordinates of the sensor as the viewpoint, wherein the size of the unscaled second geometric body completely or at least approximately corresponds to the size of the second object.

[0019] The projection of the first geometric body produces a first image on the projection plane, and the projection of the second geometric body produces a second image on the projection plane. It is then checked whether there is an intersection of the first image and the second image. If, firstly, there is an intersection, secondly, the Euclidean distance between the sensor and the first object is smaller than the Euclidean distance between the sensor and the second object, and again the size of the intersection exceeds a predetermined threshold value relative to the size of the second image, the second object is evaluated as geometrically obscured, i.e., based on the fact that the image processing unit does not recognize the second object even when it is partially visible from the sensor, because the degree of perspective obscuration is too high for the recognition of the second object by the image processing unit. The determination of the Euclidean distance is preferably carried out with the aid of the position coordinates of the sensor, the first object, and the second object.

[0020] The Euclidean distance between the sensor and the object can be determined using the position coordinates of the sensor and a certain point of the object, for example using the point of the object that is closest to the sensor or the position coordinates of the object.

[0021] If at least one of the above-mentioned conditions is not met, that is, either no intersection exists, or the Euclidean distance between the sensor and the first object is greater than or equal to the Euclidean distance between the sensor and the second object, or the size of the intersection relative to the size of the second image does not exceed a predetermined threshold value, the second object is evaluated as not being perspectively obscured, i.e. based on the fact that the image processing unit also recognizes the second object when it is partially perspectively obscured by the first object, because the degree of perspective obscuration is sufficiently low for the second object to be recognized by the image processing unit.

[0022] The above-described evaluation of perspective blocking can be carried out multiple times on different virtual objects if necessary, if other virtual objects are detected by the sensor field of view in addition to the first object and the second object. For the evaluation by the test object or by the computer system running the virtual test environment, a signal of the sensor system is generated, from which information can be obtained that all virtual objects detected by the sensor field of view and recognizable by the sensor system and evaluated as not perspective blocked are recognized by the image processing unit, while all virtual objects detected by the sensor field of view and recognizable by the sensor system and evaluated as perspective blocked are not recognized by the image processing unit.

[0023] In one possible application, the signal forms a possible signal of a real sensor system, in particular a series-produced or prototype sensor system. In another possible application, the signal simulates an impossible signal of a real sensor system and is used, for example, to operate a test bench which is provided to simulate the presence of an object in the sensor field of view of a real imaging sensor.

[0024] The advantage of the present invention is that it enables a fast and reliable assessment of the recognizability of virtual objects by a sensor system for processing images, without having to use computationally complex methods in computer graphics, such as ray tracing or Z-Buffering. The method thus also reduces the hardware expenditure for the simulation of the corresponding sensor system, since it can be implemented without the use of a graphics processing unit (GPU). The applicant's research has shown that a software implementation of the method according to the present invention can be reliably performed within one millisecond. This means that the present invention is suitable for hardware-in-the-loop methods and that the method according to the present invention is adapted in real time in the sense of hardware-in-the-loop methods.

[0025] Advantageously, the sensor is suspended on a virtual robot in a virtual test environment, wherein the signals of the sensor system are monitored by a control system arranged to operate the virtual robot or by a control software arranged to operate the virtual robot. The control system can be, in particular, an embedded system of a test object, for example, a prototype for controlling a physical robot, which makes decisions about controlling the robot with the aid of a sensor image. Accordingly, the control software can be, in particular, a prototype control software arranged to be installed on a control system for controlling a physical robot, or a program logic under development, which is arranged to be prepared for installation on a corresponding control system later. The virtual robot is particularly preferably a virtual automated vehicle, wherein a vehicle is understood to be any technical system arranged to move forward by its own power. The suspension of the sensor on the virtual robot is understood in particular to mean that the position coordinates of the sensor and the spatial orientation of the sensor field of view are clearly predetermined by the position coordinates of the virtual robot and / or the spatial orientation and / or state.

[0026] In order to further reduce the computational effort, it is advantageous not to carry out a complete projection of the geometric body onto the projection plane, but to project only a selection of points of the geometric body onto the projection plane and to form a two-dimensional set on the projection plane from the point cloud formed by the projection of the selected points, which roughly corresponds to the projection of the completely projected geometric body and preferably includes all points of the point cloud, for example by forming a convex envelope of the point cloud. For the projection of polyhedral geometric bodies, it is possible, for example, to project all vertices or a selection of vertices of the geometric body. It is particularly advantageous to project only those points of the geometric body whose projection is an element of the convex envelope of the projection resulting from the complete projection of the geometric body. Numerical methods for determining such a selection of points are used in the case of Figures 4 to 6 disclosed in the description.

[0027] The convex envelope of a set of points is the smallest convex set that includes all the points in the set. A set is called a convex shape when every straight line between two points in the set is completely contained in the set. A body is called a convex shape when a set of spatial points congruent to the body is convex.

[0028] In order to test the existence of an intersection and to determine the size of the intersection relative to the size of the second image, known numerical methods for measuring surfaces can be used in one embodiment of the invention. For example, the projection plane can be divided into sufficiently small areas, such as squares, triangles or hexagons. The identification of the existence of an intersection and the comparison of the size relative to the second image can then be carried out by counting the areas that are at least partially not only in the first image but also in the second image or at least partially in the second image, and by comparing the determined number of areas.

[0029] However, it is advantageous to omit the measurement of the facets, in that the threshold value for the size of the intersection is set equal to zero and the check of the existence of the intersection is carried out by means of collision detection of the first image and the second image on the projection plane. That is, in the last-mentioned embodiment, the simple proof of the existence of the intersection of the first image and the second image is sufficient to evaluate the virtual second body as being blocked, wherein it is assumed that the Euclidean distance of the first virtual object relative to the sensor is smaller than the Euclidean distance of the second virtual object relative to the sensor. The size of the intersection is unimportant. The method is thus significantly accelerated, since the simple proof of the presence or absence of the intersection requires fewer calculation steps than the measurement of the facets when the method is implemented appropriately.

[0030] For collision detection of the first image and the second image, the use of the Gilbert-Johnson-Keerthi algorithm, hereinafter referred to as the GJK algorithm, as described, for example, in the academic paper “The Gilbert-Johnson-Keerthi Distance Algorithm” by Patrick Lindemann (Media Informatics Proseminar on “Algorithms on Media Informatics Media”, 2009) is advantageous.

[0031] The first and second images collide when their Minkowski difference includes the origin of the Cartesian coordinate system defined on the projection plane. The GJK algorithm provides for forming the Minkowski difference of the first and second images and checking whether the Minkowski difference includes the origin by repeated definition of triangles in the Minkowski difference, wherein the triangles approach the origin more closely in each repeated step. The GJK algorithm can only be used for convex quantities.

[0032] It is advantageous for the GJK algorithm to run quickly if the first image and the second image are convex closed polygons with a small number of vertices, so that the first image and the second image - and therefore their Minkowski difference - can each be divided into a small number of triangles. This can be ensured by designing the geometric body as a convex polyhedron with a small number of vertices, wherein in particular a selection of vertices of the geometric body is determined before the projection of the geometric body is carried out, the image of which vertices is an element of the convex envelope of the image of the geometric body. In each case, only the vertices of the selection are projected.

[0033] With the aid of collision detection, for example the GJK algorithm, the presence or absence of an intersection of the first image and the second image can be verified. However, collision detection generally does not provide information about the size of the existing intersection. If, as in the previously described embodiment of the invention, the threshold for the size of the intersection is set equal to zero and collision detection is used for checking the presence of the intersection, then every perspective occlusion of the second object by the first object causes the second object to be evaluated as being perspectively occluded, regardless of the degree of perspective occlusion.

[0034] In some cases, this does not correspond to the behavior of a real sensor system that processes the image. It is generally assumed that a real sensor system that is provided for detecting objects in a sensor image detects objects that are detectable for the sensor system but are perspectively obscured, as long as the degree of perspective obscuration does not exceed a certain tolerance value, and that the sensor system does not detect the perspectively obscured object if the degree of perspective obscuration exceeds the tolerance value.

[0035] In order to simulate this behavior when using collision recognition, one embodiment of the invention provides that a tolerance value for perspective occlusion of objects recognizable by the sensor system is determined, a scaling factor is calculated from the tolerance value, and at least the first geometric body or the second geometric body is scaled smaller by the scaling factor before the projection is performed or at least the first image or the second image is scaled smaller by the scaling factor before the collision recognition is performed. Figure 7 An exemplary algorithm for calculation of the scaling factor is disclosed in the description of FIG.

[0036] In the usual, in particular appropriately adapted, procedures of a projection process or collision detection, it is not necessary in principle to terminate the projection process. In order to further accelerate the method according to the invention, in a particularly advantageous embodiment it is provided that already during the running of a projection process for the first or second geometric body, in particular in which the projection of the first and second geometric bodies is carried out in parallel, collision detection is carried out with the aid of the projection of the points of the first and second geometric bodies that have already been projected onto the projection plane and the projection that has not yet been completed is interrupted if a collision is detected or has been eliminated with the aid of the projection of the already projected points.

[0037] The claimed invention also comprises a computer system configured to carry out the method according to the invention and a computer program product for configuring a computer system configured to carry out the method according to the invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Advantageous embodiments are described below with the aid of the accompanying drawings, which further explain the invention.

[0039] Figure 1 A computer system configured to implement the method according to the present invention is shown;

[0040] Figure 2 showing a virtual test environment stored on a computer system;

[0041] Figure 3 An exemplary projection process of a first geometric body and a second geometric body is shown;

[0042] Figure 4 A method for selecting a point of geometry to be used for projection is shown;

[0043] Figure 5 A first example for interrupting the projection process after eliminating a collision is shown;

[0044] Figure 6 A second example for interrupting the projection process after a collision is detected is shown; and

[0045] Figure 7 An exemplary scaling of the first or second geometric body is shown. DETAILED DESCRIPTION

[0046] Figure 1 The diagram shows a computer system TB arranged as a test bench for virtual testing of a radar-based control system UUT configured as a driver assistance system. The computer system TB comprises a simulation computer SI, a radar test bench RD and a host computer H. The simulation computer SI comprises a central processor C, on which a real-time operating system (not shown) and a virtual test environment VT are stored, and an interface unit IN for exchanging data between the virtual test environment VT and the periphery of the simulation computer SI. Stored on the host computer H is a computer program product for setting up the virtual test environment VT and for storing the virtual test environment VT on the central processor C, and also operating software for monitoring and controlling the virtual test environment VT on the central processor C during the simulation operation of the virtual test environment VT.

[0047] The computer system TB comprises as a test object a radar-based control system UUT with a transmitting-receiving unit TR, a first control unit E1 and a second control unit E2. The transmitting-receiving unit TR is configured to emit radar pulses RS, receive radar echoes RE of the radar pulses RS by means of an imaging radar sensor and construct a sensor image of the environment of the transmitting-receiving unit TR by means of the radar echoes RE. The first control unit E1 comprises an image processing unit for identifying objects in the sensor image and is further configured to construct a description of the environment of the transmitting-receiving unit by means of the identified objects. The second control unit E2 is configured to read in, evaluate the description of the environment and to control a virtual automated vehicle VE in a virtual test environment VT by means of the description of the environment.

[0048] The radar test bench RD comprises a number of radar transmitters T movable on a circular arc, which are provided for emitting radar pulses for simulating radar echoes RE. A simulation computer SI is provided for controlling the radar test bench RD. The simulation computer positions the radar transmitters T and adjusts the simulated radar echoes RE in time in such a way that the radar test bench RD simulates the radar echoes RE of virtual objects in the virtual test environment according to the radar pulses emitted by the transmitting-receiving unit TR.

[0049] Figure 2 The view of FIG. 4 shows an exemplary snapshot of the virtual test environment VT. The virtual test environment has a virtual automated vehicle VE controlled by a second controller E2 on a virtual road R and a plurality of other virtual objects O3, ..., O10. The virtual objects exemplarily include vehicles O3, O4, O9, O10, buildings O5, trees O6, O7 and road signs O8. Each virtual object O3, ..., O10 is configured with a stationary or variable position coordinate in the virtual test environment VT.

[0050] A sensor S (occluded) is suspended on the front side of a virtual automated vehicle VE. The sensor S is part of a simulation of a sensor system, which, in addition to the sensor S, also includes an image processing unit for identifying objects. The sensor S is provided with a pyramid-shaped sensor field of view FV starting from the sensor S, the spatial orientation of which is predetermined by the position coordinates and spatial orientation of the virtual automated vehicle VE. At least a subset of the objects present in the virtual test environment VT is determined as objects that can be identified by the sensor system. All objects O1, ..., O8 that can be identified by the sensor system and detected by the sensor field of view FV are received in a temporary list of identified virtual objects. For all objects listed in the temporary list, a check for perspective occlusion is performed, and all objects evaluated as perspectively occluded are removed from the temporary list. The objects that are still listed after the end of the check for perspective occlusion form a list of identified objects, and the virtual test environment VT generates a signal of the sensor system, from which the objects listed in the list of identified objects can be derived.

[0051] The exact design of the signal of the sensor system can vary depending on the application. The signal can carry additional information about the listed object, such as its absolute position coordinates or its relative position coordinates relative to the sensor S. The signal can, for example, simulate possible signals of a real sensor system and be routed to the outside via the interface unit IN for evaluation by the control system UUT. Figure 1 and 2 In the exemplary embodiment shown in , the signals do not simulate the signals of a real sensor system and are not directed externally, but are evaluated by a simulation computer SI for operating the radar test bench RD.

[0052] In the presently described embodiment, all virtual objects O3, ..., O10 in the virtual test environment VT are recognizable by the sensor system. In other embodiments, some virtual objects present in the virtual test environment VT are not recognizable by the sensor system. In principle, only objects recognizable by the sensor system are included in the temporary list of recognizable objects. However, advantageously, objects not recognizable by the sensor system can also perspectively block objects recognizable by the sensor system.

[0053] Each object O1, ..., O10 is configured as an envelope with an envelope cuboid B1, B2 in the virtual test environment VT. The envelope cuboid is called a bounding box in academia.

[0054] The radar test bench RD is intended to simulate only radar echoes RE of objects O3, ..., O10 in the virtual test environment VT, which are not perspectively obscured from the viewpoint of the sensor S or whose perspective obscuration is below a tolerance value, so that the first controller E1 recognizes the corresponding perspectively obscured physical objects as independent objects. Figure 2 In the snapshot shown in FIG. 3 , three vehicles O3, O9, O10, building O5, tree O7 and road sign O8 are detected by the sensor field of view FV and are therefore included in the temporary list of detected objects. However, vehicle O10 is perspectively obscured by vehicle O9, road sign O8 is partially perspectively obscured by vehicle O9, and vehicle O3 is partially perspectively obscured by building O5.

[0055] The figures described below illustrate the method according to the present invention for assessing perspective occlusion.

[0056] Figure 3 The diagram of FIG. 1 shows a three-dimensional scene of a virtual test environment VT, which includes a sensor S, a first object O1 in a first enveloping cuboid B1, and a second object O2 in a second enveloping cuboid B2. Both the first object O1 and the second object O2 are detected by the sensor field of view FV and are included in a temporary list of detected objects. First, the Euclidean distance of the first object O1 from the sensor is determined using the position coordinates of the first object O1 and the position coordinates of the sensor S1, and the Euclidean distance of the second object O2 from the sensor is determined using the position coordinates of the second object O2 and the position coordinates of the sensor S. The Euclidean distances are compared, and for objects further away from the sensor S, a check is made to see whether the second object O2 is perspectively blocked by the first object O1 as seen from the sensor S. By way of example, a check is made to see whether the second object O2 is perspectively blocked by the first object O1 as seen from the sensor S.

[0057] For this purpose, a projection plane P is opened, a two-axis local coordinate system CS is defined on the projection plane, and the first envelope cuboid B1 and the second envelope cuboid B2 are at least partially projected onto the projection plane P, wherein a central projection with the position coordinates of the sensor S as the viewpoint is used for the projection. Since the envelope cuboids B1, B2 are convex bodies, their images I1, I2 on the projection plane are also convex. The projection of the first envelope cuboid B1 takes place in such a way that the vertices of the first envelope cuboid B1 are determined before the projection is carried out, and the images of the vertices on the projection plane P are the vertices of the first image I1 of the first envelope cuboid B1. The numerical method for determining the corresponding vertices is described below. Figure 4 The projection of all six vertices of the first enveloping cuboid B1 visible from the sensor S and the formation of a convex envelope of the images of the projected vertices produce an exact image I1 of the first enveloping cuboid B1.

[0058] In the same way, a second image I2 of the second envelope cuboid B2 is constructed on the projection plane P. Instead of the envelope cuboid, other envelopes with other geometries can also be used, whose images, for example, have a greater consistency with the image of the virtual object enclosed by the envelope.

[0059] The collision detection of the first image I1 and the second image I2 is carried out with the aid of the GJK algorithm. A collision is exactly present when there is an intersection of the first image I1 and the second image I2 and the existence of the intersection is evaluated as a perspective occlusion of the second object O2 by the first object O1. The GJK algorithm provides that the Minkowski difference of the first image I1 and the second image I2 is first formed in the local coordinate system CS. The Minkowski difference Σ of two sets A, B is the set

[0060] Σ(A, B)={ab|a∈A, b∈B},

[0061] That is, the set that is produced by subtracting each element of B from each element of A. The intersection A and B exists exactly when the origin is an element of Σ. The GJK algorithm provides for checking whether the origin of the local coordinate system CS is an element of the Minkowski difference Σ of the first image I1 and the second image I2 by decomposing the Minkowski difference Σ into triangles. By using an envelope of polyhedra with only a small number of vertices for the first object O1 and the second object O2, the first image I1 and the second image I2 and, as a result, also their Minkowski difference Σ are polygons with a small number of vertices, that is, decomposable into a small number of triangles (simplexes). This facilitates the rapid operation of the GJK algorithm.

[0062] Figure 3The diagrams show the complete projections of the first envelope cuboids B1 and B2 respectively only for the purpose of illustrating the projection process. In practice, it is provided that the two envelope cuboids B1 and B2 are projected in parallel, the Minkowski difference of the projected point clouds of the vertices of the two envelopes B1 and B2 is formed or partially formed during the projection process, and the projection process is interrupted as soon as a collision between the first image I1 and the second image I2 is identified or excluded with the aid of the images of the projected vertices or points. This aspect of the invention is further explained in the subsequent description.

[0063] Figure 4 The diagram of FIG. 1 illustrates a search algorithm for determining a selection set of points of the envelope for projection, taking the second envelope cuboid B2 as an example.

[0064] First, determine the initial search direction SD1 parallel to the projection plane P (the rule for selecting the initial search direction is in Figure 5 and 6 ) and with the aid of the initial search direction SD1, a search plane SP is opened, which satisfies the following conditions:

[0065] - the search plane SP is orthogonal to the projection plane P, and

[0066] - The search plane SP is parallel to the search direction SD1.

[0067] The search algorithm comprises the following steps:

[0068] 1) Searching for a first point P1 of the second envelope cuboid, which is located at the outermost side with respect to the search direction SD1.

[0069] The first point P1 can also be defined synonymously as the point at which a surface whose normal vector is parallel to the search direction SD1 lies, so that the surface includes only a single intersection point with the second envelope cuboid B2 and no longer has any intersection point with the second envelope cuboid B2 after any small movement along the search direction SD1.

[0070] 2) Determine a connection vector V from the viewpoint, ie, the position coordinates of the sensor S, to the first point P1.

[0071] 3) A new search direction SD2 is formed which is parallel to the search plane SP and orthogonal to the connection vector V and whose scalar product with the old search direction SD1 is positive, in order to search for a second point P2 which is outermost with respect to the new search direction SD2.

[0072] 4) Repeat steps 1) to 3) until the distance between the point found in the current iteration step and the point found in the previous iteration step is below the tolerance value.

[0073] exist Figure 4In the example shown in , with the aid of the described search algorithm, a second point P2 is determined as a point of the second envelope cuboid B2 provided for projection. A subsequent search run with an initial search direction opposite to the search direction SD1 determines a third point P3 as a point provided for projection. In principle, the search algorithm can be implemented as often as desired with a changed search direction. Each search run leads to the determination of a boundary point of the second envelope cuboid B2, which is perspectively far outside from the sensor S and which, in the complete central projection of the second envelope cuboid B2 with the position coordinates of the sensor S as the viewpoint, would belong to the convex envelope of the image of the second envelope cuboid B2.

[0074] By implementing the search algorithm multiple times with different initial search directions, a selection of points P2 and P3 of the second envelope cuboid B2 is determined, and the projection of the second envelope cuboid is implemented in such a way that the selection of points P2 and P3 is projected onto the projection plane P in a central projection with the position coordinates of the sensor S as the viewpoint.

[0075] As long as the selection of points P2, P3 is sufficiently extensive, the image I2 corresponds exactly to the actual image of the second envelope, as it results from a fully realized central projection. The search algorithm can be used for any envelope, also for non-polyhedral envelopes, for example cylindrical envelopes, wherein the envelope is advantageously a convex envelope. By determining the selection of points of the convex envelope and the convex set forming the image of the selection of points by means of the search algorithm, it is always possible to construct an image of the envelope that corresponds approximately to the image resulting from a fully realized projection of the envelope.

[0076] The determination of the selection of points for the projection is carried out in parallel for the first envelope cuboid B1 and for the second envelope cuboid B2, and the points determined by means of the search algorithm are respectively projected directly after their determination onto the projection plane P. During the still running projection process of the first envelope cuboid B1 and the second envelope cuboid B2, collision detection is already carried out on the projection plane P by means of the image of the already projected points, and the projection is interrupted when a collision is detected or eliminated by means of the image of the already projected points.

[0077] Figure 5 The diagram of FIG. 1 shows a first example for prematurely interrupting the projection of the first envelope B1 and the second envelope B2. In the example, the first envelope B1 is shown as a cube and the second envelope B2 is shown as a sphere. First, a first initial search direction SD1-A is determined in order to Figure 4 The search algorithm shown in searches for a first point P1 -A of the first envelope B1 which is farthest from the sensor S in the direction of a first initial search direction SD1 -A.

[0078] In order to determine the first initial search direction SD1 -A, in the exemplary embodiment described, it is provided in principle that the position coordinates of the first envelope B1 are subtracted from the position coordinates of the second envelope B2 and the connecting vector resulting from the subtraction is projected onto the projection plane P.

[0079] The first point P1-A is projected onto the projection plane P directly after its determination in order to generate the image I1-A of the first point. A second initial search direction SD1-B opposite to the first initial search direction SD1-A is then determined in order to search for a second point P1-B of the second envelope B2 which is farthest in the direction of the second initial search direction SD1-B from the sensor S. The second point P1-B is projected onto the projection plane P directly after its determination in order to generate the image I1-B of the second point.

[0080] Directly after the projection of the second point P1-B, the difference D between the image of the first point I1-A and the image of the second point I1-B is formed. The difference D is the point of the Minkowski difference Σ of the images of the first envelope B1 and the second envelope B2. Since both the first envelope B1 and the second envelope B2 are convex bodies, it follows from the negative scalar product of the first initial search direction SD1-A and the difference D that the image I1-A of the first point and the image I1-B of the second point are the points of the images of the first envelope B1 and the second envelope B2 that are closest to each other and thus the difference D is the point of the Minkowski difference Σ that is closest to the origin of the local coordinate system CS. The Minkowski difference Σ may therefore not include the origin of the local coordinate system CS. The projection is therefore interrupted after the projection of the first point P1 -A and the second point P1 -B, and the second object O2 enclosed by the second envelope B2 is considered not perspectively obscured, provided that the second envelope B2 is not perspectively obscured by another envelope other than the first envelope B1 .

[0081] Figure 6 The diagram of FIG. 1 shows a second example for the pre-projection and an advantageous embodiment of the simultaneous image projection process. In principle, the following method steps are provided for the recognition of the perspective occlusion of the second envelope B2 by the first envelope B1. The selection of points for the projection is provided in principle as in Figure 4 The description of takes place when the currently valid initial search direction is used. It is assumed below that the Euclidean distance of the second virtual object O2 relative to the sensor S is greater than the Euclidean distance of the first virtual object O1 relative to the sensor S.

[0082] The method steps are as follows:

[0083] 1.1) A first initial search direction SD1-A is defined by projecting the following vector onto the projection plane P, wherein the vector is obtained by subtracting the position coordinates of the first virtual object O1 from the position coordinates of the second virtual object O2, and defines an initial search direction SD1-B opposite to the first initial search direction SD1-A.

[0084] 1.2) Selecting a first point P1-A of the first envelope B1 with the aid of a first initial search direction SD1-A and projecting it onto the projection plane P, so as to generate an image I1-A of the first point P1-A of the first envelope B1. Selecting a first point P1-B of the second envelope B2 with the aid of an opposite initial search direction SD1-B and projecting it onto the projection plane P, so as to generate an image I1-B of the first point P1-B of the second envelope B2,

[0085] 1.3) A first difference D1 between the images I1-A and I1-B is formed in the local coordinate system CS.

[0086] 2.1) Define a second initial search direction SD2-A, which points from the first difference D1 to the direction of the origin of the local coordinate system CS. With the help of the second initial search direction SD2-A, select the second point P2-A of the first envelope B1 and project it onto the projection plane P to generate an image I2-A of the point P2-A.

[0087] 2.2) A second point P2-B of the second envelope B2 is selected with the aid of an initial search direction SD2-B which is opposite to the second initial search direction SD2-A and is projected onto the projection plane P in order to generate an image I2-B of the point P2-B.

[0088] 2.3) Forming the second difference D2 of the resulting images I2-A and I2-B in the local coordinate system CS.

[0089] 3.1) Define a third initial search direction SD3-A, which is perpendicular to the connecting line of the first difference D1 and the second difference and points in the direction of the origin of the local coordinate system CS. With the help of the third initial search direction SD3-A, the third point P3-A of the first envelope B1 is selected and projected onto the projection plane P, so as to generate an image I3-A of the third point P3-A of the first envelope B1.

[0090] 3.2) A third point P3-B of the second envelope B2 is selected with the aid of a search direction SD3-B which is opposite to the third search direction SD3-A and is projected onto the projection plane P in order to generate an image I3-B of the point P3-B.

[0091] 3.3) An image of the third difference D3 of the resulting images I3-A and I3-B is formed in the local coordinate system CS.

[0092] 4) When the simplex of the Minkowski difference Σ spanned by the first difference D1 , the second difference D2 and the third difference D3 includes the origin of the local coordinate system CS, the projection process is interrupted and the second virtual object O2 is evaluated as being perspectively occluded.

[0093] 5.1) If the simplex does not include the origin of the local coordinate system CS, the corner point of the simplex that is farthest from the origin is abandoned and a new initial search direction is defined, which is perpendicular to the connecting line of the two remaining corner points and points in the direction of the origin of the local coordinate system CS. With the help of the new search direction, a point of the first envelope B1 is selected and projected onto the projection plane P in order to generate an image of the point.

[0094] 5.2) Using a search direction opposite to the new initial search direction, a point of the second envelope B2 is selected and projected onto the projection plane P in order to generate an image of the point.

[0095] 5.3) The difference of the two last generated images is formed in the local coordinate system CS and the difference is used as a new corner point in order to open a new simplex together with the two remaining corner points.

[0096] 6) Repeat steps 5.1 to 5.3 until the current simplex either has the origin of the local coordinate system CS (interruption criterion A) or the scalar product of the current initial search direction used to select the points of the first envelope B1 and the corner point set with the help of the current initial search direction is negative (interruption criterion B).

[0097] When interruption criterion A occurs, the second virtual object O2 is evaluated as being perspectively obscured. When interruption criterion B occurs, the second virtual object O2 is evaluated as not being perspectively obscured. The checking and use of interruption criterion A is of course only possible if at least three corner points D1, D2, D3 have been determined. Interruption criterion B can be used after a single corner point has already been determined. Figure 6 In the example shown in , the projection process is interrupted after determining the third corner point D3 and the second virtual object O2 is evaluated as being perspectively occluded, because the simplex of the Minkowski difference Σ extending through the three corner points D1, D2, D3 has the origin of the local coordinate system CS and thereby proves that the second envelope B2 is partially perspectively occluded by the first envelope B1.

[0098] Although the existence of the intersection of two sets can be proven with the GJK algorithm, the size of the intersection cannot be measured. Thus, the second envelope B2 is caused by an arbitrarily small perspective occlusion of the first envelope, and the second envelope B2 is evaluated as being perspectively occluded and thus invisible to the sensor system. However, from an actual sensor system including an imaging sensor S and an image processing unit, it can be expected that the image processing unit will also partially perspectively recognize the occluded object itself as long as the perspective occlusion does not exceed the tolerance value.

[0099] To mimic this realistic behavior, a tolerance value T for the perspective occlusion of the virtual objects O1, …, O8 can be determined. The tolerance value T = 0.25 means, for example: If more than approximately a quarter of the surface of the virtual object is not perspectively occluded as seen from the sensor S, the virtual object located within the sensor's field of view FV and recognizable by the sensor system should be recognized by the sensor system. Depending on the selected tolerance value, at least the first envelope B1 or the second envelope B2 is scaled down. When there is an intersection of the images I1, I2 of the scaled envelopes, the second virtual object O2 is evaluated as being perspectively occluded.

[0100] A first scaling factor s1 is introduced for the first envelope B1. A second scaling factor s2 is introduced for the second envelope B2. For tolerance values in the range 0 ≤ T ≤ 0.5, the scaling factors are determined as follows:

[0101] s1 = 1

[0102] s2 = 2(0.5 - T)

[0103] For tolerance values in the range 0.5 < T ≤ 1, the scaling factors are determined as follows:

[0104]

[0105] s2 = 0

[0106] A1 is the exact or estimated value of the surface of the first image I1 of the first envelope B1 assuming full implementation of the projection, and A2 is the exact or estimated value of the surface of the second image I2 of the second envelope B2. The surface A1 of the image of the cuboid-shaped envelope is estimated using the following formula:

[0107]

[0108] Here L is the Euclidean distance between the projection plane P and the position coordinates of the virtual object enclosed by the envelope, D1, D2, and D3 are the three mutually orthogonal faces of the cuboid, e s is the difference vector between the position coordinates of the virtual object enclosed by the envelope and the sensor S, and e n,1 、en,2 and e n,3 is the face normal.

[0109] Figure 7 The diagram shows the application of this scaling rule for three different tolerance values. For the sake of clarity, the first envelope body B1 and the second envelope body B2 are shown in the diagram as two-dimensional rectangles with edge lengths of 8 cm x 6 cm and 6 cm x 4 cm. The dashed lines each show an unscaled envelope body, and the solid lines show a scaled envelope body.

[0110] At tolerance value T=0.25, first envelope B1 remains unscaled, while a scaling factor of 0.5 results for the second envelope. First envelope B1 must obscure approximately one quarter of the visible surface of the unscaled second envelope B2 before perspective obstruction of the scaled second envelope B2 occurs.

[0111] At tolerance value T=0.5, first envelope B1 remains unscaled while second envelope B2 is scaled to the point size. First envelope B1 must approximately half cover the visible surface of unscaled second envelope B2 before perspective occlusion of scaled second envelope B2 occurs.

[0112] At tolerance value T=1, a scaling factor s1=0.5 is obtained for the first envelope volume B1, while the second envelope volume B2 is scaled to the point size. The unscaled first envelope volume B1 must almost completely cover the unscaled second envelope volume B2, and then the scaled second envelope volume B2 is perspectively blocked by the scaled first envelope volume B1.

[0113] exist Figure 7 The scaling method shown in FIG. 1 can be universally and effectively applied if all virtual objects O1, ..., O8 in the virtual test environment VT have similar sizes. Otherwise, universal and effective application may be problematic. Since the second envelope B2 that is potentially perspectively occluded can be scaled up to the point size, perspective occlusions by arbitrarily small first envelope B1 can occur, which is not a realistic behavior of the sensor system according to the invention. For example, the method according to the invention may be used in, for example, Figure 3 The situation shown in has the result that the vehicle O1 is not visible to the radar-based control system UUT because it is obscured by the child O2.

[0114] In the case of greatly deviating sizes of the virtual objects O1, ..., O8 in the virtual test environment VT, it is therefore advantageous to perform a preliminary evaluation of the plausibility of the perspective occlusion using the previously described evaluation of the surfaces of the images I1, I2. For example, the method can be extended in such a way that the check for perspective occlusion is only carried out if the evaluated surface of the first image I1 exceeds a predetermined value relative to the evaluated surface of the second image I2.

Claims

1. A method for simulating a sensor system, the sensor system comprising an imaging sensor (S) and an image processing unit for identifying virtual objects in a sensor image output by the sensor (S), in, In a virtual test environment (VT) including a plurality of virtual objects, a sensor (S) is assigned a position coordinate and each virtual object is assigned a position coordinate; The sensor (S) is configured with a sensor field of view (FV) in the virtual test environment (VT), and at least some of the virtual objects of the plurality of virtual objects are determined to be virtual objects recognizable by the sensor system; Starting a simulation run, during which the sensor (S) or at least one virtual object is periodically assigned new position coordinates in the virtual test environment (VT), And periodically check whether: at least one virtual object is detected through the sensor field of view (FV); characterised in that a tolerance value for the perspective occlusion of a virtual object recognizable by the sensor system is determined and a scaling factor is calculated from the tolerance value, In the case where a first virtual object (O1) is detected via the sensor field of view (FV) and a second virtual object (O2) is identifiable via the sensor system, Open a projection plane (P) for centrally projecting the first virtual object (O1) and the second virtual object (O2) using the position coordinates of the sensor (S) as a viewpoint; forming a first image (I1) on a projection plane (P) by projecting a first, scaled or unscaled envelope of a first virtual object (O1) at least partially onto the projection plane (P) in a central projection with position coordinates of the sensor (S) as a viewpoint; forming a second image (I2) on the projection plane (P) by projecting a scaled or unscaled second envelope of the second virtual object (O2) at least partially onto the projection plane (P) in a central projection with the position coordinates of the sensor (S) as the viewpoint; where the selected set of points of the envelope are projected to form an image of the envelope, and The point cloud formed by the images of the selected points forms a corresponding convex envelope of the images on the projection plane (P); By collision detection using the Gilbert-Johnson-Keerthi algorithm, it is checked whether there is an intersection between the first image (I1) and the second image (I2); In the following cases, that is, Condition i. There is an intersection, Condition ii. The Euclidean distance between the sensor (S) and the first virtual object (O1) is smaller than the Euclidean distance between the sensor and the second virtual object (O2), and Condition iii. The size of the intersection exceeds a predetermined threshold, The second virtual object (O2) is evaluated as being perspectively occluded; If at least one of the condition i., condition ii. or condition iii. is not satisfied, the second virtual object (O2) is evaluated as not being perspectively obscured; and A signal of the sensor system is generated, from which it can be concluded that all virtual objects detected by the sensor field of view (FV) and recognizable by the sensor system and evaluated as not being perspectively obstructed are recognized by the image processing unit, and all virtual objects detected by the sensor field of view (FV) and recognizable by the sensor system and evaluated as being perspectively obstructed are not recognized by the image processing unit.

2. The method according to claim 1, in, The size of the intersection is defined as the size of the intersection relative to the second image (I2).

3. The method according to claim 1, in, In the virtual test environment (VT), the sensor (S) is suspended on a virtual robot and the signals of the sensor system are monitored by a control system (UUT) provided for operating the virtual robot or by control software provided for operating the virtual robot.

4. The method according to claim 3, in, The virtual automated device is a virtual automated vehicle (VE).

5. The method according to any one of claims 1 to 4, in, The selection of points contains only those points whose image is an element of the convex envelope of the image of the envelope formed by the complete projection of the envelope.

6. The method according to any one of claims 1 to 4, in, The threshold for the size of the intersection is equal to zero.

7. The method according to any one of claims 1 to 4, in, The first envelope volume or the second envelope volume is scaled to be smaller by the scaling factor before the projection is performed.

8. The method according to any one of claims 1 to 4, in, The first image ( I1 ) or the second image ( I2 ) is scaled to be smaller before collision detection is carried out.

9. The method according to any one of claims 1 to 4, in, During the projection of the first envelope or the second envelope, a collision detection is performed using images of the points of the first envelope and the second envelope that have been projected onto the projection plane (P), And when a collision is detected or eliminated with the aid of the image of the already projected points, the projection which has not yet been completed is interrupted.

10. The method according to any one of claims 1 to 4, in, The Euclidean distances of the first envelope and the second envelope from the sensor (S) are determined.

11. The method according to claim 10, in, The Euclidean distances of the first envelope and the second envelope from the sensor (S) are determined using the position coordinates of the first virtual object (O1), the second virtual object (O2) and the sensor (S). 12 . A computer system (TB) provided for carrying out the method according to claim 1 . 13 . Computer program product for configuring a computer system (TB) for carrying out the method according to claim 1 .