3D model generation in imaging systems

By using infrared light signal illumination and precise distance measurement, a 3D model of the driver is generated, which solves the problem of inaccurate distance measurement in single-camera systems and improves the accuracy and computational efficiency of the driver monitoring system.

CN123165646APending Publication Date: 2026-11-24SMART EYE AB
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202580020628.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2024-03-28
Filing Date
2025-03-28
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

In driver monitoring systems, existing technologies suffer from inaccurate distance measurements when using only one camera to generate an accurate scaled 3D model, especially with an error tolerance of 3%-6%, which affects the accuracy of head and eye tracking.

Method used

By illuminating the field of view with infrared light signals, detecting reflected light through a pixelated image sensor, identifying 2D anatomical feature points, generating a 3D model, and calibrating the model by selecting a set of points with precise distance metrics, the computational requirements are reduced.

Benefits of technology

It achieves more accurate distance measurement, reduces computational burden, and improves the accuracy and computational efficiency of 3D models, making it suitable for driver monitoring of safety-critical actions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123165646A_ABST
    Figure CN123165646A_ABST
Patent Text Reader

Abstract

A method for generating a scaled 3D model of an object includes illuminating a field of view with an infrared light signal configured to enable distance detection; acquiring a stream of image frames from a pixelated image sensor; identifying a set of 2D anatomical feature points in the image frames; generating a 3D model of the object based on the stream of image frames and the set of 2D anatomical features in each image frame; determining a set of precise distance metrics to the set of selected points in each image frame based on a subset of pixels surrounding each selected point in the set of selected points; and scaling the 3D model based on the precise distance metrics. By limiting the processing associated with the precise distance metrics to a subset of pixels in the image frames, the required computational power is significantly reduced.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Invention Field This invention relates to generating scaled 3D models of objects located within the field of view of an imaging system. The imaging system can be integrated into a driver monitoring system. Background of the Invention Head tracking and eye tracking are becoming increasingly important in many applications, including various automotive applications. In driver monitoring systems (DMS), one or more cameras are mounted in front of the driver and controlled to capture a video feed of the driver's face. Based on the images, the system can determine various information about the driver, such as the position and orientation of the driver's head, the direction of the driver's gaze, and whether the driver's eyes are fully open. Based on this information, various types of actions can be taken, including issuing drowsiness alerts.

[0003] In some systems, multiple cameras are used to capture images of the driver's head from different angles, and a scaled 3D model of the head is generated from these images.

[0004] However, in some applications, such as for miniaturization or cost-effectiveness, only one camera is available. To successfully generate a scaled 3D model using only one camera, it is necessary to estimate the distance between the camera and the head. Typically, this estimated distance metric is obtained based on 2D images and knowledge of typical head features, such as pupil diameter or head size. In typical automotive applications, this estimated distance metric can have an error margin of 3%–6%. This is sufficient for many head-tracking and eye-tracking applications, but a more accurate distance metric would be beneficial.

[0005] In this field, there are various methods to determine 3D images (sometimes referred to as depth images) very accurately. However, depth measurement should preferably be performed using as little additional hardware as possible, preferably using existing hardware such as imaging sensors and IR light sources.

[0006] One approach is to illuminate the object with an IR light pattern and then identify points in the pattern in the acquired image. For example, the pattern could be an equidistant or pseudo-random grid of points, where variations in the distance between adjacent points in the acquired image would be related to their distance to the object. This method is sometimes referred to as the "structured light" method.

[0007] Another method is to detect the time-of-flight of emitted light that has been reflected by an object and then received by a sensor. Various methods exist for time-of-flight detection. One approach is to emit a high-frequency signal and switch the receiver according to the frequency of the emitted signal. Distance in a specific direction can be determined based on the relationship between the light received in consecutive half-cycles.

[0008] While these methods and several other depth sensing techniques can be used for image depth detection, they become computationally expensive when calculating the complete distance topology (depth image). In traditional structured light sensors, the dot pattern is typically quite dense, and distance is detected across a very large number of points. In traditional time-of-flight sensors, distance calculations are typically performed on a per-pixel basis.

[0009] Therefore, there is a need to provide more sophisticated distance measurement techniques with higher accuracy, but without requiring excessive computing power.

[0010] General disclosure of the invention The purpose of this invention is to meet the above-mentioned needs and to provide more accurate and computationally efficient distance detection in driver monitoring systems.

[0011] According to a first aspect of the invention, this and other objectives are achieved by a method for generating a scaled 3D model of the head or upper body of a driver of a vehicle located within the field of view of an imaging system, the method comprising: illuminating the field of view with an infrared light signal and detecting the reflection of the infrared light signal in a pixelated image sensor, wherein the light signal is configured to enable distance detection of points in the field of view; acquiring a feed of image frames from the pixelated image sensor, wherein the images comprise a set of points to which distances are detectable; identifying a set of 2D anatomical feature points in the image frames; generating a 3D model of the head or upper body based on the feed of image frames and the set of 2D anatomical features in each image frame; selecting a subset of points from the set of points; determining a set of precise distance metrics to the subset of points in each image frame based on the reflection of the infrared light signal received by the pixel subset of the pixelated image sensor, the pixel subset being located around each selected point; and calibrating the 3D model based on the precise distance metrics.

[0012] The term "infrared light" is intended to encompass the entire infrared range. This range is sometimes divided into IR-A, IR-B, and IR-C, and sometimes into near-infrared (NIR), mid-infrared (MIR), and far-infrared (FIR).

[0013] It is important to note that the number of points capable of detecting distances is typically very large. Depending on the technology used to detect precise distances, the distance within each pixel of the sensor may be determined. In the case of structured light, the number of points in the pattern can be extremely large. This invention is based on the understanding that it is not necessary to calculate the distance to every single such point, but rather to only the distance to a much smaller subset of points, and then use this smaller set of precise distances to calibrate the 3D model. As an example, less than 10% or even less than 2% of all distance-detectable points in the image are selected. By limiting the processing associated with precise distance measurements to a subset of points in the image, the required computational power is significantly reduced.

[0014] 3D models are typically, but not necessarily, scaled using a set of estimated distance metrics. Without any distance metrics, a 3D model is a "relative" model that needs to be calibrated (or scaled) based on one or more distance metrics. The act of calibrating a relative model is often referred to as "scaling" the model.

[0015] Estimated distance metrics can also be used to eliminate ambiguity in precise distance metrics. Such ambiguity exists in many distance measurement methods and can be caused by periodicity in the measurement principle.

[0016] Determining the estimated distance can be done more frequently than determining the precise distance metric. In this case, the estimated distance metric can provide more frequent distance tracking of the face between precise measurements.

[0017] Precise distance measurements can be advantageously performed at a lower frequency than the frame rate of the image frame stream. In other words, the 3D model does not need to be calibrated for each frame. For example, the 3D model can be calibrated only every ten frames, only every 100 frames, or even less frequently. In some implementations, calibrating the 3D model only at system startup (i.e., each time a new user is detected) may be sufficient.

[0018] In some embodiments, the method may further include: detecting the amount of change between the most recent image frame and past image frames, comparing the amount of change with a predefined threshold, and determining a set of precise distance metrics in response to detecting that the amount of change exceeds the threshold. Therefore, in this case, calibration based on precise distance metrics can be performed at startup and then each time a significant movement (a change exceeding the threshold) occurs.

[0019] The set of selected points for determining the precise distance metric can be a single set of points. However, it can be beneficial if this set of points at least partially overlaps with a set of 2D anatomical feature points for determining 3D coordinates in the 3D model. However, there may also be reasons for selecting points for other reasons. For example, areas of the face may be more or less suitable for precise distance detection. Very dark areas (such as the pupil) may be less suitable because they absorb a large amount of light.

[0020] The emitted light signal can be a structured pattern of IR light spots. In this case, a set of precise distance metrics can be determined by locating the reflection of the IR light spots in a portion corresponding to a subset of pixels within an image frame. The pattern can be regular or pseudo-random.

[0021] Alternatively, the transmitted optical signal can be one with a modulation frequency f mod IR light pulse trains, and at the same frequency f mod Image sensor pixels are switched between (at least) two light receivers. As a result, each pixel outputs two pixel values. The sum of these values ​​is the pixel's total intensity, and the relationship between these values ​​indicates the time-of-flight of the IR light pulse, which is in turn proportional to distance. A precise distance metric can be determined for any given pixel based on these two pixel values. Frequency f mod It can be approximately tens of MHz, preferably greater than 50 MHz, and even more preferably 100 MHz or greater.

[0022] It is worth noting that effectively utilizing depth sensing technology by limiting the computational workload to a small set of points within the field of view can also be advantageous in other situations. For example, where a first distance metric to a set of points has already been obtained in one manner (e.g., by estimating distance in a manner commonly used in face tracking applications), a second distance metric to the same set of points can serve as a redundant confirmation that the first distance metric is actually correct, or at least not obviously incorrect. Such confirmation allows the distance to be used for safety-critical actions, such as deactivating an airbag when the driver is too close. Such applications are not necessarily limited to the aspects presented above in this invention, but may be considered relevant to a separate inventive concept. Brief description of the attached diagram The invention will be described in more detail with reference to the accompanying drawings, which illustrate a currently preferred embodiment of the invention.

[0024] Figure 1 The image schematically shows a camera mounted on the dashboard of a vehicle.

[0025] Figure 2 An imaging system according to an embodiment of the present invention is shown.

[0026] Figure 3 It shows Figure 2 The processing unit in the process.

[0027] Figure 4 This is a flowchart of a method according to an embodiment of the present invention.

[0028] Figure 5aA set of anatomical landmarks detected in an image of the face is shown.

[0029] Figure 5b It shows the basis Figure 5a 3D model of the points detected in the image.

[0030] Detailed Description of Preferred Embodiments Embodiments of the invention will now be discussed with reference to an imaging system 10 having a camera 4 installed in the cab of a vehicle. The imaging system 10 may be part of, for example, a driver monitoring system (DMS) or a cab monitoring system (CMS).

[0031] Figure 1 The diagram shows a driver 1 seated in the driver's seat 2 of a vehicle 3. A camera 4 is mounted in front of the driver 1, here on the dashboard 5. Alternatively, the camera 4 can be mounted on the steering column 6, fixed to the ceiling 7, mounted on the rearview mirror 8, or in any other location suitable for a particular application. Regardless of the mounting, the camera 4 should have a clear view of at least the driver 1's head 9, and possibly a clear view of the driver 1's entire upper body. The camera 4 is typically positioned at a distance of 40 cm to 120 cm from the driver 1.

[0032] refer to Figure 2 The components of the imaging system 10 are shown in more detail.

[0033] The camera 4 here includes a pixelated image sensor 11, such as a CMOS image sensor, arranged behind suitable optics 12 and filters 13. The optics 12 are configured to project incident light onto the image plane of the image sensor 11.

[0034] System 10 also includes at least one light source 15, which is arranged relative to camera 4 in a known physical relationship. Light source 15 is typically configured to emit light outside the visible light range (such as infrared (IR) or near-infrared (NIR)). Light source 15 can be a solid-state light source, such as an LED or VCSEL. In the illustrated example, light source 15 is configured to emit light with a spectrum focused in a 50 nm band centered at 850 nm or 940 nm (NIR). Filter 13 can be an optical bandpass filter, such as an interferometer filter, configured to have a passband substantially corresponding to the light emission spectrum of light source 15. Therefore, in the example above, filter 13 should have a passband centered at 850 nm or 940 nm (e.g., 825 nm - 875 nm or 915 nm - 965 nm).

[0035] The driver 16 is connected to the camera 4 and the light source 15, and is configured to control the light source and the camera in a synchronous manner. Typically, the light source 15 operates with a given duty cycle, and the sensor 11 is controlled to acquire images in sync with the light pulses from the light source 15.

[0036] The system also includes a processing unit 17 connected to receive sensor data from the sensor 11 and process the data to generate a 3D model of an object, in this case, the head of the driver 1 or possibly the upper body of the driver 1.

[0037] Figure 2 System 10 has many different applications, including, for example, car applications that track the driver’s eyes for safety reasons, as well as various human-machine interfaces.

[0038] like Figure 3 As shown in more detail, processing unit 17 includes frame buffer 21, which is configured to store image data in consecutive image frames. The frame rate is typically 50Hz (one frame every 20 ms), but other frame rates may be considered.

[0039] A frame buffer is connected to a feature recognizer 22, which is configured to identify 2D anatomical feature points in each image frame. In the case of a head or face, examples of useful 2D feature points could be the corners of the eyes, corners of the mouth, nostrils, earlobes, etc. Such feature points are sometimes referred to as "markers".

[0040] The 3D model generator 23 is configured to receive 2D anatomical feature points and generate a 3D model of the user's head or upper body (e.g., torso and arms).

[0041] Furthermore, processing unit 17 includes a distance estimator 24 configured to estimate the distance between camera 4 and the object based on image frames. The estimated distance can be determined in various ways using known camera characteristics (such as focal length and pixel density) and known statistical characteristics of the object. In the case of the driver's head, statistical characteristics may include average pupil size and average head size.

[0042] For example, a distance estimator can detect the pupil diameter in an image frame. Based on the expected (average) pupil diameter, focal length, and pixel density, the distance to the pupil can be estimated.

[0043] Finally, the processing unit 17 includes a precision distance detector 25, which is configured to determine a set of precise distance measures between the camera 4 and a set of points of interest on the object (head 9). Unlike conventional depth image sensors, it is not necessary to determine a complete depth image, but only to determine precise distance measures. Finite setThis finite set is used to calibrate the 3D model. Therefore, when determining the precise distance metric, only a subset of pixels in the image frame associated with the point of interest needs to be considered. The point for which the precise distance metric is determined can completely or partially overlap with a set of 2D anatomical feature points.

[0044] There are different ways to determine the precise distance metric, and two examples are provided below.

[0045] In one embodiment, in addition to "flood" illumination, light source 15 is also capable of emitting structured light, such as a speckle pattern. This can be achieved by selectively providing a structured filter in front of a light-emitting device such as an LED or VCSEL. Precision distance detector 25 is configured to determine the distance to any point of interest in the acquired image frame by locating specks around the point of interest, comparing their distances, and associating them with a known reference. In short, the distance between two adjacent points will increase with increasing distance from the light source. Note that camera 4 has a known physical relationship with respect to light source 15. The details of structured light distance measurement are well known to those skilled in the art.

[0046] In another embodiment, system 10 is capable of performing time-of-flight detection. In a particular example, light source 15 is controlled by driver 16 to emit high-frequency modulated light, for example, modulation frequency f. mod This consists of IR light pulse trains of approximately tens of MHz (e.g., 10 MHz–100 MHz). The pulse duration can be half the cycle (50% duty cycle), but can also be shorter. The light source can be an LED or a VCSEL modulated by driver 16. LEDs are cost-effective and can provide switching frequencies of at least up to 40 MHz. VCSELs can provide switching frequencies up to 100 MHz.

[0047] Furthermore, each pixel of the light sensor 11 includes two light receivers (e.g., capacitors) and a high-frequency switch that alternates between the two light receivers at a frequency corresponding to the modulation frequency. In other words, when a pulse is emitted, the first receiver is activated while the second receiver is deactivated. After a time corresponding to the pulse duration (typically one half-period), the first receiver is deactivated and the second receiver is activated. As a result, a portion of the reflected light is received by the first receiver, while another portion is received by the second receiver. The flight time of the emitted pulse determines the amount of light received by the first and second receivers, respectively. Pixel values ​​from the two sets of receivers are output from the sensor.

[0048] Alternatively, the sensor may have four different receivers for each sensor, with their activity periods offset by only a quarter of a period. Such a sensor would output four pixel values ​​for each pixel.

[0049] Frame buffer 21 buffers two (or four) sub-images per frame; one sub-image contains pixel values ​​from a first set of receivers, and the other sub-image contains pixel values ​​from a second set of receivers. The sum of these sub-images is provided to feature recognizer 22 as an image frame to be used for 2D feature point recognition and 3D model generation. Precise distance detector 25 is connected to receive the two sub-image streams and determines the distance to a particular pixel based on the relationship between the two pixel values ​​of that particular pixel. More specifically, the relationship between the pixel values ​​indicates a phase shift, which in turn indicates the distance.

[0050] The processing unit 17 and its components 21-25 can be implemented entirely or partially in software, which is stored in memory and executed by a processor. It can also be partially implemented in hardware. Furthermore, the processing unit 17 can be distributed across more than one physical entity. For example, a frame buffer can be incorporated into the sensor 11.

[0051] Figure 4 The process executed by processor 17 or 117 is shown.

[0052] First, in step S1, the light source 15 is controlled by the controller 16 to illuminate the field of view of the camera 4 with an IR light emission signal configured to enable distance detection. This field of view includes the user 1's head 9 (and possibly the entire upper body). As described above, the emission signal can be a structured light signal (e.g., a speckle pattern) or it can be a high-frequency modulated light signal.

[0053] In the case of a structured light signal (with speckles), the controller 16 can control the light source 15 to alternately emit structured light signals and solid light signals (“floodlight” rays). This makes it possible to acquire images without any speckle patterns for normal image processing.

[0054] In step S2, the reflection of the transmitted signal is received by the pixelated sensor 11.

[0055] In step S3, a stream of image frames is provided by frame buffer 21. In the case of structured light signals, the stream of frames will consist of a mixed sequence of patterned and unpatterned image frames. In the case of high-frequency modulated light signals, the stream of image frames will consist of two sub-images and a “total” frame equal to the sum of the two sub-images.

[0056] Then, in step S4, a set of 2D anatomical feature points are detected in each image, see [link to relevant documentation]. Figure 5aAnatomical feature points were selected as points that are easy and reliably detectable, such as the corners of the eyes and the ala of the nose. Not all feature points may be detectable in all images (e.g., due to viewpoint), but each 2D feature point should exist in more than one image to be useful in the next step.

[0057] In step S5, a 3D model of the head or upper body is generated using the stream of 2D image frames and the 2D feature points identified in each frame. In principle, the 3D model is simply a set of relative 3D coordinates for each identified feature point. One way to obtain these coordinates is to assume an approximate model (e.g., based on general features of the face or body) that includes a set of nodes connected by edges (see [link to approximation]). Figure 5b At least some nodes of the model should correspond to 2D feature points identified in the 2D image. By tracking 2D feature points in successive images and adjusting the model (i.e., the distance between nodes), the approximate model can be aligned with the actual face in the image.

[0058] The number of feature points tracked will depend on the application, but typically ranges from 3 to 25. Of course, not all feature points are available in every frame. For example, the feature point of an ear might be invisible when the user looks to the side. Furthermore, some features may be temporarily occluded by a hand or object.

[0059] In the absence of any distance information, the 3D model is relative, meaning it is not scaled proportionally. To scale the 3D model, the distance between the camera and the object (head 9) needs to be determined. For this purpose, in step S6, a set of estimated distance metrics are used to scale the model, each estimated distance metric representing the distance between the sensor 11 and a point or portion of the object (head 9). The estimated distance metrics can be obtained by comparing the detected characteristics of features identified in the image frame with the statistical characteristics of the features, and using knowledge about camera characteristics. In the case of the head, the relevant feature could be the pupil diameter or head size, the statistical average of which is known. For example, points on either side of the pupil can be identified, and the distance between the points can be compared to a standard pupil diameter. The distance to the pupil can be estimated by correlating the detected width (in pixels) with the pupil diameter, and based on knowledge about the camera optics (e.g., focal length) and the image sensor (e.g., pixel density).

[0060] In step S7, the precise distance detector 25 determines a set of precise distance metrics to a set of points of interest. The selected points are only a small subset of all points whose precise distances can be determined. According to an implementation, only a few percent of all detectable points are selected.

[0061] As discussed above, in the case of structured light detection, the precise distance is determined by identifying spots in the image frames received from frame buffer 21 and calculating the precise distance based on the position of the spots.

[0062] In the case of time-of-flight detection, the precise distance to a specific pixel is determined by calculating the phase difference based on the two pixel values ​​used for pixel blending, and converting the phase difference into distance based on the modulation frequency and the speed of light.

[0063] It is important to note that the number of points for obtaining accurate distances is significantly less than the number of pixels (in the case of time-of-flight detection) or significantly less than the number of spots (in the case of structured light).

[0064] In the case of structured light, only a limited number of light spots need to be identified and processed. In the case of time-of-flight detection, only a limited number of pixels need to be processed. This significantly reduces the required computational power.

[0065] In both structured light and time-of-flight detection examples, accurate distance measurements are susceptible to ambiguity caused by the periodicity of the measurement methods. For instance, in the case of regular structured light, different light spots will appear at the same location at different distances. In the case of pseudo-random structured light, a spot may be mistaken for an adjacent spot. Furthermore, in the case of time-of-flight detection, the detected phase difference (and associated distance) will vary periodically in multiples of 2π radians.

[0066] Therefore, step S7 preferably involves using the estimated distance metric obtained in step S5 to resolve ambiguities in the precise distance metric. The estimated distance metric can be used to eliminate other (and erroneous) distance metrics. For example, if a detected blob indicates a distance significantly deviating from the estimated distance, it can be assumed that the detected blob is the "next" blob rather than a neighboring blob. Similarly, if a time-of-flight measurement indicates a distance metric significantly deviating from the estimated distance, it can be assumed that the detected phase has a deviation of 2π times.

[0067] Finally, in step S8, the 3D model is calibrated using a precise distance metric to obtain a calibrated 3D model. CPUs 17 and 117 can now use this calibrated 3D model to perform further image analysis, such as head tracking and / or eye tracking.

[0068] In the example shown, the model is first scaled using an estimated distance metric, and then calibrated using an accurate distance metric. Note that "scaling" is essentially the initial calibration. In other words, the calibration in step S8 does not require the scaling in step S6. If the 3D model had not been scaled previously (i.e., it was still a relative model), the calibration in step S8 would be used to scale the model.

[0069] The processing in steps S7 and S8 does not necessarily need to be performed for every frame in the stream. Instead, it may be advantageous to determine the precise distance and calibrate the 3D model only at regular intervals (e.g., every hundred frames in the stream). The sparser the calibration, the less computational power is required. In the case of structured light, this means that the structured light signal only needs to be emitted occasionally (e.g., every hundred frames). In the case of time-of-flight detection, phase shift and distance processing only needs to be performed occasionally (e.g., every hundred frames).

[0070] In the example above, the estimated distance metric is determined more frequently (e.g., for each frame), and the precise distance metric is determined less frequently. However, if sufficient processing power is available, an alternative approach could be to determine the precise distance metric frequently enough that the estimated distance metric is unnecessary. For example, step S7, which determines the precise distance metric, and step S8, which scales / calibrates the 3D model, could be performed for each frame or every other frame. In this case, step S6 could be omitted.

[0071] Optionally, CPUs 17 and 117 can be configured to determine the amount of movement (i.e., change) between two consecutive frames and compare it to a predefined threshold. Then, CPUs 17 and 117 can only be activated if the threshold is exceeded. Figure 3 The process in question. If there is little or no movement, the distance is unlikely to have changed, and calibration is unnecessary.

[0072] Those skilled in the art will recognize that the present invention is by no means limited to the embodiments described above. Rather, many modifications and variations are possible within the scope of the appended claims. For example, for time-of-flight detection, there are different alternatives besides the high-frequency modulated pulse method disclosed herein.

Claims

1. A method for generating a scaled 3D model of the head or upper body of a driver of a vehicle located within the field of view of an imaging system (10), comprising: The field of view is illuminated with an infrared light signal (step S1), and the reflection of the infrared light signal is detected in a pixelated image sensor (step S2), wherein the light signal is configured to enable distance detection of points in the field of view. A stream of image frames is acquired from the pixelated image sensor (step S3), wherein the image includes a set of points to which the distance is detectable; Identify (step S4) a set of 2D anatomical feature points in the image frame; The 3D model of the head or upper body is generated (step S5) based on the stream of the image frames and the set of 2D anatomical features in each image frame. Select a subset of points from the set of points; Based on the reflection of the infrared light signal received by a subset of pixels from the pixelated image sensor, a set of precise distance metrics is determined (step S7) to a subset of points in each image frame, the subset of pixels located around each selected point; and The 3D model is calibrated based on the precise distance metric (step S8).

2. The method of claim 1, further comprising scaling the 3D model to obtain a scaled 3D model using one or more estimated distances between the image sensor and one or more portions of the object, the estimated distances being determined based on known characteristics of the image sensor and statistical information about the object.

3. The method of claim 2, further comprising using an estimated distance metric to eliminate ambiguity in the precise distance metric.

4. The method according to claim 2 or 3, wherein, The step of scaling the model using estimated distance metrics is performed more frequently than the step of determining a precise set of distance metrics.

5. The method according to claim 4, wherein, The step of determining a set of precise distance metrics is performed at a frequency lower than the frame rate of the image frame stream.

6. The method according to claim 5, further comprising: Detect the amount of change between the most recent image frame and past image frames; The change is compared with a predefined threshold. and In response to detecting that the amount of change exceeds the threshold, the step of determining a set of precise distance metrics is performed.

7. The method according to any one of the preceding claims, wherein, The set of selected points targeted by the precise distance measurement at least partially overlaps with the set of 2D anatomical feature points.

8. The method according to any one of the preceding claims, wherein, The optical signal includes a structured pattern of IR light spots, and wherein the set of precise distance metrics is determined by locating the reflection of the IR light spots in a portion of an image frame corresponding to the subset of pixels in the image frame.

9. The method according to claim 8, wherein, The pattern is a pseudo-random pattern.

10. The method according to any one of claims 1-9, wherein, The image sensor's pixels have at least two light receivers, and the light signal has a modulation frequency f. mod The method further includes: a high-frequency train of IR optical pulses, wherein the method further includes: At the same frequency f mod Switching between the at least two optical receivers such that each pixel outputs at least two pixel values ​​per frame, wherein the relationship between the pixel values ​​indicates the time of flight of the IR light pulse.

11. An imaging system (10) for generating a scaled 3D model of the head or upper body of a driver of a vehicle located within the field of view of the imaging system (10), the imaging system (10) comprising: A light source (15) is used to illuminate the field of view using infrared light signals; A pixelated image sensor (11) is used to detect the reflection of the infrared light signal, wherein the light signal is configured to enable distance detection of points in the field of view; Processing circuit (17), which is configured to: A stream of image frames is acquired from the pixelated image sensor, wherein the image comprises a set of points to which the distance is detectable; Identify a set of 2D anatomical feature points in the image frame; A 3D model of the head or upper body is generated based on the stream of the image frames and the set of 2D anatomical features in each image frame. Select a subset of points from the set of points; Based on the reflection of the infrared light signal received by a subset of pixels of the pixelated image sensor, a set of precise distance metrics to a selected point in each image frame is determined, the subset of pixels located around each selected point; and The 3D model is calibrated based on the precise distance metric.

12. A computer program product comprising a computer program code portion configured to perform the method according to any one of claims 1-10 when executed on a computer processor connected to an IR light source and a pixelated image sensor.