Skip to content

Commit 12f1a79

Browse files
authored
Merge pull request #895 from luxonis/latency_update
Update low latency docs, added usb comparisons
2 parents 125cbfe + a4c0d1a commit 12f1a79

File tree

1 file changed

+23
-8
lines changed

1 file changed

+23
-8
lines changed

docs/source/tutorials/low-latency.rst

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ Low Latency
44
These tables show what performance you can expect from **USB 3.2** Gen 1 (5 Gbps) connection with an OAK camera. XLink chunking was
55
disabled for these tests (:code:`pipeline.setXLinkChunkSize(0)`). For an example code, see :ref:`Latency measurement`.
66

7-
.. list-table::
7+
.. list-table:: USB 5gbps latency
88
:header-rows: 1
99

1010
* - What
1111
- Resolution
1212
- FPS
1313
- FPS set
14-
- Time-to-Host [ms]
14+
- Latency [ms]
1515
- Bandwidth
1616
- Histogram
1717
* - Color (isp)
@@ -28,6 +28,13 @@ disabled for these tests (:code:`pipeline.setXLinkChunkSize(0)`). For an example
2828
- 150
2929
- 2.8 Gbps
3030
- `link <https://user-images.githubusercontent.com/18037362/162675403-f3c5a4c3-1f7d-4acc-a5d5-f5aecff5a66a.png>`__
31+
* - Color (isp)
32+
- 4K
33+
- 26
34+
- 26
35+
- 83 (Std: 3.6)
36+
- 2.6 Gbps
37+
- /
3138
* - Mono
3239
- 720P/800P
3340
- 120
@@ -43,9 +50,9 @@ disabled for these tests (:code:`pipeline.setXLinkChunkSize(0)`). For an example
4350
- 246 Mbps
4451
- `link <https://user-images.githubusercontent.com/18037362/162675393-e3fb08fb-0f17-49d0-85d0-31ae7b5af0f9.png>`__
4552

46-
Below are the same tests, but with **OAK PoE** camera, which uses Gigabit ethernet link. The camera was connected directly to the computer,
53+
Below are the same tests, but also with **OAK PoE** camera, which uses Gigabit ethernet link. The camera was connected directly to the computer,
4754
without any switches or routers in between. Power was supplied via M8 connector. `oak_bandwidth_test.py <https://github.com/luxonis/depthai-experiments/tree/master/random-scripts#oak-bandwidth-test>`__ results: 797 mbps downlink, 264 mbps uplink.
48-
`oak_latency_test.py <https://github.com/luxonis/depthai-experiments/tree/master/random-scripts#oak-latency-test>`__ results: Average: 5.2 ms, Std: 6.2
55+
`oak_latency_test.py <https://github.com/luxonis/depthai-experiments/tree/master/random-scripts#oak-latency-test>`__ results: Average: 5.2 ms, Std: 6.2.
4956

5057
.. list-table::
5158
:header-rows: 1
@@ -54,41 +61,49 @@ without any switches or routers in between. Power was supplied via M8 connector.
5461
- Resolution
5562
- FPS
5663
- FPS set
57-
- Time-to-Host [ms]
64+
- PoE Latency [ms]
65+
- USB Latency [ms]
5866
- Bandwidth
5967
* - Color (isp)
6068
- 1080P
6169
- 25
6270
- 25
6371
- 51
72+
- 33 Std: 0.8
6473
- 622 Mbps
6574
* - Color (isp)
6675
- 4K
6776
- 8
6877
- 8
6978
- 148
79+
- 80 Std: 1.2
7080
- 530 Mbps
7181
* - Color (isp)
7282
- 4K
7383
- 8.5
7484
- 10
7585
- 530
86+
- 80 Std: 1.3
7687
- 663 Mbps
7788
* - Mono
7889
- 400P
7990
- 90
8091
- 90
81-
- Avrg: 12 (Std: 5.0)
92+
- 12 Std: 5.0
93+
- 8 Std: 0.47
8294
- 184 Mbps
8395
* - Mono
8496
- 400P
8597
- 110
8698
- 110
87-
- Avrg: 16 (Std: 9.4)
99+
- 16 Std: 9.4
100+
- 8 Std: 0.45
88101
- 225 Mbps
89102

103+
We set lower FPS for the POE measurements due to bandwidth constraints. For example, 4K 8 FPS had 150ms latency, while
104+
4K 10FPS had 530ms latency, as link was saturated.
90105

91-
- **Time-to-Host** is measured time between frame timestamp (:code:`imgFrame.getTimestamp()`) and host timestamp when the frame is received (:code:`dai.Clock.now()`).
106+
- **Latency** is measured time between frame timestamp (:code:`imgFrame.getTimestamp()`) and host timestamp when the frame is received (:code:`dai.Clock.now()`).
92107
- **Histogram** shows how much Time-to-Host varies frame to frame. Y axis represents number of frame that occurred at that time while the X axis represents microseconds.
93108
- **Bandwidth** is calculated bandwidth required to stream specified frames at specified FPS.
94109

0 commit comments

Comments
 (0)