Skip to content

Commit d99fa42

Browse files
authored
Merge pull request #240 from luxonis/code_samples_populate
populated code samples docs page
2 parents 7e242f9 + 7a021e8 commit d99fa42

File tree

5 files changed

+43
-52
lines changed

5 files changed

+43
-52
lines changed

docs/source/samples/06_rgb_full_resolution_saver.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
06 - RGB Full Resolution Saver
22
==============================
33

4-
This example does its best to save full-resolution 3840x2160 .png files as fast at it can from the
4+
This example does its best to save full-resolution 3840x2160 .jpeg files as fast at it can from the
55
RGB sensor. It serves as an example of recording high resolution to disk for the purposes of
66
high-resolution ground-truth data. We also recently added the options to save isp - YUV420p
77
uncompressed frames, processed by ISP, and raw - BayerRG (R_Gr_Gb_B), as read from sensor,
88
10-bit packed. See here for the pull request on this capability.
99

10-
Be careful, this example saves full resolution .png pictures to your host storage. So if you leave
10+
Be careful, this example saves full resolution .jpeg pictures to your host storage. So if you leave
1111
it running, you could fill up your storage on your host.
1212

1313
Demo

docs/source/samples/14_color_camera_control.rst

Lines changed: 0 additions & 42 deletions
This file was deleted.

docs/source/samples/21_mobilenet_decoding_on_device.rst

Lines changed: 0 additions & 6 deletions
This file was deleted.

docs/source/tutorials/code_samples.rst

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,43 @@ Code samples
99

1010
../samples/*
1111

12-
Code samples are used for automated testing.
12+
Code samples are used for automated testing. They are also a great starting point for the gen2 API.
13+
14+
.. rubric:: List of code samples
15+
16+
- :ref:`01 - RGB Preview` - Displays a small preview of the RGB camera
17+
- :ref:`02 - Mono Preview` - Displays right/left mono cameras
18+
- :ref:`03 - Depth Preview` - Displays colorized stereo disparity
19+
- :ref:`04 - RGB Encoding` - Encodes RGB (1080P, 30FPS) into :code:`.h265` and saves it on the host
20+
- :ref:`05 - RGB & Mono Encoding`- Encodes RGB (1080P, 30FPS) and both mono streams (720P, 30FPS) into :code:`.h265`/:code:`.h264` and saves them on the host
21+
- :ref:`06 - RGB Full Resolution Saver` - Saves full resolution RGB images (4k) on the host (:code:`.jpeg`)
22+
- :ref:`07 - Mono Full Resolution Saver` - Saves mono (720P) images to the host (:code:`.png`)
23+
- :ref:`08 - RGB & MobilenetSSD` - Runs MobileNetSSD on RGB frames and displays detections on the frame
24+
- :ref:`09 - Mono & MobilenetSSD` - Runs MobileNetSSD on mono frames and displays detections on the frame
25+
- :ref:`10 - Mono & MobilenetSSD & Depth` - Runs MobileNetSSD on mono frames and displays detections on mono/disparity frames
26+
- :ref:`11 - RGB & Encoding & Mono & MobilenetSSD` - Runs MobileNetSSD on mono frames and displays detections on the frame + encodes RGB to :code:`.h265`
27+
- :ref:`12 - RGB Encoding & Mono with MobilenetSSD & Depth` - A combination of **04** and **10** code samples
28+
- :ref:`13 - Encoding Max Limit` - Encodes RGB (4k 25FPS) and both mono streams (720P, 25FPS) into :code:`.h265`/:code:`.h264` and saves them on the host
29+
- :ref:`14.1 - Color Camera Control` - Demonstrates how to control the color camera (crop, focus, exposure, sensitivity) from the host
30+
- :ref:`14.2 - Mono Camera Control` - Demonstrates how to control the mono camera (crop, exposure, sensitivity) from the host
31+
- :ref:`14.3 - Depth Crop Control` - Demonstrates how to control cropping of depth frames from the host
32+
- :ref:`15 - 4K RGB MobileNetSSD` - Runs MobileNetSSD on RGB frames and displays detections on both preview and 4k frames
33+
- :ref:`16 - Device Queue Event` - Demonstrates how to use device queue events
34+
- :ref:`17 - Video & MobilenetSSD` - Runs MobileNetSSD on the video from the host
35+
- :ref:`18 - RGB Encoding with MobilenetSSD` - Runs MobileNetSSD on RGB frames and encodes FUll-HD RGB into :code:`.h265` and saves it on the host
36+
- :ref:`19 - Mono Camera Control` - Demonstrates how to control the mono camera (exposure, sensitivity) from the host
37+
- :ref:`20 - Color Rotate Warp` - Demonstrates how to rotate, mirror, flip or perform perspective transform on a frame
38+
- :ref:`22.1 - RGB & TinyYoloV3 decoding on device` - Runs YoloV3 on RGB frames and displays detections on the frame
39+
- :ref:`22.2 - RGB & TinyYoloV4 decoding on device` - Runs YoloV4 on RGB frames and displays detections on the frame
40+
- :ref:`23 - Auto Exposure on ROI` - Demonstrates how to use auto exposure based on the selected ROI
41+
- :ref:`24 - OpenCV support` - Demonstrates how to retrieve an image frame as an OpenCV frame
42+
- :ref:`25 - System information` - Displays device system information (memory/cpu usage, temperature)
43+
- :ref:`26.1 - RGB & MobilenetSSD with spatial data` - Displays RGB frames with MobileNet detections and spatial coordinates on them
44+
- :ref:`26.2 - Mono & MobilenetSSD with spatial data` - Displays mono frames with MobileNet detections and spatial coordinates on them
45+
- :ref:`26.3 - RGB & TinyYolo with spatial data`- Displays RGB frames with Yolo detections and spatial coordinates on them
46+
- :ref:`27 - Spatial location calculator` - Demonstrates how to use the spatial location calculator
47+
- :ref:`28 - Camera video high resolution` - Demonstrates how to use the video output of the color camera
48+
- :ref:`29.1 - Object tracker on RGB camera` - Performs object tracking from the color camera
49+
- :ref:`29.2 - Spatial object tracker on RGB camera` - Performs object tracking and also provides spatial coordinates
50+
- :ref:`29.3 - Object tracker on video` - Performs object tracking from the video
51+
- :ref:`30 - Stereo Depth from host` - Generates stereo depth frame from a set of mono images from the host

examples/12_rgb_encoding_mono_mobilenet_depth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def frameNorm(frame, bbox):
110110
videoFile = open('video.h265', 'wb')
111111
cv2.namedWindow("right", cv2.WINDOW_NORMAL)
112112
cv2.namedWindow("manip", cv2.WINDOW_NORMAL)
113-
cv2.namedWindow("depth", cv2.WINDOW_NORMAL)
113+
cv2.namedWindow("disparity", cv2.WINDOW_NORMAL)
114114

115115
while True:
116116
inRight = qRight.tryGet()

0 commit comments

Comments
 (0)