You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/components/nodes/color_camera.rst
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,13 +69,12 @@ For IMX378 (12MP), the **post-processing** works like this:
69
69
│ ISP ├────────────────►│ video ├───────────────►│ preview │
70
70
└─────┘ max 3840x2160 └─────────┘ and cropping └──────────┘
71
71
72
-
If resolution was set to 12MP, and we were to use ``video``, we'd get a 4K frame (3840x2160) cropped from the center of the 12MP frame.
72
+
If the resolution is set to 12MP and video mode is used, a 4K frame (3840x2160) will be cropped from the center of the 12MP frame.
73
73
74
74
Full FOV
75
75
########
76
76
77
-
Some sensors (let's take IXM378 for an example) will, by default, have 1080P resolution set, which is a crop from the full sensor resolution.
78
-
You can print sensor features to see how FOV is affected by the selected sensor resolution:
77
+
Some sensors, such as the IXM378, default to a 1080P resolution, which is a crop from the full sensor resolution. You can print sensor features to see how the field of view (FOV) is affected by the selected sensor resolution:
79
78
80
79
.. code-block:: python
81
80
@@ -104,8 +103,8 @@ You can print sensor features to see how FOV is affected by the selected sensor
Copy file name to clipboardExpand all lines: docs/source/components/nodes/tof.rst
+40-9Lines changed: 40 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,17 +61,40 @@ In :ref:`ToF depth` example we allow users to quickly configure ToF settings. Th
61
61
62
62
And these settings are up to the user:
63
63
64
-
- Optical Correction: It's a process that corrects the optical effect (On -> ToF returns distance represented by Green Line), so it matches :ref:`StereoDepth` depth reporting. It does rectification and distance to depth conversion (Z-map).
64
+
(level+1)*1.5m + phaseUnwrapErrorThreshold/2
65
+
- Optical Correction: It's a process that corrects the optical effect. When enabled, the ToF returns depth map (represented by Green Line on graph below) instead of distance, so it matches :ref:`StereoDepth` depth reporting. It does rectification and distance to depth conversion (Z-map).
65
66
- Phase Unwrapping - Process that corrects the phase wrapping effect of the ToF sensor. You can set it to [0..5 are optimized]. The higher the number, the longer the ToF range, but it also increases the noise.
66
-
- `0` - Disabled.
67
-
- `1` - Up to 1.5 meters
68
-
- `2` - Up to 3 meters
69
-
- `3` - Up to 4.5 meters
70
-
- `4` - Up to 6 meters
71
-
- `5` - Up to 7.5 meters (not recommended for most applications)
67
+
- `0` - Disabled, up to ~1.5 meters
68
+
- `1` - Up to ~3 meters
69
+
- `2` - Up to ~4.5 meters
70
+
- `3` - Up to ~6 meters
71
+
- `4` - Up to ~7.5 meters
72
+
- Burst mode: When enabled, ToF node won't reuse frames, as shown on the graph below. It's related to post-processing of the ToF frames, not the actual sensor/projector. It's disabled by default.
73
+
- Phase shuffle Temporal filter: Averages shuffled and non-shuffled frames of the same modulation frequency to reduce noise. It's enabled by default. You can disable it to reduce :ref:`ToF motion blur` and system load.
If the time it takes for the light to travel from ToF sensor and back exceeds the period of the emitted wave (1.5m or 1.8m), the resulting measurement will "wrap" back to a lower value. This is called phase wrapping.
83
+
It's similar to how a clock resets after 12 hours. Phase unwrapping is possible as our ToF has two different modulation frequencies (80Mhz and 100MHz).
84
+
85
+
Phase unwrapping aims to correct this by allowing the sensor to interpret longer distances without confusion. It uses algorithms to keep track of how many cycles (round trips of the wave) have occurred,
86
+
thus correcting the "wrapped" phases. The downside is that the more cycles the sensor has to keep track of, the more noise it introduces into the measurement.
87
+
88
+
ToF motion blur
89
+
###############
90
+
91
+
To reduce motion blur, we recommend these settings:
92
+
93
+
- Increase camera FPS. It goes up to 160 FPS, which causes frame capture to be the fastest (6.25ms between frames). This will reduce motion blur as ToF combines multiple frames to get the depth. Note that 160FPS will increase system load significantly (see :ref:`Debugging <Debugging DepthAI pipeline>`). Note also that higher FPS -> lower exposure times, which can increase noise.
94
+
- Disable phase shuffle temporal filter. This will introduce more noise.
95
+
- Disable phase unwrapping. This will reduce max distance to 1.5 meters, so about 1 cubic meter of space will be visible.
96
+
- Enable burst mode. This is irrelevant if shuffle filter and phase unwrapping are disabled (see diagram above). When enabled, ToF node won't reuse frames (lower FPS).
97
+
75
98
Max distance
76
99
############
77
100
@@ -84,10 +107,10 @@ Maximum ToF distance depends on the phase unwrapping level and modulation freque
84
107
c & = 299792458.0\quad\text{//! speed of light in m/s} \\
85
108
MAX\_80MHZ\_MM & = \frac{c}{80000000\times2} \times1000\quad\text{//! convert speed of light to mm/160ns} \\
MAX\_DIST\_80MHZ & = 1874\times(\text{phaseUnwrappingLevel} + 1) \quad\text{//! in mm for 80 MHz} \\
110
+
MAX\_DIST\_80MHZ & = (\text{phaseUnwrappingLevel} + 1) \times1.5\times1000 + \frac{\text{phaseUnwrapErrorThreshold}}{2} \quad\text{//! corrected formula in mm for 80 MHz} \\
88
111
MAX\_100MHZ\_MM & = \frac{c}{100000000\times2} \times1000\quad\text{//! convert speed of light to mm/200ns} \\
MAX\_DIST\_100MHZ & = 1499\times(\text{phaseUnwrappingLevel} + 1) \quad\text{//! in mm for 100 MHz}
113
+
MAX\_DIST\_100MHZ & = (\text{phaseUnwrappingLevel} + 1) \times1.5\times1000 + \frac{\text{phaseUnwrapErrorThreshold}}{2} \quad\text{//! corrected formula in mm for 100 MHz} \\
Copy file name to clipboardExpand all lines: docs/source/samples/ToF/tof_depth.rst
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,12 +22,12 @@ With keyboard you can configure ToF settings:
22
22
- Temperature Correction: Turn on/off with `t`. It's a process that corrects the temperature effect of the ToF sensor. Should be enabled.
23
23
- Optical Correction: Turn on/off with `o`. It's a process that corrects the optical effect (On -> ToF returns distance represented by Green Line), so it matches stereo depth reporting.
24
24
- Phase Unwrapping - Process that corrects the phase wrapping effect of the ToF sensor. The higher the number, the longer the ToF range, but it also increases the noise.
25
-
- `0` - Disabled.
26
-
- `1` - Up to 1.5 meters
27
-
- `2` - Up to 3 meters
28
-
- `3` - Up to 4.5 meters
29
-
- `4` - Up to 6 meters
30
-
- `5` - Up to 6 meters
25
+
- `0` - Disabled, up to ~1.5 meters
26
+
- `1` - Up to ~3 meters
27
+
- `2` - Up to ~4.5 meters
28
+
- `3` - Up to ~6 meters
29
+
- `4` - Up to ~7.5 meters
30
+
- `5` - Up to ~9 meters (increased noise - not recommended for most applications)
0 commit comments