@depz/camera-sdk-linux-arm64 0.0.0-stage → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +182 -0
- package/README.md +2 -2
- package/depz-engines/libdepz_engine_mnn.so +0 -0
- package/depz-engines/libdepz_engine_onnx.so +0 -0
- package/depz-engines/libdepz_engine_openvino.so +0 -0
- package/depz-engines/libdepz_engine_rknn.so +0 -0
- package/depz-engines/libdepz_engine_tensorrt.so +0 -0
- package/depz-engines/mnn-3.6.2/LICENSE.txt +201 -0
- package/depz-engines/mnn-3.6.2/libMNN.so +0 -0
- package/depz_node.node +0 -0
- package/doc/EULA +182 -0
- package/doc/LICENSE +202 -0
- package/doc/NOTICE +41 -0
- package/doc/c/api.md +5022 -0
- package/doc/c/clarity/api.md +17 -0
- package/doc/c/clarity/guide.md +73 -0
- package/doc/c/clarity/introduction.md +24 -0
- package/doc/c/guide.md +125 -0
- package/doc/c/intro.md +62 -0
- package/doc/c/minima/api.md +17 -0
- package/doc/c/minima/guide.md +83 -0
- package/doc/c/minima/introduction.md +26 -0
- package/doc/c/odin/api.md +17 -0
- package/doc/c/odin/guide.md +44 -0
- package/doc/c/odin/introduction.md +24 -0
- package/doc/c/odin-mini/api.md +17 -0
- package/doc/c/odin-mini/guide.md +44 -0
- package/doc/c/odin-mini/introduction.md +24 -0
- package/doc/c/varius/api.md +17 -0
- package/doc/c/varius/guide.md +83 -0
- package/doc/c/varius/introduction.md +70 -0
- package/doc/c/varius-v/api.md +17 -0
- package/doc/c/varius-v/guide.md +85 -0
- package/doc/c/varius-v/introduction.md +32 -0
- package/doc/cpp/api.md +1924 -0
- package/doc/cpp/clarity/api.md +14 -0
- package/doc/cpp/clarity/guide.md +73 -0
- package/doc/cpp/clarity/introduction.md +24 -0
- package/doc/cpp/guide.md +88 -0
- package/doc/cpp/intro.md +29 -0
- package/doc/cpp/minima/api.md +14 -0
- package/doc/cpp/minima/guide.md +83 -0
- package/doc/cpp/minima/introduction.md +26 -0
- package/doc/cpp/odin/api.md +14 -0
- package/doc/cpp/odin/guide.md +44 -0
- package/doc/cpp/odin/introduction.md +24 -0
- package/doc/cpp/odin-mini/api.md +14 -0
- package/doc/cpp/odin-mini/guide.md +44 -0
- package/doc/cpp/odin-mini/introduction.md +24 -0
- package/doc/cpp/varius/api.md +14 -0
- package/doc/cpp/varius/guide.md +83 -0
- package/doc/cpp/varius/introduction.md +70 -0
- package/doc/cpp/varius-v/api.md +14 -0
- package/doc/cpp/varius-v/guide.md +85 -0
- package/doc/cpp/varius-v/introduction.md +32 -0
- package/doc/third_party/eigen/COPYING.MPL2 +373 -0
- package/doc/third_party/eigen/COPYING.README +18 -0
- package/doc/third_party/miniz/LICENSE +22 -0
- package/doc/third_party/nlohmann_json/LICENSE.MIT +21 -0
- package/doc/third_party/opencv/SoftFloat-COPYING.txt +36 -0
- package/doc/third_party/opencv/dlpack-LICENSE +201 -0
- package/doc/third_party/opencv/features2d-LICENSE.AKAZE +26 -0
- package/doc/third_party/opencv/features2d-LICENSE.KAZE +26 -0
- package/doc/third_party/opencv/libjpeg-turbo-LICENSE.md +135 -0
- package/doc/third_party/opencv/libjpeg-turbo-README.ijg +260 -0
- package/doc/third_party/opencv/libjpeg-turbo-README.md +375 -0
- package/doc/third_party/opencv/mscr-chi_table_LICENSE.txt +28 -0
- package/doc/third_party/opencv/zlib-LICENSE +22 -0
- package/libdepz.so.1 +0 -0
- package/libdepz_depth.so.1 +0 -0
- package/libdepz_inference.so.1 +0 -0
- package/package.json +28 -4
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<!-- SPDX-License-Identifier: Apache-2.0 -->
|
|
2
|
+
<!-- GENERATED from the SDK's camera catalog. Do not edit. -->
|
|
3
|
+
# DEPZ Clarity — API reference
|
|
4
|
+
|
|
5
|
+
No symbol of the C SDK is specific to the DEPZ Clarity: one camera API serves every family, in the [API reference](../api.md). What sets this family apart is data: its id `"clarity"` (the `camera_family` field of `depz_camera_info_t`), its capture modes and its controls ([guide](guide.md)).
|
|
6
|
+
|
|
7
|
+
The entries that read a family's data:
|
|
8
|
+
|
|
9
|
+
- [`depz_camera_info_t`](../api.md#depz_camera_info_t)
|
|
10
|
+
- [`depz_camera_family_modes_count`](../api.md#depz_camera_family_modes_count)
|
|
11
|
+
- [`depz_camera_family_mode_at`](../api.md#depz_camera_family_mode_at)
|
|
12
|
+
- [`depz_camera_family_mode`](../api.md#depz_camera_family_mode)
|
|
13
|
+
- [`depz_mode_t`](../api.md#depz_mode_t)
|
|
14
|
+
- [`depz_camera_mode_count`](../api.md#depz_camera_mode_count)
|
|
15
|
+
- [`depz_camera_mode_at`](../api.md#depz_camera_mode_at)
|
|
16
|
+
- [`depz_camera_model_t`](../api.md#depz_camera_model_t)
|
|
17
|
+
- [`depz_camera_model_of_serial`](../api.md#depz_camera_model_of_serial)
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
<!-- SPDX-License-Identifier: Apache-2.0 -->
|
|
2
|
+
<!-- GENERATED from the SDK's camera catalog. Do not edit. -->
|
|
3
|
+
# DEPZ Clarity — guide
|
|
4
|
+
|
|
5
|
+
## Capture modes
|
|
6
|
+
|
|
7
|
+
The modes the SDK offers (each the sensor's whole picture, at one scale), by the slug a program, a recording and the viewer name them by. Raw frame: what the camera sends (both eyes side by side); eye: one eye.
|
|
8
|
+
|
|
9
|
+
| Mode | Raw frame | Eye | fps | Format | Geometry | Default |
|
|
10
|
+
|---|---|---|---|---|---|---|
|
|
11
|
+
| `1280x720@30/MJPG/stereo` | 2560×720 | 1280×720 | 30 | MJPG | scale | yes |
|
|
12
|
+
| `1280x720@25/MJPG/stereo` | 2560×720 | 1280×720 | 25 | MJPG | scale | |
|
|
13
|
+
| `1280x720@20/MJPG/stereo` | 2560×720 | 1280×720 | 20 | MJPG | scale | |
|
|
14
|
+
| `1280x720@15/MJPG/stereo` | 2560×720 | 1280×720 | 15 | MJPG | scale | |
|
|
15
|
+
| `1280x720@10/MJPG/stereo` | 2560×720 | 1280×720 | 10 | MJPG | scale | |
|
|
16
|
+
| `1280x720@7.5/MJPG/stereo` | 2560×720 | 1280×720 | 7.5 | MJPG | scale | |
|
|
17
|
+
| `1280x720@5/MJPG/stereo` | 2560×720 | 1280×720 | 5 | MJPG | scale | |
|
|
18
|
+
| `1920x1080@30/MJPG/stereo` | 3840×1080 | 1920×1080 | 30 | MJPG | native | |
|
|
19
|
+
| `1920x1080@25/MJPG/stereo` | 3840×1080 | 1920×1080 | 25 | MJPG | native | |
|
|
20
|
+
| `1920x1080@20/MJPG/stereo` | 3840×1080 | 1920×1080 | 20 | MJPG | native | |
|
|
21
|
+
| `1920x1080@15/MJPG/stereo` | 3840×1080 | 1920×1080 | 15 | MJPG | native | |
|
|
22
|
+
| `1920x1080@10/MJPG/stereo` | 3840×1080 | 1920×1080 | 10 | MJPG | native | |
|
|
23
|
+
| `1920x1080@7.5/MJPG/stereo` | 3840×1080 | 1920×1080 | 7.5 | MJPG | native | |
|
|
24
|
+
| `1920x1080@5/MJPG/stereo` | 3840×1080 | 1920×1080 | 5 | MJPG | native | |
|
|
25
|
+
| `1920x1080@30/MJPG` | 1920×1080 | 1920×1080 | 30 | MJPG | native | |
|
|
26
|
+
| `1920x1080@25/MJPG` | 1920×1080 | 1920×1080 | 25 | MJPG | native | |
|
|
27
|
+
| `1920x1080@20/MJPG` | 1920×1080 | 1920×1080 | 20 | MJPG | native | |
|
|
28
|
+
| `1920x1080@15/MJPG` | 1920×1080 | 1920×1080 | 15 | MJPG | native | |
|
|
29
|
+
| `1920x1080@10/MJPG` | 1920×1080 | 1920×1080 | 10 | MJPG | native | |
|
|
30
|
+
| `1920x1080@7.5/MJPG` | 1920×1080 | 1920×1080 | 7.5 | MJPG | native | |
|
|
31
|
+
| `1920x1080@5/MJPG` | 1920×1080 | 1920×1080 | 5 | MJPG | native | |
|
|
32
|
+
| `1280x720@30/MJPG` | 1280×720 | 1280×720 | 30 | MJPG | scale | |
|
|
33
|
+
| `1280x720@25/MJPG` | 1280×720 | 1280×720 | 25 | MJPG | scale | |
|
|
34
|
+
| `1280x720@20/MJPG` | 1280×720 | 1280×720 | 20 | MJPG | scale | |
|
|
35
|
+
| `1280x720@15/MJPG` | 1280×720 | 1280×720 | 15 | MJPG | scale | |
|
|
36
|
+
| `1280x720@10/MJPG` | 1280×720 | 1280×720 | 10 | MJPG | scale | |
|
|
37
|
+
| `1280x720@7.5/MJPG` | 1280×720 | 1280×720 | 7.5 | MJPG | scale | |
|
|
38
|
+
| `1280x720@5/MJPG` | 1280×720 | 1280×720 | 5 | MJPG | scale | |
|
|
39
|
+
| `1920x1080@2.5/YUYV/stereo` | 3840×1080 | 1920×1080 | 2.5 | YUYV | native | |
|
|
40
|
+
| `1280x720@5/YUYV/stereo` | 2560×720 | 1280×720 | 5 | YUYV | scale | |
|
|
41
|
+
| `1280x720@2.5/YUYV/stereo` | 2560×720 | 1280×720 | 2.5 | YUYV | scale | |
|
|
42
|
+
| `1920x1080@5/YUYV` | 1920×1080 | 1920×1080 | 5 | YUYV | native | |
|
|
43
|
+
| `1920x1080@2.5/YUYV` | 1920×1080 | 1920×1080 | 2.5 | YUYV | native | |
|
|
44
|
+
| `1280x720@7.5/YUYV` | 1280×720 | 1280×720 | 7.5 | YUYV | scale | |
|
|
45
|
+
| `1280x720@5/YUYV` | 1280×720 | 1280×720 | 5 | YUYV | scale | |
|
|
46
|
+
|
|
47
|
+
The firmware also advertises 88 modes the SDK does not offer (a crop of the sensor's picture, or squeezed unevenly): asking for one, or opening a recording made in one, is refused with the error `mode_not_offered`.
|
|
48
|
+
|
|
49
|
+
## Controls
|
|
50
|
+
|
|
51
|
+
| Control | Type | On Windows |
|
|
52
|
+
|---|---|---|
|
|
53
|
+
| `auto_exposure` | enum | yes |
|
|
54
|
+
| `exposure` | int | yes |
|
|
55
|
+
| `gain` | int | yes |
|
|
56
|
+
| `brightness` | int | yes |
|
|
57
|
+
| `contrast` | int | yes |
|
|
58
|
+
| `saturation` | int | yes |
|
|
59
|
+
| `hue` | int | yes |
|
|
60
|
+
| `gamma` | int | yes |
|
|
61
|
+
| `sharpness` | int | yes |
|
|
62
|
+
| `white_balance_auto` | bool | yes |
|
|
63
|
+
| `white_balance` | int | yes |
|
|
64
|
+
| `power_line_frequency` | enum | no |
|
|
65
|
+
| `backlight_compensation` | int | yes |
|
|
66
|
+
|
|
67
|
+
## Calibration
|
|
68
|
+
|
|
69
|
+
The camera stores its calibration for the sensor's 1920×1080 picture per eye; the SDK maps it onto the chosen mode (f' = f / s, c' = (c + 0.5) / s − 0.5).
|
|
70
|
+
|
|
71
|
+
## In C
|
|
72
|
+
|
|
73
|
+
A camera's own modes and controls, and the calls that read them: [API page](api.md).
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<!-- SPDX-License-Identifier: Apache-2.0 -->
|
|
2
|
+
<!-- GENERATED from the SDK's camera catalog. Do not edit. -->
|
|
3
|
+
# DEPZ Clarity — introduction
|
|
4
|
+
|
|
5
|
+
The DEPZ Clarity is a stereo camera: two eyes side by side in one frame, 1920×1080 per eye on the sensor (the size its calibration is for). The catalog has 10 models of it: lenses fisheye, regular, ultra fisheye, ultra wide, wide; baselines 6 cm. Its default capture mode is `1280x720@30/MJPG/stereo`.
|
|
6
|
+
|
|
7
|
+
A camera's serial names its model: the serial prefix below plus exactly 8 characters `A-Z 0-9`. The SDK reads the model from it and refuses a camera without a valid serial.
|
|
8
|
+
|
|
9
|
+
| Serial prefix | Model | Lens | Baseline | USB product id |
|
|
10
|
+
|---|---|---|---|---|
|
|
11
|
+
| `CF` | Clarity Ultra Fisheye Lenses Enclosed | ultra fisheye | 6 cm | `e004` |
|
|
12
|
+
| `CN` | Clarity Regular Lenses Enclosed | regular | 6 cm | `e001` |
|
|
13
|
+
| `CR` | Clarity Wide Lenses Enclosed | wide | 6 cm | `e000` |
|
|
14
|
+
| `CU` | Clarity Fisheye Lenses Enclosed | fisheye | 6 cm | `e003` |
|
|
15
|
+
| `CW` | Clarity Ultra Wide Lenses Enclosed | ultra wide | 6 cm | `e002` |
|
|
16
|
+
| `EF` | Clarity Ultra Fisheye Lenses Module | ultra fisheye | 6 cm | `e009` |
|
|
17
|
+
| `EN` | Clarity Regular Lenses Module | regular | 6 cm | `e006` |
|
|
18
|
+
| `ER` | Clarity Wide Lenses Module | wide | 6 cm | `e005` |
|
|
19
|
+
| `EU` | Clarity Fisheye Lenses Module | fisheye | 6 cm | `e008` |
|
|
20
|
+
| `EW` | Clarity Ultra Wide Lenses Module | ultra wide | 6 cm | `e007` |
|
|
21
|
+
|
|
22
|
+
## In the C SDK
|
|
23
|
+
|
|
24
|
+
A program tells this family by the `camera_family` field of `depz_camera_info_t`: `"clarity"`. Everything else is the same camera API for every family: the [guide](guide.md) lists this family's capture modes and controls, the [API page](api.md) the calls that read them.
|
package/doc/c/guide.md
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
<!-- SPDX-License-Identifier: Apache-2.0 -->
|
|
2
|
+
# C SDK: guide
|
|
3
|
+
|
|
4
|
+
## Build a program
|
|
5
|
+
|
|
6
|
+
A build needs a C99 or C++17 compiler (gcc, clang, MSVC 2022) and CMake 3.16 or later
|
|
7
|
+
(3.21 on Windows) or pkg-config.
|
|
8
|
+
|
|
9
|
+
- Ubuntu or Debian: `sudo apt install build-essential cmake pkg-config`
|
|
10
|
+
- Fedora or RHEL: `sudo dnf install gcc gcc-c++ make cmake pkgconf`
|
|
11
|
+
- macOS: `xcode-select --install`, and CMake from cmake.org or Homebrew
|
|
12
|
+
- Windows: Visual Studio 2022 with "Desktop development with C++" (it brings CMake); run the
|
|
13
|
+
commands below in the "Developer PowerShell for VS 2022": a plain PowerShell has no `cmake`
|
|
14
|
+
on its PATH.
|
|
15
|
+
|
|
16
|
+
To run, Windows needs the Microsoft Visual C++ 2015-2022 runtime
|
|
17
|
+
(<https://aka.ms/vs/17/release/vc_redist.x64.exe>): the SDK does not carry it, and without it
|
|
18
|
+
`depz.exe` and every program on the SDK exit at once (status `0xC0000135`: `vcruntime140.dll`,
|
|
19
|
+
`msvcp140.dll` not found). A machine with Visual Studio has it.
|
|
20
|
+
|
|
21
|
+
CMake (`/opt/depz-sdk` is where the archive was unpacked):
|
|
22
|
+
|
|
23
|
+
```cmake
|
|
24
|
+
find_package(depz REQUIRED)
|
|
25
|
+
add_executable(app app.c)
|
|
26
|
+
target_link_libraries(app PRIVATE depz::depz_depth) # brings depz_inference and depz
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
cmake -S . -B build -DCMAKE_PREFIX_PATH=/opt/depz-sdk
|
|
31
|
+
cmake --build build
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
pkg-config (Linux, macOS):
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
export PKG_CONFIG_PATH=/opt/depz-sdk/lib/pkgconfig
|
|
38
|
+
cc -std=c99 app.c $(pkg-config --cflags --libs depz-depth) -Wl,-rpath,/opt/depz-sdk/lib -o app
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
pkg-config prints its paths unquoted: unpack the SDK where its path has no space. CMake has
|
|
42
|
+
no such limit.
|
|
43
|
+
|
|
44
|
+
On Windows put `bin\` on `PATH`, or copy the DLLs **and the `depz-engines` folder** beside
|
|
45
|
+
your program (the example project does: `$<TARGET_FILE:depz::...>` and
|
|
46
|
+
`${depz_ENGINE_PLUGIN_DIR}` as `depz-engines\`). Copied without that folder, a program has no
|
|
47
|
+
neural engine ("the onnx engine plugin is not part of this SDK build").
|
|
48
|
+
|
|
49
|
+
On Linux a camera needs read access to `/dev/video*` (the `video` group).
|
|
50
|
+
|
|
51
|
+
## The examples
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
cmake -S /opt/depz-sdk/share/depz/examples -B ex -DCMAKE_PREFIX_PATH=/opt/depz-sdk
|
|
55
|
+
cmake --build ex
|
|
56
|
+
./ex/list_cameras # the attached cameras and their modes
|
|
57
|
+
./ex/depth_to_disk out/ - 10 # 10 depth frames of the first camera as PFM files
|
|
58
|
+
./ex/depth_to_disk out/ rec.mkv 10 # ... of a recording
|
|
59
|
+
./ex/custom_stage_c # an own pipeline stage
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
`list_cameras.c` is the shortest whole program: a context, `depz_scan_cameras`, each camera's
|
|
63
|
+
state, and for a usable one its family and capture modes. `depth_to_disk.c` runs a pipeline
|
|
64
|
+
with the depth stage. Both have a C++ form (`list_cameras_cpp`, `depth_to_disk_cpp`).
|
|
65
|
+
|
|
66
|
+
`depth_to_disk` uses the classical matcher `sgbm` by default: no download, no engine pack. A
|
|
67
|
+
neural model is named on its command line
|
|
68
|
+
(`depth_to_disk out/ - 10 lite-any-stereo v2-s-640x384`); it is downloaded on first use and
|
|
69
|
+
needs its engine's pack (below). Without one the program stops with the error that says which
|
|
70
|
+
pack to install.
|
|
71
|
+
|
|
72
|
+
## Engines
|
|
73
|
+
|
|
74
|
+
The plugins are in the archive; the vendor runtimes they run on (ONNX Runtime, OpenVINO,
|
|
75
|
+
TensorRT, ...) are installed separately, once per machine, into the shared engines directory
|
|
76
|
+
(`~/.local/share/depz/engines`; `%LOCALAPPDATA%\depz\engines`):
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
depz engines list # every pack: installed or not, download and disk size
|
|
80
|
+
depz engines install cpu # ONNX Runtime for the CPU
|
|
81
|
+
depz engines install openvino # Intel CPU / GPU / NPU
|
|
82
|
+
depz engines install tensorrt12 --accept-license nvidia
|
|
83
|
+
depz engines verify
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
On a Jetson TensorRT comes with JetPack (JetPack 6: TensorRT 10.3): `tensorrt-fp16` and
|
|
87
|
+
`tensorrt-fp32` use the system's TensorRT, nothing to install with `depz engines`.
|
|
88
|
+
|
|
89
|
+
`depz engines install` and the model downloads use the system's HTTP stack: libcurl on Linux
|
|
90
|
+
(the package `libcurl4`) and macOS, WinHTTP on Windows; the system's certificates and proxies
|
|
91
|
+
apply (`HTTPS_PROXY` / `NO_PROXY`). An interrupted download resumes; every file is checked
|
|
92
|
+
against its pinned sha256.
|
|
93
|
+
|
|
94
|
+
The SDK never downloads a runtime by itself: an engine whose pack is missing is listed as
|
|
95
|
+
unavailable, with the command that installs it (`depz_describe_engines`). For a machine
|
|
96
|
+
without network, make the pack on a connected one and carry it over:
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
depz engines pack cpu --platform linux-aarch64 -o engines.tar # on the connected machine
|
|
100
|
+
depz engines install --from engines.tar # on the target
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
## Which model on which device
|
|
104
|
+
|
|
105
|
+
A depth stage names its model (`depz_inference_create(ctx, family, variant, ...)`); these are the ones to start with
|
|
106
|
+
(`depz_model_default` gives an engine's own default):
|
|
107
|
+
|
|
108
|
+
| Device | Model (family, variant) |
|
|
109
|
+
|---|---|
|
|
110
|
+
| PC: Windows, Linux, macOS | `lite-any-stereo`, `v2-s-640x384` |
|
|
111
|
+
| Rockchip RK3588 (NPU) | `lite-any-stereo-m`, `v2-m-640x384` |
|
|
112
|
+
| Rockchip RK3568 / RK3566 / RK3562 | `lite-any-stereo`, `v2-s-480x288` |
|
|
113
|
+
| Raspberry Pi 4 (CPU) | `lite-any-stereo`, `v2-s-320x192` |
|
|
114
|
+
|
|
115
|
+
## Rules every call follows
|
|
116
|
+
|
|
117
|
+
- Every struct starts with `struct_size`; fill input structs with their `*_init` function,
|
|
118
|
+
output structs with `struct_size = sizeof` and zeros.
|
|
119
|
+
- Every call that can fail returns `depz_status`; `depz_last_error` says why (on this thread).
|
|
120
|
+
- Handles are reference counted and released with `*_release` (NULL is fine).
|
|
121
|
+
- Frames come from `depz_pipeline_get` and are yours until `depz_frame_release`.
|
|
122
|
+
- The `DEPZ_*` environment variables apply only through `depz_config_from_env`: a NULL config
|
|
123
|
+
ignores the environment.
|
|
124
|
+
|
|
125
|
+
The whole interface, with these rules in full at the top: [API reference](api.md).
|
package/doc/c/intro.md
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
<!-- SPDX-License-Identifier: Apache-2.0 -->
|
|
2
|
+
# C SDK
|
|
3
|
+
|
|
4
|
+
The DEPZ camera SDK for C: three libraries with a C99 interface that turn a DEPZ stereo or
|
|
5
|
+
mono camera, or an MKV recording of one, into frame-numbered packets of raw and rectified
|
|
6
|
+
eyes, disparity, metric depth and a point cloud. The same libraries carry the C++17 header
|
|
7
|
+
(the [C++ SDK](../cpp/intro.md)), the C# package and the Python SDK.
|
|
8
|
+
|
|
9
|
+
| Library | Header | What | CMake target | pkg-config |
|
|
10
|
+
|---|---|---|---|---|
|
|
11
|
+
| `libdepz` | `depz/depz.h` | cameras, recordings, calibration and recalibration, controls, the pipeline | `depz::depz` | `depz` |
|
|
12
|
+
| `libdepz_inference` | `depz/inference.h` | the model catalog and the inference engines | `depz::depz_inference` | `depz-inference` |
|
|
13
|
+
| `libdepz_depth` | `depz/depth.h` | the depth models and the pipeline's depth stage | `depz::depz_depth` | `depz-depth` |
|
|
14
|
+
|
|
15
|
+
## Get it
|
|
16
|
+
|
|
17
|
+
One archive per platform on the GitHub Release,
|
|
18
|
+
`depz-sdk-native-<version>-<platform>.tar.gz` (`.zip` on Windows), with a `.sha256`:
|
|
19
|
+
|
|
20
|
+
| Platform | Archive | Runs on |
|
|
21
|
+
|---|---|---|
|
|
22
|
+
| Linux x86_64 | `linux-x86_64` | glibc 2.28 or newer: Ubuntu 20.04+, Debian 11+, RHEL 8+ |
|
|
23
|
+
| Linux ARM64 | `linux-aarch64` | glibc 2.28 or newer: Raspberry Pi OS 11+, Rockchip boards; NVIDIA Jetson: preview, not fully verified in 0.3.0 |
|
|
24
|
+
| Windows x64 | `windows-amd64` | Windows 10 or newer, with the Visual C++ 2015-2022 runtime |
|
|
25
|
+
| macOS | `macos-arm64` | macOS 15 Sequoia or newer, Apple Silicon: preview, not fully verified in 0.3.0; Intel Macs are not supported |
|
|
26
|
+
|
|
27
|
+
Windows ARM64: nothing ships for it in 0.3.0 (planned). The archive works wherever it is
|
|
28
|
+
unpacked: each library finds the others beside it.
|
|
29
|
+
|
|
30
|
+
## What is in the archive
|
|
31
|
+
|
|
32
|
+
| Path | What |
|
|
33
|
+
|---|---|
|
|
34
|
+
| `lib/` | the three libraries (Windows: `bin/*.dll`, `lib/*.lib`; macOS: `lib/*.dylib`) |
|
|
35
|
+
| `lib/depz-engines/` | the engine plugins (Windows: `bin/depz-engines/`); on Linux aarch64 also MNN |
|
|
36
|
+
| `bin/depz` | the command line: `depz engines list / install / verify / prune / pack` |
|
|
37
|
+
| `include/depz/` | `depz.h`, `inference.h`, `depth.h` (C99) and `depz.hpp` (C++17) |
|
|
38
|
+
| `lib/cmake/depz/`, `lib/pkgconfig/` | `find_package(depz)` and pkg-config |
|
|
39
|
+
| `share/doc/depz/` | `EULA`, `LICENSE`, `NOTICE`, `third_party/` and these docs |
|
|
40
|
+
| `share/depz/examples/` | the example programs, with a CMake project and a pkg-config Makefile |
|
|
41
|
+
|
|
42
|
+
## Removing it
|
|
43
|
+
|
|
44
|
+
The SDK is the unpacked folder: delete it. What it fetched lives outside it, per user:
|
|
45
|
+
the engine runtimes (`~/.local/share/depz/engines`; macOS `~/Library/Application
|
|
46
|
+
Support/depz/engines`; Windows `%LOCALAPPDATA%\depz\engines`) and the downloaded models
|
|
47
|
+
(`~/.cache/depz`; macOS `~/Library/Caches/depz`; Windows `%LOCALAPPDATA%\depz\Cache`).
|
|
48
|
+
Delete those folders too when no other DEPZ program on the computer uses them (the viewer
|
|
49
|
+
and the Python SDK share the models folder). The library writes no other files.
|
|
50
|
+
|
|
51
|
+
## Next
|
|
52
|
+
|
|
53
|
+
- [Guide](guide.md): build a program, the examples, the engines, the rules every call follows.
|
|
54
|
+
- [API reference](api.md): every declaration of the three headers with its comment.
|
|
55
|
+
- Each camera family: its models, capture modes and controls (the links at the top of the
|
|
56
|
+
API reference).
|
|
57
|
+
|
|
58
|
+
## Licence
|
|
59
|
+
|
|
60
|
+
The libraries are under the DEPZ Camera Software License Agreement (`EULA`): they work with
|
|
61
|
+
DEPZ cameras. The open sources of the SDK and its headers are under Apache-2.0 (`LICENSE`);
|
|
62
|
+
the third-party code they contain under its own licences (`NOTICE`, `third_party/`).
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<!-- SPDX-License-Identifier: Apache-2.0 -->
|
|
2
|
+
<!-- GENERATED from the SDK's camera catalog. Do not edit. -->
|
|
3
|
+
# DEPZ Minima — API reference
|
|
4
|
+
|
|
5
|
+
No symbol of the C SDK is specific to the DEPZ Minima: one camera API serves every family, in the [API reference](../api.md). What sets this family apart is data: its id `"minima"` (the `camera_family` field of `depz_camera_info_t`), its capture modes and its controls ([guide](guide.md)).
|
|
6
|
+
|
|
7
|
+
The entries that read a family's data:
|
|
8
|
+
|
|
9
|
+
- [`depz_camera_info_t`](../api.md#depz_camera_info_t)
|
|
10
|
+
- [`depz_camera_family_modes_count`](../api.md#depz_camera_family_modes_count)
|
|
11
|
+
- [`depz_camera_family_mode_at`](../api.md#depz_camera_family_mode_at)
|
|
12
|
+
- [`depz_camera_family_mode`](../api.md#depz_camera_family_mode)
|
|
13
|
+
- [`depz_mode_t`](../api.md#depz_mode_t)
|
|
14
|
+
- [`depz_camera_mode_count`](../api.md#depz_camera_mode_count)
|
|
15
|
+
- [`depz_camera_mode_at`](../api.md#depz_camera_mode_at)
|
|
16
|
+
- [`depz_camera_model_t`](../api.md#depz_camera_model_t)
|
|
17
|
+
- [`depz_camera_model_of_serial`](../api.md#depz_camera_model_of_serial)
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
<!-- SPDX-License-Identifier: Apache-2.0 -->
|
|
2
|
+
<!-- GENERATED from the SDK's camera catalog. Do not edit. -->
|
|
3
|
+
# DEPZ Minima — guide
|
|
4
|
+
|
|
5
|
+
## Capture modes
|
|
6
|
+
|
|
7
|
+
The modes the SDK offers (each the sensor's whole picture, at one scale), by the slug a program, a recording and the viewer name them by. Raw frame: what the camera sends (both eyes side by side); eye: one eye.
|
|
8
|
+
|
|
9
|
+
| Mode | Raw frame | Eye | fps | Format | Geometry | Default |
|
|
10
|
+
|---|---|---|---|---|---|---|
|
|
11
|
+
| `1280x720@30/MJPG` | 1280×720 | 1280×720 | 30 | MJPG | native | |
|
|
12
|
+
| `1280x720@25/MJPG` | 1280×720 | 1280×720 | 25 | MJPG | native | |
|
|
13
|
+
| `1280x720@20/MJPG` | 1280×720 | 1280×720 | 20 | MJPG | native | |
|
|
14
|
+
| `1280x720@15/MJPG` | 1280×720 | 1280×720 | 15 | MJPG | native | |
|
|
15
|
+
| `1280x720@10/MJPG` | 1280×720 | 1280×720 | 10 | MJPG | native | |
|
|
16
|
+
| `1280x720@7.5/MJPG` | 1280×720 | 1280×720 | 7.5 | MJPG | native | |
|
|
17
|
+
| `1280x720@5/MJPG` | 1280×720 | 1280×720 | 5 | MJPG | native | |
|
|
18
|
+
| `640x360@30/MJPG` | 640×360 | 640×360 | 30 | MJPG | scale | |
|
|
19
|
+
| `640x360@25/MJPG` | 640×360 | 640×360 | 25 | MJPG | scale | |
|
|
20
|
+
| `640x360@20/MJPG` | 640×360 | 640×360 | 20 | MJPG | scale | |
|
|
21
|
+
| `640x360@15/MJPG` | 640×360 | 640×360 | 15 | MJPG | scale | |
|
|
22
|
+
| `640x360@10/MJPG` | 640×360 | 640×360 | 10 | MJPG | scale | |
|
|
23
|
+
| `640x360@7.5/MJPG` | 640×360 | 640×360 | 7.5 | MJPG | scale | |
|
|
24
|
+
| `640x360@5/MJPG` | 640×360 | 640×360 | 5 | MJPG | scale | |
|
|
25
|
+
| `1280x720@30/MJPG/stereo` | 2560×720 | 1280×720 | 30 | MJPG | native | |
|
|
26
|
+
| `1280x720@25/MJPG/stereo` | 2560×720 | 1280×720 | 25 | MJPG | native | |
|
|
27
|
+
| `1280x720@20/MJPG/stereo` | 2560×720 | 1280×720 | 20 | MJPG | native | |
|
|
28
|
+
| `1280x720@15/MJPG/stereo` | 2560×720 | 1280×720 | 15 | MJPG | native | |
|
|
29
|
+
| `1280x720@10/MJPG/stereo` | 2560×720 | 1280×720 | 10 | MJPG | native | |
|
|
30
|
+
| `1280x720@7.5/MJPG/stereo` | 2560×720 | 1280×720 | 7.5 | MJPG | native | |
|
|
31
|
+
| `1280x720@5/MJPG/stereo` | 2560×720 | 1280×720 | 5 | MJPG | native | |
|
|
32
|
+
| `640x360@30/MJPG/stereo` | 1280×360 | 640×360 | 30 | MJPG | scale | yes |
|
|
33
|
+
| `640x360@25/MJPG/stereo` | 1280×360 | 640×360 | 25 | MJPG | scale | |
|
|
34
|
+
| `640x360@20/MJPG/stereo` | 1280×360 | 640×360 | 20 | MJPG | scale | |
|
|
35
|
+
| `640x360@15/MJPG/stereo` | 1280×360 | 640×360 | 15 | MJPG | scale | |
|
|
36
|
+
| `640x360@10/MJPG/stereo` | 1280×360 | 640×360 | 10 | MJPG | scale | |
|
|
37
|
+
| `640x360@7.5/MJPG/stereo` | 1280×360 | 640×360 | 7.5 | MJPG | scale | |
|
|
38
|
+
| `640x360@5/MJPG/stereo` | 1280×360 | 640×360 | 5 | MJPG | scale | |
|
|
39
|
+
| `1280x720@10/YUYV` | 1280×720 | 1280×720 | 10 | YUYV | native | |
|
|
40
|
+
| `1280x720@7.5/YUYV` | 1280×720 | 1280×720 | 7.5 | YUYV | native | |
|
|
41
|
+
| `1280x720@5/YUYV` | 1280×720 | 1280×720 | 5 | YUYV | native | |
|
|
42
|
+
| `640x360@30/YUYV` | 640×360 | 640×360 | 30 | YUYV | scale | |
|
|
43
|
+
| `640x360@25/YUYV` | 640×360 | 640×360 | 25 | YUYV | scale | |
|
|
44
|
+
| `640x360@20/YUYV` | 640×360 | 640×360 | 20 | YUYV | scale | |
|
|
45
|
+
| `640x360@15/YUYV` | 640×360 | 640×360 | 15 | YUYV | scale | |
|
|
46
|
+
| `640x360@10/YUYV` | 640×360 | 640×360 | 10 | YUYV | scale | |
|
|
47
|
+
| `640x360@7.5/YUYV` | 640×360 | 640×360 | 7.5 | YUYV | scale | |
|
|
48
|
+
| `640x360@5/YUYV` | 640×360 | 640×360 | 5 | YUYV | scale | |
|
|
49
|
+
| `1280x720@5/YUYV/stereo` | 2560×720 | 1280×720 | 5 | YUYV | native | |
|
|
50
|
+
| `640x360@25/YUYV/stereo` | 1280×360 | 640×360 | 25 | YUYV | scale | |
|
|
51
|
+
| `640x360@20/YUYV/stereo` | 1280×360 | 640×360 | 20 | YUYV | scale | |
|
|
52
|
+
| `640x360@15/YUYV/stereo` | 1280×360 | 640×360 | 15 | YUYV | scale | |
|
|
53
|
+
| `640x360@10/YUYV/stereo` | 1280×360 | 640×360 | 10 | YUYV | scale | |
|
|
54
|
+
| `640x360@7.5/YUYV/stereo` | 1280×360 | 640×360 | 7.5 | YUYV | scale | |
|
|
55
|
+
| `640x360@5/YUYV/stereo` | 1280×360 | 640×360 | 5 | YUYV | scale | |
|
|
56
|
+
|
|
57
|
+
The firmware also advertises 63 modes the SDK does not offer (a crop of the sensor's picture, or squeezed unevenly): asking for one, or opening a recording made in one, is refused with the error `mode_not_offered`.
|
|
58
|
+
|
|
59
|
+
## Controls
|
|
60
|
+
|
|
61
|
+
| Control | Type | On Windows |
|
|
62
|
+
|---|---|---|
|
|
63
|
+
| `auto_exposure` | enum | yes |
|
|
64
|
+
| `exposure` | int | yes |
|
|
65
|
+
| `gain` | int | yes |
|
|
66
|
+
| `brightness` | int | yes |
|
|
67
|
+
| `contrast` | int | yes |
|
|
68
|
+
| `saturation` | int | yes |
|
|
69
|
+
| `hue` | int | yes |
|
|
70
|
+
| `gamma` | int | yes |
|
|
71
|
+
| `sharpness` | int | yes |
|
|
72
|
+
| `white_balance_auto` | bool | yes |
|
|
73
|
+
| `white_balance` | int | yes |
|
|
74
|
+
| `power_line_frequency` | enum | no |
|
|
75
|
+
| `backlight_compensation` | int | yes |
|
|
76
|
+
|
|
77
|
+
## Calibration
|
|
78
|
+
|
|
79
|
+
The camera stores its calibration for the sensor's 1280×720 picture per eye; the SDK maps it onto the chosen mode (f' = f / s, c' = (c + 0.5) / s − 0.5).
|
|
80
|
+
|
|
81
|
+
## In C
|
|
82
|
+
|
|
83
|
+
A camera's own modes and controls, and the calls that read them: [API page](api.md).
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<!-- SPDX-License-Identifier: Apache-2.0 -->
|
|
2
|
+
<!-- GENERATED from the SDK's camera catalog. Do not edit. -->
|
|
3
|
+
# DEPZ Minima — introduction
|
|
4
|
+
|
|
5
|
+
The DEPZ Minima is a stereo camera: two eyes side by side in one frame, 1280×720 per eye on the sensor (the size its calibration is for). The catalog has 12 models of it: lenses fisheye, regular, ultra wide, wide; baselines 6 cm. Its default capture mode is `640x360@30/MJPG/stereo`.
|
|
6
|
+
|
|
7
|
+
A camera's serial names its model: the serial prefix below plus exactly 8 characters `A-Z 0-9`. The SDK reads the model from it and refuses a camera without a valid serial.
|
|
8
|
+
|
|
9
|
+
| Serial prefix | Model | Lens | Baseline | USB product id |
|
|
10
|
+
|---|---|---|---|---|
|
|
11
|
+
| `AF` | Minima Fisheye Lenses Enclosed | fisheye | 6 cm | `e00d` |
|
|
12
|
+
| `AN` | Minima Regular Lenses Enclosed | regular | 6 cm | `e00b` |
|
|
13
|
+
| `AR` | Minima Wide Lenses Enclosed | wide | 6 cm | `e00a` |
|
|
14
|
+
| `AW` | Minima Ultra Wide Lenses Enclosed | ultra wide | 6 cm | `e00c` |
|
|
15
|
+
| `BF` | Minima Fisheye Lenses Module No Mount | fisheye | 6 cm | `e011` |
|
|
16
|
+
| `BN` | Minima Regular Lenses Module No Mount | regular | 6 cm | `e00f` |
|
|
17
|
+
| `BR` | Minima Wide Lenses Module No Mount | wide | 6 cm | `e00e` |
|
|
18
|
+
| `BW` | Minima Ultra Wide Lenses Module No Mount | ultra wide | 6 cm | `e010` |
|
|
19
|
+
| `DF` | Minima Fisheye Lenses Module Side Mounts | fisheye | 6 cm | `e015` |
|
|
20
|
+
| `DN` | Minima Regular Lenses Module Side Mounts | regular | 6 cm | `e013` |
|
|
21
|
+
| `DR` | Minima Wide Lenses Module Side Mounts | wide | 6 cm | `e012` |
|
|
22
|
+
| `DW` | Minima Ultra Wide Lenses Module Side Mounts | ultra wide | 6 cm | `e014` |
|
|
23
|
+
|
|
24
|
+
## In the C SDK
|
|
25
|
+
|
|
26
|
+
A program tells this family by the `camera_family` field of `depz_camera_info_t`: `"minima"`. Everything else is the same camera API for every family: the [guide](guide.md) lists this family's capture modes and controls, the [API page](api.md) the calls that read them.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<!-- SPDX-License-Identifier: Apache-2.0 -->
|
|
2
|
+
<!-- GENERATED from the SDK's camera catalog. Do not edit. -->
|
|
3
|
+
# DEPZ Odin — API reference
|
|
4
|
+
|
|
5
|
+
No symbol of the C SDK is specific to the DEPZ Odin: one camera API serves every family, in the [API reference](../api.md). What sets this family apart is data: its id `"odin"` (the `camera_family` field of `depz_camera_info_t`), its capture modes and its controls ([guide](guide.md)).
|
|
6
|
+
|
|
7
|
+
The entries that read a family's data:
|
|
8
|
+
|
|
9
|
+
- [`depz_camera_info_t`](../api.md#depz_camera_info_t)
|
|
10
|
+
- [`depz_camera_family_modes_count`](../api.md#depz_camera_family_modes_count)
|
|
11
|
+
- [`depz_camera_family_mode_at`](../api.md#depz_camera_family_mode_at)
|
|
12
|
+
- [`depz_camera_family_mode`](../api.md#depz_camera_family_mode)
|
|
13
|
+
- [`depz_mode_t`](../api.md#depz_mode_t)
|
|
14
|
+
- [`depz_camera_mode_count`](../api.md#depz_camera_mode_count)
|
|
15
|
+
- [`depz_camera_mode_at`](../api.md#depz_camera_mode_at)
|
|
16
|
+
- [`depz_camera_model_t`](../api.md#depz_camera_model_t)
|
|
17
|
+
- [`depz_camera_model_of_serial`](../api.md#depz_camera_model_of_serial)
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<!-- SPDX-License-Identifier: Apache-2.0 -->
|
|
2
|
+
<!-- GENERATED from the SDK's camera catalog. Do not edit. -->
|
|
3
|
+
# DEPZ Odin — guide
|
|
4
|
+
|
|
5
|
+
## Capture modes
|
|
6
|
+
|
|
7
|
+
The modes the SDK offers (each the sensor's whole picture, at one scale), by the slug a program, a recording and the viewer name them by. Raw frame: what the camera sends; eye: one eye.
|
|
8
|
+
|
|
9
|
+
| Mode | Raw frame | Eye | fps | Format | Geometry | Default |
|
|
10
|
+
|---|---|---|---|---|---|---|
|
|
11
|
+
| `1920x1080@30/MJPG` | 1920×1080 | 1920×1080 | 30 | MJPG | native | |
|
|
12
|
+
| `1280x720@30/MJPG` | 1280×720 | 1280×720 | 30 | MJPG | scale | yes |
|
|
13
|
+
| `1920x1080@5/YUYV` | 1920×1080 | 1920×1080 | 5 | YUYV | native | |
|
|
14
|
+
| `1280x720@10/YUYV` | 1280×720 | 1280×720 | 10 | YUYV | scale | |
|
|
15
|
+
|
|
16
|
+
The firmware also advertises 14 modes the SDK does not offer (a crop of the sensor's picture, or squeezed unevenly): asking for one, or opening a recording made in one, is refused with the error `mode_not_offered`.
|
|
17
|
+
|
|
18
|
+
## Controls
|
|
19
|
+
|
|
20
|
+
| Control | Type | On Windows |
|
|
21
|
+
|---|---|---|
|
|
22
|
+
| `auto_exposure` | enum | yes |
|
|
23
|
+
| `exposure` | int | yes |
|
|
24
|
+
| `gain` | int | yes |
|
|
25
|
+
| `brightness` | int | yes |
|
|
26
|
+
| `contrast` | int | yes |
|
|
27
|
+
| `saturation` | int | yes |
|
|
28
|
+
| `hue` | int | yes |
|
|
29
|
+
| `gamma` | int | yes |
|
|
30
|
+
| `sharpness` | int | yes |
|
|
31
|
+
| `white_balance_auto` | bool | yes |
|
|
32
|
+
| `white_balance` | int | yes |
|
|
33
|
+
| `power_line_frequency` | enum | no |
|
|
34
|
+
| `backlight_compensation` | int | yes |
|
|
35
|
+
|
|
36
|
+
## Calibration
|
|
37
|
+
|
|
38
|
+
The camera stores its calibration for the sensor's 1920×1080 picture per eye; the SDK maps it onto the chosen mode (f' = f / s, c' = (c + 0.5) / s − 0.5).
|
|
39
|
+
|
|
40
|
+
One eye: depth comes from a monocular depth model; the stereo models need two eyes.
|
|
41
|
+
|
|
42
|
+
## In C
|
|
43
|
+
|
|
44
|
+
A camera's own modes and controls, and the calls that read them: [API page](api.md).
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<!-- SPDX-License-Identifier: Apache-2.0 -->
|
|
2
|
+
<!-- GENERATED from the SDK's camera catalog. Do not edit. -->
|
|
3
|
+
# DEPZ Odin — introduction
|
|
4
|
+
|
|
5
|
+
The DEPZ Odin is a mono camera: one eye, 1920×1080 per eye on the sensor (the size its calibration is for). The catalog has 10 models of it: lenses fisheye, regular, ultra fisheye, ultra wide, wide. Its default capture mode is `1280x720@30/MJPG`.
|
|
6
|
+
|
|
7
|
+
A camera's serial names its model: the serial prefix below plus exactly 8 characters `A-Z 0-9`. The SDK reads the model from it and refuses a camera without a valid serial.
|
|
8
|
+
|
|
9
|
+
| Serial prefix | Model | Lens | Baseline | USB product id |
|
|
10
|
+
|---|---|---|---|---|
|
|
11
|
+
| `PF` | Odin Ultra Fisheye Lens Module | ultra fisheye | — | `e067` |
|
|
12
|
+
| `PN` | Odin Regular Lens Module | regular | — | `e064` |
|
|
13
|
+
| `PR` | Odin Wide Lens Module | wide | — | `e063` |
|
|
14
|
+
| `PU` | Odin Fisheye Lens Module | fisheye | — | `e066` |
|
|
15
|
+
| `PW` | Odin Ultra Wide Lens Module | ultra wide | — | `e065` |
|
|
16
|
+
| `QF` | Odin Ultra Fisheye Lens Enclosed | ultra fisheye | — | `e062` |
|
|
17
|
+
| `QN` | Odin Regular Lens Enclosed | regular | — | `e05f` |
|
|
18
|
+
| `QR` | Odin Wide Lens Enclosed | wide | — | `e05e` |
|
|
19
|
+
| `QU` | Odin Fisheye Lens Enclosed | fisheye | — | `e061` |
|
|
20
|
+
| `QW` | Odin Ultra Wide Lens Enclosed | ultra wide | — | `e060` |
|
|
21
|
+
|
|
22
|
+
## In the C SDK
|
|
23
|
+
|
|
24
|
+
A program tells this family by the `camera_family` field of `depz_camera_info_t`: `"odin"`. Everything else is the same camera API for every family: the [guide](guide.md) lists this family's capture modes and controls, the [API page](api.md) the calls that read them.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<!-- SPDX-License-Identifier: Apache-2.0 -->
|
|
2
|
+
<!-- GENERATED from the SDK's camera catalog. Do not edit. -->
|
|
3
|
+
# DEPZ Odin Mini — API reference
|
|
4
|
+
|
|
5
|
+
No symbol of the C SDK is specific to the DEPZ Odin Mini: one camera API serves every family, in the [API reference](../api.md). What sets this family apart is data: its id `"odin_mini"` (the `camera_family` field of `depz_camera_info_t`), its capture modes and its controls ([guide](guide.md)).
|
|
6
|
+
|
|
7
|
+
The entries that read a family's data:
|
|
8
|
+
|
|
9
|
+
- [`depz_camera_info_t`](../api.md#depz_camera_info_t)
|
|
10
|
+
- [`depz_camera_family_modes_count`](../api.md#depz_camera_family_modes_count)
|
|
11
|
+
- [`depz_camera_family_mode_at`](../api.md#depz_camera_family_mode_at)
|
|
12
|
+
- [`depz_camera_family_mode`](../api.md#depz_camera_family_mode)
|
|
13
|
+
- [`depz_mode_t`](../api.md#depz_mode_t)
|
|
14
|
+
- [`depz_camera_mode_count`](../api.md#depz_camera_mode_count)
|
|
15
|
+
- [`depz_camera_mode_at`](../api.md#depz_camera_mode_at)
|
|
16
|
+
- [`depz_camera_model_t`](../api.md#depz_camera_model_t)
|
|
17
|
+
- [`depz_camera_model_of_serial`](../api.md#depz_camera_model_of_serial)
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<!-- SPDX-License-Identifier: Apache-2.0 -->
|
|
2
|
+
<!-- GENERATED from the SDK's camera catalog. Do not edit. -->
|
|
3
|
+
# DEPZ Odin Mini — guide
|
|
4
|
+
|
|
5
|
+
## Capture modes
|
|
6
|
+
|
|
7
|
+
The modes the SDK offers (each the sensor's whole picture, at one scale), by the slug a program, a recording and the viewer name them by. Raw frame: what the camera sends; eye: one eye.
|
|
8
|
+
|
|
9
|
+
| Mode | Raw frame | Eye | fps | Format | Geometry | Default |
|
|
10
|
+
|---|---|---|---|---|---|---|
|
|
11
|
+
| `1920x1080@30/MJPG` | 1920×1080 | 1920×1080 | 30 | MJPG | native | |
|
|
12
|
+
| `1280x720@30/MJPG` | 1280×720 | 1280×720 | 30 | MJPG | scale | yes |
|
|
13
|
+
| `1920x1080@5/YUYV` | 1920×1080 | 1920×1080 | 5 | YUYV | native | |
|
|
14
|
+
| `1280x720@10/YUYV` | 1280×720 | 1280×720 | 10 | YUYV | scale | |
|
|
15
|
+
|
|
16
|
+
The firmware also advertises 14 modes the SDK does not offer (a crop of the sensor's picture, or squeezed unevenly): asking for one, or opening a recording made in one, is refused with the error `mode_not_offered`.
|
|
17
|
+
|
|
18
|
+
## Controls
|
|
19
|
+
|
|
20
|
+
| Control | Type | On Windows |
|
|
21
|
+
|---|---|---|
|
|
22
|
+
| `auto_exposure` | enum | yes |
|
|
23
|
+
| `exposure` | int | yes |
|
|
24
|
+
| `gain` | int | yes |
|
|
25
|
+
| `brightness` | int | yes |
|
|
26
|
+
| `contrast` | int | yes |
|
|
27
|
+
| `saturation` | int | yes |
|
|
28
|
+
| `hue` | int | yes |
|
|
29
|
+
| `gamma` | int | yes |
|
|
30
|
+
| `sharpness` | int | yes |
|
|
31
|
+
| `white_balance_auto` | bool | yes |
|
|
32
|
+
| `white_balance` | int | yes |
|
|
33
|
+
| `power_line_frequency` | enum | no |
|
|
34
|
+
| `backlight_compensation` | int | yes |
|
|
35
|
+
|
|
36
|
+
## Calibration
|
|
37
|
+
|
|
38
|
+
The camera stores its calibration for the sensor's 1920×1080 picture per eye; the SDK maps it onto the chosen mode (f' = f / s, c' = (c + 0.5) / s − 0.5).
|
|
39
|
+
|
|
40
|
+
One eye: depth comes from a monocular depth model; the stereo models need two eyes.
|
|
41
|
+
|
|
42
|
+
## In C
|
|
43
|
+
|
|
44
|
+
A camera's own modes and controls, and the calls that read them: [API page](api.md).
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<!-- SPDX-License-Identifier: Apache-2.0 -->
|
|
2
|
+
<!-- GENERATED from the SDK's camera catalog. Do not edit. -->
|
|
3
|
+
# DEPZ Odin Mini — introduction
|
|
4
|
+
|
|
5
|
+
The DEPZ Odin Mini is a mono camera: one eye, 1920×1080 per eye on the sensor (the size its calibration is for). The catalog has 10 models of it: lenses fisheye, regular, ultra fisheye, ultra wide, wide. Its default capture mode is `1280x720@30/MJPG`.
|
|
6
|
+
|
|
7
|
+
A camera's serial names its model: the serial prefix below plus exactly 8 characters `A-Z 0-9`. The SDK reads the model from it and refuses a camera without a valid serial.
|
|
8
|
+
|
|
9
|
+
| Serial prefix | Model | Lens | Baseline | USB product id |
|
|
10
|
+
|---|---|---|---|---|
|
|
11
|
+
| `XF` | Odin Mini Ultra Fisheye Lens Enclosed | ultra fisheye | — | `e06c` |
|
|
12
|
+
| `XN` | Odin Mini Regular Lens Enclosed | regular | — | `e069` |
|
|
13
|
+
| `XR` | Odin Mini Wide Lens Enclosed | wide | — | `e068` |
|
|
14
|
+
| `XU` | Odin Mini Fisheye Lens Enclosed | fisheye | — | `e06b` |
|
|
15
|
+
| `XW` | Odin Mini Ultra Wide Lens Enclosed | ultra wide | — | `e06a` |
|
|
16
|
+
| `YF` | Odin Mini Ultra Fisheye Lens Module | ultra fisheye | — | `e071` |
|
|
17
|
+
| `YN` | Odin Mini Regular Lens Module | regular | — | `e06e` |
|
|
18
|
+
| `YR` | Odin Mini Wide Lens Module | wide | — | `e06d` |
|
|
19
|
+
| `YU` | Odin Mini Fisheye Lens Module | fisheye | — | `e070` |
|
|
20
|
+
| `YW` | Odin Mini Ultra Wide Lens Module | ultra wide | — | `e06f` |
|
|
21
|
+
|
|
22
|
+
## In the C SDK
|
|
23
|
+
|
|
24
|
+
A program tells this family by the `camera_family` field of `depz_camera_info_t`: `"odin_mini"`. Everything else is the same camera API for every family: the [guide](guide.md) lists this family's capture modes and controls, the [API page](api.md) the calls that read them.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<!-- SPDX-License-Identifier: Apache-2.0 -->
|
|
2
|
+
<!-- GENERATED from the SDK's camera catalog. Do not edit. -->
|
|
3
|
+
# DEPZ Varius — API reference
|
|
4
|
+
|
|
5
|
+
No symbol of the C SDK is specific to the DEPZ Varius: one camera API serves every family, in the [API reference](../api.md). What sets this family apart is data: its id `"varius"` (the `camera_family` field of `depz_camera_info_t`), its capture modes and its controls ([guide](guide.md)).
|
|
6
|
+
|
|
7
|
+
The entries that read a family's data:
|
|
8
|
+
|
|
9
|
+
- [`depz_camera_info_t`](../api.md#depz_camera_info_t)
|
|
10
|
+
- [`depz_camera_family_modes_count`](../api.md#depz_camera_family_modes_count)
|
|
11
|
+
- [`depz_camera_family_mode_at`](../api.md#depz_camera_family_mode_at)
|
|
12
|
+
- [`depz_camera_family_mode`](../api.md#depz_camera_family_mode)
|
|
13
|
+
- [`depz_mode_t`](../api.md#depz_mode_t)
|
|
14
|
+
- [`depz_camera_mode_count`](../api.md#depz_camera_mode_count)
|
|
15
|
+
- [`depz_camera_mode_at`](../api.md#depz_camera_mode_at)
|
|
16
|
+
- [`depz_camera_model_t`](../api.md#depz_camera_model_t)
|
|
17
|
+
- [`depz_camera_model_of_serial`](../api.md#depz_camera_model_of_serial)
|