Method and device for determining visibility masks for a vision system embedded in a vehicle.
The method and device address the challenge of determining visibility masks for ADAS systems by reconstructing images using geometric data, enhancing data quality and safety through improved occlusion detection in monoscopic and stereoscopic vision systems.
Patent Information
- Application Number
- FR2023003339
- Authority / Receiving Office
- FR · FR
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-04
- Publication Date
- 2024-10-11
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing ADAS systems face challenges in determining visibility masks for monoscopic vision systems, which are crucial for improving the quality of data from vehicle cameras and enhancing road safety.
A method and device for determining visibility masks using geometric data to reconstruct images from multiple camera views, including monoscopic and stereoscopic systems, by projecting pixels into a three-dimensional scene and selecting points based on depth to generate visibility masks.
Enhances the quality of data from vehicle cameras by identifying occluded areas, thereby improving the performance and safety of ADAS systems.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
Title of the invention: Method and device for determining visibility masks for a vision system on board a vehicle. Technical field
[0001] The present invention relates to methods and devices for determining a visibility mask for a vision system on board a vehicle, for example in a motor vehicle. The present invention also relates to a method and a device for controlling one or more AD AS systems on board a vehicle from a determined visibility mask. Technological background
[0002] Many modern vehicles are equipped with so-called AD AS (Advanced Driver-Assistance System). Such AD AS systems are passive and active safety systems designed to eliminate the element of human error in the driving of vehicles of all types. AD AS use advanced technologies to assist the driver while driving and thus improve their performance. AD AS use a combination of sensor technologies to perceive the environment around a vehicle, then provide information to the driver or act on certain vehicle systems.
[0003] There are several levels of ADAS, such as rearview cameras and blind spot sensors, lane departure warning systems, adaptive cruise control and automatic parking systems.
[0004] The AD AS embedded in a vehicle are supplied with data obtained from one or more embedded sensors such as, for example, cameras. These cameras make it possible in particular to detect and locate other road users or possible obstacles present around a vehicle in order, for example: - to adapt the vehicle's lighting according to the presence of other users; - to automatically regulate the vehicle speed; - to act on the braking system in the event of a risk of impact with an object.
[0005] The proper functioning of the driving assistance peripherals using this data therefore depends on the quality of the data emitted by a vision system.
[0006] Many vision systems perceive an environment around a vehicle from several images acquired by one or more cameras. When exploiting the images, occluded areas of the images which correspond to areas of the environment which are not present on all of the acquired images are defined. A visibility mask associated with an image then defines, for example, a filter making it possible to determine pixels associated with areas not found in other images.
[0007] Solutions exist for detecting an occlusion, that is to say for determining a visibility mask.
[0008] A first solution presented by "Occlusion Aware Unsupervised Learning of Optical Flow" by Yang Wang, Yi Yang, Zhenheng Yang, Liang Zhao, Peng Wang and Wei Xu published on April 4, 2018 is based on reverse optical flow. For each pixel of a first image represented by its coordinates, the algorithm checks whether a pixel of a second image arrives at this pixel of the first image with reverse optical flow by scanning all the pixels of the second image. This method can be used for both directions of optical flow to identify occluded areas of both images. This method is not used for monoscopic vision systems.
[0009] A second solution is described in the document "Geometry-based Occlusion-Aware Unsupervised Stereo Matching for Autonomous Driving Igorithm". The detection of occluded areas is based on a geometry constraint: the occluded pixel and another pixel that hides it are projected into the same pixel of a reconstructed image. This solution is not used for monoscopic vision systems.
[0010] Summary of the present invention
[0011] An object of the present invention is to solve at least one of the problems of the technological background described above.
[0012] Another object of the present invention is to propose a solution for determining a visibility mask for any vision system in order to improve the quality of the data from the camera(s) of the vision system.
[0013] Another object of the present invention is to improve road safety.
[0014] According to a first aspect, the present invention relates to a method for determining visibility masks for a vision system on board a vehicle, the vision system comprising at least one camera arranged so as to acquire at least one image of a scene from a determined point of view, the method being characterized in that it comprises the following steps: - reception of first and second data respectively representative of a first and second image acquired from a different point of view by the at least one camera; - determining a second set of pixels of the second image corresponding to a first set of pixels of the first image and obtaining geometric data associating the pixels of the first set of pixels with the pixels of the second set of pixels; - projection into the three-dimensional scene of the pixels of the first image under shape of a set of points based on geometric data; - reconstruction of a third image by reprojection of each point of the set of points according to intrinsic parameters of the at least one camera to generate a third image, for which when a plurality of points of the set of points are projected onto the same pixel of the third image, then the point of the plurality of points having the smallest depth is associated with the same pixel, the other point(s) of the plurality of points being selected to generate a first visibility mask representative of pixels visible in the first image and not visible in the second image.
[0015] According to a method variant, a second visibility mask representative of pixels visible in the second image and not visible in the first image is determined from the third image, a pixel being defined as not visible when none of the points of the set of points projects onto the pixel.
[0016] According to another method variant, the vision system is a monoscopic vision system formed from a single moving camera, the first image being acquired at a first time instant and the second image being acquired at a second time instant prior to the first time instant.
[0017] According to yet another method variant, the geometric data are representative of a movement of the camera between the second and first time instants, the reconstruction of the third image being obtained by the following formula: - 71 a function to go from homogeneous coordinates to pixel coordinates by removing a dimension from a vector; - an intrinsic matrix of the camera associated with the projection of a point in space with 3-dimensional coordinates into the image with 2-dimensional coordinates; - T a displacement matrix between the camera positions at the first acquisition time instant and at the second acquisition time instant; - 0 a backprojection function in the scene of a pixel according to its depth; - Dtnlp ) is a Pr°f°n(ieur of the pixel Pr predicted by the monoscopic vision system.
[0018] According to yet another method variant, the vision system is a stereoscopic vision system comprising two cameras arranged so as to each acquire an image of a scene at the same time instant from a different point of view, optical axes representative of an orientation of the field of vision of each camera being oriented in a non-parallel manner, the first and second images being acquired by a first and a second camera respectively.
[0019] According to an additional method variant, the geometric data are each representative of disparities determined from the first and second images, the reconstruction of the third image being obtained by the following formula: - [P the abscissa of a pixel of the third image; - the abscissa of a pixel of the first image; and - d(p a disparity determined for a pixel Pt of the first image.
[0020] According to a second aspect, the present invention relates to a device for determining a visibility mask for a vision system on board a vehicle, the device comprising a memory associated with at least one processor configured for implementing the steps of the method according to the first aspect of the present invention.
[0021] According to a third aspect, the present invention relates to a vehicle, for example of the automobile type, comprising a device as described above according to the second aspect of the present invention.
[0022] According to a fourth aspect, the present invention relates to a computer program which comprises instructions adapted for executing the steps of the method according to the first aspect of the present invention, in particular when the computer program is executed by at least one processor.
[0023] Such a computer program may use any programming language and be in the form of source code, object code, or intermediate code between source code and object code, such as in a partially compiled form, or in any other desirable form.
[0024] According to a fifth aspect, the present invention relates to a computer-readable recording medium on which is recorded a computer program comprising instructions for carrying out the steps of the method according to the first aspect of the present invention.
[0025] On the one hand, the recording medium may be any entity or device capable of storing the program. For example, the medium may comprise a storage means, such as a ROM memory, a CD-ROM or a microelectronic circuit type ROM memory, or a magnetic recording means or a hard disk.
[0026] On the other hand, this recording medium may also be a transmissible medium such as an electrical or optical signal, such a signal being able to be conveyed via an electrical or optical cable, by conventional or hertzian radio or by laser beam. self-directed or by other means. The computer program according to the present invention can in particular be downloaded from an Internet-type network.
[0027] Alternatively, the recording medium may be an integrated circuit in which the computer program is incorporated, the integrated circuit being adapted to perform or to be used in performing the method in question. Brief description of the figures
[0028] Other characteristics and advantages of the present invention will emerge from the description of the particular and non-limiting exemplary embodiments of the present invention below, with reference to the appended figures 1 to 4, in which:
[0029] [Fig-1] schematically illustrates a monoscopic vision system equipping a vehicle, according to a particular and non-limiting exemplary embodiment of the present invention;
[0030] [Fig.2] schematically illustrates a stereoscopic vision system equipping a vehicle, according to a particular and non-limiting exemplary embodiment of the present invention;
[0031] [Fig.3] schematically illustrates a device configured for determining a visibility mask by a vision system on board the vehicle of [Fig.1] or [Fig.2], according to a particular and non-limiting exemplary embodiment of the present invention;
[0032] [Fig.4] illustrates a flowchart of the different steps of a method for determining a visibility mask by a vision system on board the vehicle of [Fig.1] or [Fig.2], according to a particular and non-limiting exemplary embodiment of the present invention.
[0033] Description of the examples of embodiment
[0034] A method and a device for determining a visibility mask for a vision system on board a vehicle will now be described in the following with joint reference to FIGS. 1 to 4. The same elements are identified with the same reference signs throughout the description which follows.
[0035] According to a particular and non-limiting example of embodiment of the present invention, a method for determining a visibility mask for a vision system on board a vehicle is for example implemented by a computer of the on-board system of the vehicle controlling this vision system.
[0036] The vision system comprises at least one camera arranged so as to acquire an image of a scene according to a determined point.
[0037] For this purpose, the method for determining a visibility mask by a vision system on board a vehicle comprises receiving first and second data respectively representative of a first and second image acquired from a different point of view by the at least one camera.
[0038] The method also comprises determining a second set of pixels of the second image corresponding to a first set of pixels of the first image, obtaining geometric data associating the pixels of the first set of pixels with the pixels of the second set of pixels, projecting the pixels of the first image into the three-dimensional scene as a set of points as a function of the geometric data and reconstructing a third image by reprojecting each point of the set of points as a function of intrinsic parameters of the at least one camera to generate a third image, for which when a plurality of points of the set of points are projected onto the same pixel of the third image, then the point of the plurality of points having the smallest depth is associated with the same pixel,the other point(s) of the plurality of points being selected to generate a first visibility mask representative of pixels visible in the first image and not visible in the second image.
[0039] [Fig. 1] schematically illustrates a monoscopic vision system equipping a vehicle, according to a particular and non-limiting exemplary embodiment of the present invention.
[0040] Such an environment 1 corresponds, for example, to a road environment formed of a network of roads accessible to the vehicle 10.
[0041] In this example, the vehicle 10 corresponds to a vehicle with a thermal engine, with an electric motor(s) or even a hybrid vehicle with a thermal engine and one or more electric motors. The vehicle 10 thus corresponds, for example, to a land vehicle such as an automobile, a truck, a bus, a motorcycle. Finally, the vehicle 10 corresponds to an autonomous vehicle or not, that is to say a vehicle traveling according to a determined level of autonomy or under the total supervision of the driver.
[0042] The vehicle 10 advantageously comprises at least one on-board camera 11 configured to acquire images of a scene in the environment of the vehicle 10. This camera 11 forms the monoscopic vision system. A camera 11 is illustrated in [Fig.l]. The present invention is however not limited to a monoscopic vision system comprising a single camera but extends to any vision system comprising 1 or more cameras, for example 1, 2, 3, 4 or 5 cameras.
[0043] The camera 11 has known intrinsic parameters. These parameters consist in particular of: - the focal length f of the camera 11; - distortions which are due to imperfections in the camera's optical system; - the direction Cl of the optical axis of the camera 11; - camera resolution 11.
[0044] The intrinsic parameters characterize the transformation which associates, for an image point, the camera coordinates with the pixel coordinates, in each camera. These parameters do not change if the camera is moved.
[0045] The distortions, which are due to imperfections in the optical system such as defects in the shape and positioning of the camera lenses, will deflect the light beams and therefore induce a positioning deviation for the projected point compared to an ideal model. It is then possible to complete the camera model by introducing the three distortions which generate the most effects, namely radial, decentering and prismatic distortions, induced by defects in curvature, parallelism of the lenses and coaxiality of the optical axes. In this example, the camera 11 is assumed to be perfect, that is to say that the distortions are not taken into account or that their correction is processed at the time of image acquisition.
[0046] This camera 11 is arranged so as to acquire an image of a scene according to a defined point of view, the point of view is for example located on or in the left rearview mirror of the vehicle 10 or at the top of the windshield of the vehicle 10.
[0047] A marker is associated with the first camera 11: - the direction of the x axis is defined as the longitudinal axis of the vehicle 10; - the direction of the y axis is defined as being the transverse axis of the vehicle 10, therefore orthonormal to the x axis; - the direction of the z axis is defined orthogonal to the directions of the x and y axes. The three axes x, y and z thus form an orthonormal reference frame.
[0048] The camera 11 acquires images of a scene located in front of the vehicle 10, the camera 11 covers a first acquisition field 13.
[0049] An obstacle 18 is placed in the acquisition field 13 of the camera. The presence of the obstacle 18 defines an occlusion field for the monoscopic vision system composed here of the field 16.
[0050] The direction Cl of the optical axis representative of an orientation of the field of vision of the camera 11 is oriented so as to obtain the widest possible acquisition field 13 of the environment 1.
[0051] It is obvious that it is possible to use such a monoscopic vision system to take images of scenes located on the sides or behind the vehicle 10 by equipping it with differently placed and oriented cameras.
[0052] An image acquired by the camera 11 at a given acquisition time instant is presented in the form of data representing pixels characterized by: - coordinates in the image; and - data relating to the colors and brightness of objects in the observed scene in the form, for example, of RGB colorimetric coordinates (from the English “Red Green Blue”) or TSL (Tone, Saturation, Brightness).
[0053] When the vehicle 10 is in motion, that is to say when the camera 11 is in motion, the images acquired by the camera 11 at different time instants represent views of the same scene taken from different viewpoints, the positions of the camera 11 being distinct. On this scene are for example: - buildings; - road infrastructure; - other stationary users, for example a parked vehicle; and / or - other mobile users, for example another vehicle, a cyclist or a moving pedestrian.
[0054] These images are sent to a computer of a device equipping the vehicle 10 or stored in a memory of a device accessible to a computer of a device equipping the vehicle 10.
[0055] [Fig. 2] schematically illustrates a stereoscopic vision system equipping a vehicle, according to a particular and non-limiting exemplary embodiment of the present invention.
[0056] In this example, the vehicle 10 corresponds to a vehicle with a thermal engine, with an electric motor(s) or even a hybrid vehicle with a thermal engine and one or more electric motors. The vehicle 10 thus corresponds, for example, to a land vehicle such as an automobile, a truck, a bus, a motorcycle. Finally, the vehicle 10 corresponds to an autonomous vehicle or not, that is to say a vehicle traveling according to a determined level of autonomy or under the total supervision of the driver.
[0057] The vehicle 10 advantageously comprises several on-board cameras 11, each configured to acquire images of a scene in the environment of the vehicle 10. This set of cameras 11 forms the stereoscopic vision system. Two cameras 11 are illustrated in [Fig.2]. The present invention is however not limited to a stereoscopic vision system comprising two cameras but extends to any vision system comprising 1 or more cameras, for example 1, 2, or 5 cameras. A system comprising a single camera 11 then forms a monoscopic vision system.
[0058] The cameras 11 have known intrinsic parameters. These parameters consist in particular of: - focal length f of the camera 11; - distortions which are due to imperfections in the optical system of each camera; - direction C of the optical axis of the camera 11; - respective resolutions of the cameras 11.
[0059] The intrinsic parameters characterize the transformation which associates, for an image point, the camera coordinates with the pixel coordinates, in each camera. These parameters do not change if the camera is moved.
[0060] The distortions, which are due to imperfections in the optical system such as defects in the shape and positioning of the camera lenses, will deflect the light beams and therefore induce a positioning deviation for the projected point compared to an ideal model. It is then possible to complete the camera model by introducing the three distortions which generate the most effects, namely radial, decentering and prismatic distortions, induced by defects in curvature, parallelism of the lenses and coaxiality of the optical axes. In this example, the cameras are assumed to be perfect, that is to say that the distortions are not taken into account or that their correction is processed at the time of image acquisition.
[0061] These cameras 11 are arranged so as to each acquire an image of a scene from a different point of view, the first point of view is for example located on or in the left rearview mirror of the vehicle 10 or at the top of the windshield of the vehicle 10, the second point of view is for example located on or in the right rearview mirror of the vehicle 10 or at the top of the windshield of the vehicle 10. In the case where two cameras are located at the top of the windshield of the vehicle, they are then placed at a certain distance. In this example, the first camera 11 is located at the top of the windshield of the vehicle 10, the second camera 11 is located in the right rearview mirror of the vehicle 10.
[0062] A first marker is associated with the first camera 11: - the direction of the y axis is defined by the position of the second camera 11, so as to place the second camera 11 on the y axis of the first camera 11. The distance B separating the two cameras 11 is called the reference base (in English “baseline”) and the direction separating the two cameras 11 is that of the y axis; - the direction of the x axis is defined orthogonal to that of the y axis and orthogonal to that of the optical axis Cl of the first camera 11; - the direction of the z axis is defined orthogonal to the directions of the x and y axes. The three axes x, y and z thus form an orthonormal reference frame.
[0063] The extrinsic parameters linked to the position of the cameras 11 are the following parameters: - 3 translations in the x, y and z directions: Tx, Ty and Tz constituting the translation vector T; and - 3 rotations around the x, y and z axes: Rx, Ry and Rz, constituting the rotation matrix R.
[0064] A main constraint of the stereoscopic vision system used in automobiles is, for example, the large distance between the two cameras. Indeed, to be able to cover a measurement range of 200 meters, the "baseline" must reach 60cm for the cameras commonly used in this field.
[0065] The two cameras 11 acquire images of a scene located in front of the vehicle 10, the first camera covering only a first acquisition field 13, the second camera covering only a second acquisition field 14 and the two cameras 11 both covering a third acquisition field 15. The first and third acquisition fields 13, 15 thus allow a monoscopic vision of the scene by the first camera 11, the second and third acquisition fields 14, 15 allow a monoscopic vision of the scene by the second camera 11 and the third acquisition field 15 allows a stereoscopic vision of the scene by the stereoscopic vision system composed of the two cameras 11.
[0066] An obstacle 18 is placed in the acquisition field of the cameras, for example in the third acquisition field 15. The presence of the obstacle 18 defines an occlusion field for the stereoscopic vision system composed here of the three fields 16, 17 and 19.
[0067] Among these three fields, field 16 is visible from the second camera 11. The part of the scene present in this field 16 is therefore observable using the monoscopic vision system composed of the second camera 11.
[0068] The field 17 is visible from the first camera 11. The part of the scene present in this field 17 is therefore observable using the monoscopic vision system composed of the second camera 11.
[0069] Finally, field 19 is not visible from any of the cameras. The part of the scene present in this field 19 is therefore not observable.
[0070] The directions C1, C2 of the optical axes representative of an orientation of the field of vision of each camera are oriented non-parallel so as to obtain the third acquisition field 15 of the environment 1 as wide as possible.
[0071] It is obvious that it is possible to use such a stereoscopic vision system to take images of scenes located on the sides or behind the vehicle 10 by equipping it with differently placed and oriented cameras.
[0072] The images acquired by the cameras 11 at a given acquisition time instant tl are presented in the form of data representing pixels characterized by: - coordinates in each image; and - data relating to the colors and brightness of the objects in the observed scene in the form, for example, of RGB (from the English “Red Green Blue”) or TSL (Tone, Saturation, Brightness) colorimetric coordinates.
[0073] The images acquired by the cameras 11 represent views of the same scene taken from different viewpoints, the positions of the cameras being distinct. On this scene are found, for example: - buildings; - road infrastructure; - other stationary users, for example a parked vehicle; and / or - other mobile users, for example another vehicle, a cyclist or a pedestrian in movement.
[0074] These images are sent to a computer of a device equipping the vehicle 10 or stored in a memory of a device accessible to a computer of a device equipping the vehicle 10.
[0075] [Fig. 3] schematically illustrates a device 4 configured for determining a visibility mask for a vision system embedded in a vehicle 10, according to a particular and non-limiting exemplary embodiment of the present invention. The device 4 corresponds for example to a device embedded in the first vehicle 10, for example a computer.
[0076] The device 4 is for example configured for the implementation of the operations and / or steps described with regard to figures 1, 2 and 4. Examples of such a device 4 include, but are not limited to, on-board electronic equipment such as an on-board computer of a vehicle, an electronic calculator such as an ECU (“Electronic Control Unit”), a smartphone, a tablet, a laptop. The elements of the device 4, individually or in combination, can be integrated in a single integrated circuit, in several integrated circuits, and / or in discrete components. The device 4 can be produced in the form of electronic circuits or software (or computer) modules or even a combination of electronic circuits and software modules.
[0077] The device 4 comprises one (or more) processor(s) 40 configured to execute instructions for carrying out the steps of the method and / or for executing the instructions of the software(s) embedded in the device 4. The processor 40 may include integrated memory, an input / output interface, and various circuits known to those skilled in the art. The device 4 further comprises at least one memory 41 corresponding for example to a volatile and / or non-volatile memory and / or comprises a memory storage device which may comprise volatile and / or non-volatile memory, such as EEPROM, ROM, PROM, RAM, DRAM, SRAM, flash, magnetic or optical disk.
[0078] The computer code of the embedded software(s) comprising the instructions to be loaded and executed by the processor is for example stored in the 4L memory.
[0079] According to various particular and non-limiting embodiments, the device 4 is coupled in communication with other similar devices or systems (for example other computers) and / or with communication devices, for example a TCU (from the English “Telematic Control Unit” or in French “Telematic Control Unit”), for example via a communication bus or through dedicated input / output ports.
[0080] According to a particular and non-limiting exemplary embodiment, the device 4 comprises a block 42 of interface elements for communicating with external devices. interface elements of block 42 include one or more of the following interfaces: - RF radio frequency interface, for example Wi-Fi® type (according to IEEE 802.11), for example in the 2.4 or 5 GHz frequency bands, or Bluetooth® type (according to IEEE 802.15.1), in the 2.4 GHz frequency band, or Sigfox type using UBN (Ultra Narrow Band) radio technology, or LoRa in the 868 MHz frequency band, LTE (Long-Term Evolution), LTE-Advanced; - USB interface (from the English “Universal Serial Bus” or “Universal Serial Bus” in French); HD MI interface (from the English “High Definition Multimedia Interface” or “High Definition Multimedia Interface” in French); - LIN interface (from the English “Local Interconnect Network”).
[0081] According to another particular and non-limiting exemplary embodiment, the device 4 comprises a communication interface 43 which makes it possible to establish communication with other devices (such as other computers of the on-board system) via a communication channel 430. The communication interface 43 corresponds for example to a transmitter configured to transmit and receive information and / or data via the communication channel 430. The communication interface 43 corresponds for example to a wired network of the CAN (Controller Area Network) type, CAN FD (Controller Area Network Flexible Data-Rate), FlexRay (standardized by the ISO 17458 standard) or Ethernet (standardized by the ISO / IEC 802-3 standard).
[0082] According to a particular and non-limiting exemplary embodiment, the device 4 can provide output signals to one or more external devices, such as a display screen 440, touch-sensitive or not, one or more speakers 450 and / or other peripherals 460 (projection system) via the output interfaces 44, 45, 46 respectively. According to a variant, one or other of the external devices is integrated into the device 4.
[0083] [Fig.4] illustrates a flowchart of the different steps of a method 2 for determining a visibility mask for a vision system on board the vehicle of [Fig.1] or [Fig.2], the vision system comprising at least one camera 11 arranged so as to acquire an image of a scene from a determined point of view, according to a particular and non-limiting exemplary embodiment of the present invention.
[0084] The method is for example implemented by one or more processors of one or more computers on board the vehicle 10, for example by a computer controlling the vision system.
[0085] In a first step 21, the computer receives first data representative of a first image acquired by a camera 11 at a first acquisition time instant t1.
[0086] In a second step 22, the computer receives second data representative of a second image acquired by a camera 11 at a second acquisition time instant t2.
[0087] The two images received correspond to two views of the same scene taking place around the vehicle 10.
[0088] Two embodiments of this method are then defined. These different modes can be implemented independently depending on the type of vision system but can also be combined. A combination of the different embodiments can for example allow supervision of a vision system using one embodiment by another vision system using another embodiment.
[0089] According to a first embodiment, the first and second images are taken by the same camera 11 in motion, the vehicle 10 itself being in motion. The first and second images are taken at two distinct time instants t1, t2, the second time instant t2 being prior to t1. The vision system is then a monoscopic vision system as presented in [Fig.l].
[0090] In a step 23, a second set of pixels of the second image corresponding to a first set of pixels of the first image is determined and geometric data associating the pixels of the first set of pixels with the pixels of the second set of pixels are obtained.
[0091] According to this first embodiment, the first geometric data correspond to obtaining the displacement of the camera 11 between the two time instants t1 and t2 as well as the prediction of depths associated with the pixels of the first image.
[0092] In this first embodiment, the extrinsic parameters of the monoscopic vision system are, for example, determined by a computer associated with this same monoscopic vision system. The determination of the extrinsic parameters of the monoscopic vision system, including the movement of the camera 11 between the two time instants t1 and t2, is known to those skilled in the art and presented, for example, in the document Unsupervised Learning of Depth and Ego-Motion from Video by Tinghui Zhou, Matthew Brown, Noah Snavely and David G. Lowe published on August 1, 2017.
[0093] Depths associated with the first pixels of the first image are predicted by the monoscopic vision system from a depth prediction model, learned during a training phase, applied to the first image. Such a method is described in the document: HR-Depth: High Resolution Self-Supervised Monocular Depth Estimation by Xiaoyang Lyu, Liang Liu, Mengmeng Wang, Xin Kong, Lina Liu, Yong Liu, Xinxin Chen, and Yi Yuan published on December 14, 2020.
[0094] In a step 24, pixels of the first image are projected into the three-dimensional scene in the form of a set of points according to the geometric data. The calculation of the spatial position of a point P, corresponding to the projection of a pixel Pt of the first image, is done using the following function:
[0095] [Math.l]
[0096] with: - K an intrinsic matrix of the camera 11 associated with the projection of a point in space with 3-dimensional coordinates into the image with 2-dimensional coordinates; - 0 a backprojection function in the scene of a pixel Pt according to its depth; - Dtm(p) is a Pr°f°n(ieur of the pixel Pt of the first image predicted by the monoscopic vision system.
[0097] In a step 25, a third image is reconstructed by reprojection of each point of the set of points as a function of intrinsic parameters of the at least one camera to generate a third image.
[0098] The coordinates of the points Pms projected into the third image from the points P, in the scene are defined by the following formula:
[0099] [Math.2] p ms =Ir ( K [ T «pi])
[0100] or:
[0101] [Math.3]
[0102] with: - 77 a function to go from homogeneous coordinates to pixel coordinates by removing a dimension from a vector; - an intrinsic matrix of the camera 11 associated with the projection of a point in space with 3-dimensional coordinates into the image with 2-dimensional coordinates; - T a displacement matrix between the positions of the camera 11 at the second acquisition time instant t2 and at the first acquisition time instant tl; - 0 a backprojection function in the scene of a pixel Pt according to its depth; - Dfnkp ) is a Pr°l°n^cur of the pixel Pt of the first image predicted by the monoscopic vision system.
[0103] When a plurality of points of the set of points are projected onto the same pixel of the third image, then the point of the plurality of points having the smallest depth is associated with this same pixel.
[0104] The other point(s) of the plurality of points are selected to generate a first visibility mask representative of pixels visible in the first image and not visible in the second image, the pixels of the first image referred to as non-visible being those associated with the points not selected during the projection into the third image.
[0105] A second visibility mask representative of pixels visible in the second image and not visible in the first image is determined from the third image, a pixel being defined as not visible when none of the points in the set of points projects onto the pixel in the third image.
[0106] According to a variant, the value I(x, y) of a pixel (RGB or TSL for example) of the third image at the coordinates (.y, y) can be defined as a function of the values j of the projected points Pi around this pixel. The value of a pixel is, for example, defined as a function of the values of the projected points weighted by the distance separating the projected points from the pixel. Thus, the definition of the value of a pixel can be carried out using the following function:
[0107] [Math.4] 1(4y) x 4 if IpU y) -pj < 1
[0108] with: -1(x, y) the value of the pixel at location (.y, y) in the third image; - p(x, y) the pixel coordinate; - Pj the location of the point in the scene projected in the third image; 11 represents the Euclidean distance; -fin ) is the RGB or HSL value of the projected 3D point, when / (y, y) is the V value / / RGB of the pixel to be calculated.
[0109] A maximum of 4 points are thus used to calculate the value of a pixel, the points being present within a radius of one pixel.
[0110] It should be noted that the value of the point selection radius is defined as being equal to one pixel, but this value is set according to the results obtained during tests. A radius of 0.5 pixels, for example, makes it possible to increase the precision of the calculation but would not make it possible to take into account all the points around the pixel. This radius is therefore a compromise between precision and taking into account a larger number of points.
[0111] According to a second embodiment, the first and second images are taken by two separate cameras 11 at the same time instant t1. The vision system is then a stereoscopic vision system as presented in [Fig.2].
[0112] According to this second embodiment, the first geometric data correspond to disparities.
[0113] In order to facilitate the analysis of the two received images, the first and second images are rectified according to a method known to those skilled in the art. Such a method is described, for example, in “Projective Rectification of Non-Calibrated Infrared Stereo Images with Global Consideration of Distortion Minimization” by Benoit Ducarouge, Thierry Sentenac, Florian Bugarin and Michel Devy of July 16, 2009.
[0114] The rectification method consists of reorienting the epipolar lines so that they are parallel with the horizontal axis of the image. This method is described by a transformation which projects the epipoles to infinity and whose corresponding points are necessarily on the same ordinate.
[0115] A rectification algorithm consists, for example, of 4 steps: - Rotate (virtually) the first camera 11 so that the epipole goes to infinity along the horizontal axis of the reference frame associated with it; - Apply the same rotation to the second camera to end up in the initial geometric configuration; - Rotate the second camera by the rotation associated with the rotation matrix 'R', corresponding to the extrinsic parameter of the starting stereoscopic vision system; - Adjust the scale in both camera markers.
[0116] It should be noted that rectification simplifies the matching of pixels in stereo images, i.e. images obtained by a stereoscopic vision system. The corresponding pixel in the second image to a pixel in the first image (and vice versa) is positioned on the same line. From the knowledge of the epipolar geometry and therefore of a fundamental matrix of the stereo system, the objective is then to determine a pair of projective transformations, called homographies, which reorient the epipolar projections parallel to the lines of the images, therefore to the horizontal axis of the rectified cameras.
[0117] In a step 23, a second set of pixels of the second image corresponding to a first set of pixels of the first image is determined and geometric data associating the pixels of the first set of pixels with the pixels of the second set of pixels are obtained, this step is called “stereo matching” (in English “feature matching”).
[0118] Stereo matching or disparity estimation is the process of finding pixels in stereoscopic views that correspond to the same 3D point in the scene. Rectified epipolar geometry simplifies this process of finding correspondences on the same epipolar line. There is no need to calculate the coordinates of the 3D point to find the corresponding pixel on the same line in the other image. Disparity is the distance d between a pixel and its correspondence in the other image. This disparity is horizontal when the images are rectified, with horizontality defined along the x-direction of the first image.
[0119] The output data of this operation 23 is a disparity representative of a displacement between each pixel of the first set of pixels of the first image and the second pixel corresponding to each first pixel in the second image.
[0120] In a step 24, pixels of the first image are projected into the three-dimensional scene in the form of a set of points according to the geometric data. The calculation of the spatial position of a point Pi corresponding to the projection of a pixel Pt of the first image is done using the following function:
[0121] [Math.5]
[0122] with: - K an intrinsic matrix of the camera 11 associated with the projection of a point in space at 3-dimensional coordinates into the first image at 2-dimensional coordinates; - 0 a backprojection function in the scene of a pixel Pt according to its depth; ■ Df\p ) is a depth of the pixel Pt of the first image predicted by the stereoscopic vision system.
[0123] It should be noted that the depth / ^(p ) of a pixel Pt of the first image is predicted by the stereoscopic vision system from the disparity and the distance between the two cameras 11 called baseline:
[0124] [Math.6] D ts(P t )= fx ^J
[0125] with: - f the focal length of the first camera 11; - B the baseline; and ■ d ( pj the disparity of the pixel Pt.
[0126] In a step 25, a third image is reconstructed by reprojection of each point of the set of points according to intrinsic parameters of the at least one camera to generate a third image.
[0127] The coordinates of the points Pss projected in the third image are defined by the following formula:
[0128] [Math.7] p œ =7r ( K [Fpj )
[0129] or:
[0130] [Math. 8]
[0131] with: - 77 a function to go from homogeneous coordinates to pixel coordinates by removing a dimension from a vector; - K an intrinsic matrix of the first camera 11 associated with the projection of a point in space with 3-dimensional coordinates into the image with 2-dimensional coordinates; - K' an intrinsic matrix of the second camera 11 associated with the projection of a point in space with 3-dimensional coordinates into the image with 2-dimensional coordinates; - F a fundamental matrix linked to the extrinsic parameters of the stereoscopic vision system; - 0 a backprojection function in the scene of a pixel Pt according to its depth; - Dtnlp ) is a Pr°f°n(ieur of the pixel Pt of the first image predicted by the monoscopic vision system.
[0132] According to a variant, the coordinates of the points Pss projected in the third image are defined by the following formula:
[0133] [Math.9] Pi=pr d (pj
[0134] with: - / >* the abscissa of a pixel of the third image, respectively fourth image; - px} the abscissa of a pixel of the first image, respectively second image; and - d^p ) a disparity determined for a pixel Pt of the first image, resp- tively second image.
[0135] When a plurality of points of the set of points are projected onto the same pixel of the third image, then the point of the plurality of points having the smallest depth is associated with this same pixel.
[0136] The other point(s) of the plurality of points are selected to generate a first visibility mask representative of pixels visible in the first image and not visible in the second image, the pixels of the first image referred to as non-visible being those associated with the points not selected during the projection into the third image.
[0137] A second visibility mask representative of pixels visible in the second image and not visible in the first image is determined from the third image, a pixel being defined not visible when none of the points in the set of points projects onto the pixel in the third image.
[0138] As presented in the first embodiment, according to a variant, the value I (x, y) of a pixel (RGB or TSL for example) of the third image at the coordinates (x, y) can be defined as a function of the values l^pj of the projected points P, around this pixel. The value of a pixel is, for example, defined as a function of the values of the projected points weighted by the distance separating the projected points from the pixel.
[0139] Thus, the definition of a visibility mask makes it possible to identify the pixels visible in the first image and not visible in the second image and vice versa via one of the embodiments presented.
[0140] If the ADAS uses input data such as the depths determined by the monoscopic vision system to determine the distance between a part of the vehicle 10, for example the front bumper, and another user present on the road, the ADAS is then able to determine whether the predicted depth is reliable when the pixel is clearly visible in the first and second images.
[0141] Of course, the present invention is not limited to the exemplary embodiments described above but extends to a method for determining a visibility mask for a vision system embedded in a vehicle, which would include secondary steps without thereby departing from the scope of the present invention. The same would apply to a device configured for implementing such a method.
[0142] The present invention also relates to a vehicle, for example an automobile or more generally an autonomous land-based motor vehicle, comprising the device 4 of [Fig.3].
Claims
Claims
1. Method for determining visibility masks for a vision system on board a vehicle (10), the vision system comprising at least one camera (11) arranged to acquire at least one image of a scene from a determined point of view, said method being characterized in that it comprises the following steps: - reception (21, 22) of first and second data respectively representative of a first and second image acquired from a different point of view by said at least one camera (11); - determination (23) of a second set of pixels of said second image corresponding to a first set of pixels of said first image and obtaining geometric data associating the pixels of said first set of pixels with the pixels of said second set of pixels;- projection (24) into the three-dimensional scene of the pixels of said first image in the form of a set of points as a function of said geometric data; - reconstruction (25) of a third image by reprojection of each point of said set of points as a function of intrinsic parameters of the at least one camera to generate a third image, for which when a plurality of points of said set of points are projected onto the same pixel of said third image, then the point of said plurality of points having the smallest depth is associated with said same pixel, the other point(s) of said plurality of points being selected to generate a first visibility mask representative of pixels visible in said first image and not visible in said second image.;
2. The method of claim 1, wherein a second visibility mask representative of pixels visible in said second image and not visible in said first image is determined from the third image, a pixel being defined not visible when none of the points in said set of points projects onto said pixel.
3. Method according to one of claims 1 to 2, for which said vision system is a monoscopic vision system formed of a single moving camera (11), said first image being acquired at a first time instant and said second image being acquired at a second time instant prior to said first time instant.
4. Method according to claim 3, for which said geometric data are representative of a displacement of said camera (11) between the second and first time instants, the reconstruction of said third image being obtained by the following formula: ] )av“: - 71 a function for going from homogeneous coordinates to pixel coordinates by removing one dimension of a vector; - an intrinsic matrix of the camera (11) associated with the projection of a point in space with 3-dimensional coordinates into the image with 2-dimensional coordinates; - T a displacement matrix between the positions of the camera (11) at the first time instant of acquisition and at the second time instant of acquisition; - 0 a back-projection function in the scene of a pixel as a function of its depth; - ^im{p ) is a Pr°f°n(ieur of the pixel Pt predicted by the monoscopic vision system.
5. Method according to one of claims 1 to 2, for which said vision system is a stereoscopic vision system comprising two cameras (11) arranged so as to each acquire an image of a scene at the same time instant from a different point of view, optical axes representative of an orientation of the field of vision of each camera being oriented in a non-parallel manner, said first and second images being acquired by a first and a second camera (11) respectively.
6. Method according to claim 5, for which said geometric data are each representative of disparities determined from the first and second images, the reconstruction of said third image being obtained by the following formula: - p* the abscissa of a pixel of the third image; - p* the abscissa of a pixel of the first image; and - d(^p ) a disparity determined for a pixel Pt of the first image.
7. Computer program comprising instructions for implementing the method according to any one of the preceding claims, when these instructions are executed by a processor.
8. Device (4) for determining a visibility mask for a vision system on board a vehicle (10), said device (4) comprising a memory (41) associated with at least one processor (40) configured for implementing the steps of the method according to any one of claims 1 to 6.
9. Vehicle (10) comprising the device (4) according to claim 8.
Citation Information
Patent Citations
Estimating depth for image and relative camera poses between images
WO2022122124A1
