Skip to content

Commit 4c88cc8

Browse files
committed
Added example docs
1 parent a5e40a2 commit 4c88cc8

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
Undistort camera stream
2+
=======================
3+
4+
This example shows how you can use :ref:`Camera` node to undistort wide FOV camera stream. :ref:`Camera` node will automatically undistort ``still``, ``video`` and ``preview`` streams, while ``isp`` stream will be left as is.
5+
6+
Demo
7+
####
8+
9+
.. figure:: https://github.com/luxonis/depthai-python/assets/18037362/936b9ad7-179b-42a5-a6cb-25efdbdf73d9
10+
11+
Left: Camera.isp output. Right: Camera.video (undistorted) output
12+
13+
Setup
14+
#####
15+
16+
.. include:: /includes/install_from_pypi.rst
17+
18+
Source code
19+
###########
20+
21+
.. tabs::
22+
23+
.. tab:: Python
24+
25+
Also `available on GitHub <https://github.com/luxonis/depthai-python/blob/main/examples/Camera/camera_undistort.py>`__
26+
27+
.. literalinclude:: ../../../../examples/Camera/camera_undistort.py
28+
:language: python
29+
:linenos:
30+
31+
.. tab:: C++
32+
33+
Work in progress.
34+
35+
36+
..
37+
Also `available on GitHub <https://github.com/luxonis/depthai-core/blob/main/examples/Camera/camera_undistort.cpp>`__
38+
39+
.. literalinclude:: ../../../../depthai-core/examples/Camera/camera_undistort.cpp
40+
:language: cpp
41+
:linenos:
42+
43+
.. include:: /includes/footer-short.rst

docs/source/tutorials/code_samples.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ are presented with code.
4444
- :ref:`Calibration Reader` - Reads calibration data stored on device over XLink
4545
- :ref:`Calibration Load` - Loads and uses calibration data of version 6 (gen2 calibration data) in a pipeline
4646

47+
48+
.. rubric:: Camera
49+
50+
- :ref:`Undistort camera stream` - Showcases how Camera node undistorts camera streams
51+
4752
.. rubric:: ColorCamera
4853

4954
- :ref:`Auto Exposure on ROI` - Demonstrates how to use auto exposure based on the selected ROI

0 commit comments

Comments
 (0)