> For the complete documentation index, see [llms.txt](https://wiki.openelab.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.openelab.io/robotics/orbbec/orbbec-femto-mega-user-manual.md). Agents can also search and read this documentation through its [MCP server](https://wiki.openelab.io/~gitbook/mcp).

# Orbbec Femto Mega: PoE and USB ToF camera development

Power Femto Mega through PoE+ or its supported adapter, select ToF modes, establish Ethernet or USB streaming, and plan recording, synchronization and recovery.

{% hint style="info" %}
[**Orbbec Femto Mega ToF Camera on OpenELAB**](https://openelab.io/products/orbbec-femto-mega-tof-camera)

**Model:** Femto Mega · **SKU:** `ORBBEC-Femto-Mega` · **Option:** original Jetson Nano-based USB/Gigabit Ethernet/PoE+ camera; not Femto Mega I or Femto Bolt.
{% endhint %}

Femto Mega is an iToF depth camera with onboard Jetson Nano processing, RGB, IMU and USB or Gigabit Ethernet output. Use a compatible **PoE+** source or the supplied adapter, then establish one depth stream before adding high-bandwidth color, recording or external synchronization. The onboard computer is part of the camera's processing architecture, not an invitation to flash a generic Jetson developer-kit image.

## Product overview

The 850 nm indirect time-of-flight sensor provides narrow and wide depth modes. Onboard processing supports network transmission of processed data; color formats and rate combinations depend on the power/data path. The camera has a normal RJ45 Ethernet port, USB-C, a separate low-voltage DC input and a service Micro-USB port. Its eight-pin sync interface is separate from Ethernet. [Femto Mega datasheet v1.1](https://www.orbbec.com/wp-content/uploads/2023/04/ORBBEC_Datasheet_-Femto-Mega.pdf), [current hardware reference](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Femto%20Mega%20Hardware%20Specifications)

Compare [Femto Bolt](https://wiki.openelab.io/robotics/orbbec/orbbec-femto-bolt-user-manual.md) for a USB camera that relies on host depth processing. Mega I is a separate industrial enclosure/power/interface variant with different firmware; its 12–24 V rating and connectors must not be applied to this original Mega.

## Applications

* Indoor volumetric capture, interaction and point-cloud work using a chosen NFOV/WFOV depth mode.
* Networked camera installations where Gigabit Ethernet and a compliant PoE+ source simplify the cable route.
* Multi-camera capture with a documented timing/accessory design and an exposure schedule that manages ToF interference.
* Existing K4A applications migrated through a supported wrapper after validating image formats, calibration and timestamps.

Time-of-flight measurements are vulnerable to multipath, mixed edge pixels, saturation, weak return and ambiguous range. Evaluate real surfaces and lighting rather than treating a visually dense point cloud as an accuracy result. Invalid data remains unknown. [ToF theory and invalidation guide](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Depth%20Camera%20%28Femto%20Mega%29)

## Specifications

These depth modes follow the [current hardware page](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Femto%20Mega%20Hardware%20Specifications). Stated ranges assume the documented 850 nm reflectivity/ambient-light conditions and no multipath interference.

| Mode                       | Resolution  | Illumination field | Listed frame rates                 | Working range  |
| -------------------------- | ----------- | ------------------ | ---------------------------------- | -------------- |
| NFOV unbinned              | 640 × 576   | 75° × 65°          | 5/15/25/30 fps                     | 0.5–3.86 m     |
| NFOV 2 × 2 software binned | 320 × 288   | 75° × 65°          | 5/15/25/30 fps                     | 0.5–5.46 m     |
| WFOV 2 × 2 binned          | 512 × 512   | 120° × 120°        | 5/15/25/30 fps                     | 0.25–2.88 m    |
| WFOV unbinned              | 1024 × 1024 | 120° × 120°        | Current hardware page: 5/15/25 fps | 0.25–2.21 m    |
| Passive IR                 | 1024 × 1024 | Not a depth mode   | 5/15/25/30 fps                     | No depth range |

The older datasheet v1.1 lists WFOV unbinned at **5/15 fps**, while the current article adds 25 fps. Do not assume the higher rate for every firmware/path; select an advertised profile. The first-result example uses the common **640 × 576 at 30 fps** NFOV profile.

| Parameter                                        | Original Femto Mega                                                                                    |
| ------------------------------------------------ | ------------------------------------------------------------------------------------------------------ |
| Typical systematic / random depth error          | <11 mm + 0.1% of distance / standard deviation ≤17 mm, under specified reflectivity/ambient conditions |
| RGB                                              | Rolling shutter; 3840 × 2160 up to 25 fps; 16:9 FOV 80° × 51°                                          |
| IMU                                              | LSM6DSMUS per current hardware page; six-axis samples, supported frequency range 50–2000 Hz            |
| Processing                                       | Onboard NVIDIA Jetson Nano                                                                             |
| Data paths                                       | USB 3.2 Gen 1 Type-C or Gigabit Ethernet; network RTSP/RTP                                             |
| Power inputs                                     | **12 V/2 A DC**, or **IEEE 802.3at PoE+ (24 W provision)**, or supported **5 V/3 A USB-C** arrangement |
| Typical / peak power, legacy configuration table | DC+USB 11/16 W; USB power/data 10/14 W; PoE+Ethernet 13/17 W                                           |
| Operating ambient / humidity                     | 10–25 °C / 8–90% RH, noncondensing                                                                     |
| Current hardware-page size / mass                | 115.30 × 143.5 × 40.3 mm / 560 g                                                                       |
| Legacy nominal mechanical size                   | 115 × 40 × 145 mm in that document's axis order; use exact CAD revision                                |
| Mounting                                         | Bottom 1/4-20 UNC; side M2.5 points per model drawing                                                  |

The USB-powered footnote restricts depth/IR to **640 × 576 and below**, color to **1920 × 1080 and below** and named formats. The Ethernet path uses H.264/H.265 color in the legacy transport table. A 4K color headline is not proof that a host-only USB-C setup can deliver every mode. [Power/transport table, datasheet p.3](https://www.orbbec.com/wp-content/uploads/2023/04/ORBBEC_Datasheet_-Femto-Mega.pdf#page=3)

### Integration parameters

| Parameter                               | Original Femto Mega                                                                                                                   |
| --------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| Processing                              | Onboard NVIDIA Jetson Nano                                                                                                            |
| Color                                   | Rolling shutter; up to 3840 × 2160 at 25 fps; 16:9 FOV 80° × 51°                                                                      |
| IMU                                     | LSM6DSMUS according to current hardware page; six-axis, supported frequency range 50–2000 Hz                                          |
| Interfaces                              | USB 3 Type-C, Gigabit Ethernet, eight-pin sync; service Micro-USB for recovery                                                        |
| Ambient / humidity                      | 10–25 °C / 8–90% RH, noncondensing                                                                                                    |
| Mass / listed dimensions                | 560 g / hardware page lists 115.30 × 143.5 × 40.3 mm; confirm axis order and actual housing dimensions from the revision-specific CAD |
| Power modes                             | DC 12 V/2 A; IEEE 802.3at PoE+ with 24 W supply provision; USB-C 5 V/3 A for supported profiles                                       |
| Published average / peak power by path  | DC + USB: 11 / 16 W; USB power/data: 10 / 14 W; PoE+ Ethernet: 13 / 17 W, use-case dependent                                          |
| Depth typical systematic / random error | <11 mm + 0.1% of distance / standard deviation ≤17 mm under the stated target, ambient IR and no-multipath conditions                 |

The early datasheet lists nominal 115 × 40 × 145 mm in a different axis ordering. Mechanical CAD, not axis-reordered marketing dimensions, should control bracket clearance. The current hardware page permits WFOV unbinned rates not all listed in the older PDF; this guide uses the common NFOV profile and checks the device's actual advertised profiles. [Hardware reference](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Femto%20Mega%20Hardware%20Specifications), [model datasheet](https://www.orbbec.com/wp-content/uploads/2023/04/ORBBEC_Datasheet_-Femto-Mega.pdf)

## Hardware and connections

![Official Orbbec Femto Mega covered-housing CAD reference view](https://raw.githubusercontent.com/orbbec/OrbbecHardware/main/Femto%20Mega/03_Screenshot/031_Femto%20Mega%20with%20covering-2.png)

Official Orbbec CAD reference image of the original covered Mega; the full 2D drawing identifies all data, power and service interfaces.

### Choose one documented power/data arrangement

| Arrangement                         | Required connection and boundary                                                                                                   |
| ----------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| Supplied DC adapter + USB 3 data    | Original matching 12 V/2 A adapter and USB data lead; useful identity/IP-configuration baseline                                    |
| PoE+ + Ethernet data                | IEEE 802.3at source with adequate per-port/total budget, Gigabit link and certified cable; an unpowered Ethernet port is data only |
| Supplied DC adapter + Ethernet data | Supported separate DC power with ordinary Gigabit network data; verify stored camera IP                                            |
| USB-C power/data                    | Correct 5 V/3 A source/cable and documented reduced profiles; not an arbitrary USB-A power splitter                                |

Do not substitute the Gemini Ethernet cameras' IEEE 802.3af power requirement for Mega's **802.3at PoE+** requirement. The barrel connector is documented as 5.5 mm outer/2.1 mm inner; its dimensions alone do not establish polarity. Use the supplied matching adapter instead of guessing a substitute. Keep the rear/bottom thermal channel clear and evaluate any enclosure against the narrow 10–25 °C ambient range. [Hardware power reference](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Femto%20Mega%20Hardware%20Specifications), [model power specification](https://www.orbbec.com/wp-content/uploads/2023/04/ORBBEC_Datasheet_-Femto-Mega.pdf)

The service **Micro-USB** port and registration/recovery pin are intended for firmware upgrade/reset, not normal depth data. Do not use them to supply a generic Jetson image or confuse them with the data-capable USB-C connection. The camera's built-in Jetson processing does not establish a user-accessible desktop/software environment.

### Network identity before network streaming

First use the supplied DC adapter and USB data path to inspect the camera's actual IP in Viewer. An official legacy network example gives **192.168.1.10** as the default and notes DHCP support; a deployed unit may retain a different address. In Viewer use **Camera Control → Device Control → IP configuration**, record the current setting, and assign a unique persistent address on the isolated camera network if needed. A changed IP can disconnect the session, so reconnect at the new address and read it back. [Official network example](https://github.com/orbbec/OrbbecSDK/blob/main/examples/cpp/Sample-NetDevice/README.md), [Femto network setup](https://github.com/orbbec/Multi-Device-Synchronization-Example/blob/v2-main/docs/FemtoSeries.md)

Keep the host adapter on that same subnet. For one camera a deliberate test pair is camera **192.168.1.10/24**, host **192.168.1.20/24**, provided neither address conflicts with another interface/device. This is an example configuration, not an assertion about every unit's saved address. Do not copy a multi-NIC topology without independently checking its subnets/routes.

### External synchronization remains a separate wiring task

The legacy datasheet's rear-view table assigns **GND to pin 1**, VSYNC\_IN to 3, VSYNC\_OUT to 6 and SYNC\_VCC to 8. The current synchronization article assigns **SYNC\_VCC to pin 1**, VSYNC\_IN to 6, VSYNC\_OUT to 3 and GND to 8. This reversed numbering convention must be reconciled against the actual connector drawing/cable before custom wiring. **No custom sync harness is specified by this guide.** Use an exact-model assembled accessory and confirm its pin-1 view and signal mapping. [Legacy p.8](https://www.orbbec.com/wp-content/uploads/2023/04/ORBBEC_Datasheet_-Femto-Mega.pdf#page=8), [current synchronization article](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Synchronize%20Multiple%20Femto%20Mega%20Devices)

The logic reference defaults to **1.8 V**, with documented 3.3/5 V reference arrangements; it is not the 12 V camera supply. Multi-camera timing must coordinate exposure as well as frame rate. The official guidance uses at least **160 μs** staggering between ToF exposures to reduce interference, with secondary devices initialized before the primary. That delay is not a universal pulse period or a remedy for inadequate network bandwidth.

## Software and development resources

Use matching Viewer/libraries from [**Orbbec SDK v2.10.6**](https://github.com/orbbec/OrbbecSDK_v2/releases/tag/v2.10.6) for the original example. The exact release table lists **Femto Mega minimum firmware 1.3.0**, recommended **1.3.1**. Mega I uses a different firmware line; do not cross-flash it. Read identity/version before any update. [Pinned support matrix](https://github.com/orbbec/OrbbecSDK_v2/blob/v2.10.6/README.md#14-supported-devices)

The current [Mega firmware release](https://github.com/orbbec/OrbbecFirmware/releases/tag/Femto-Mega-Firmware) also lists **1.3.2**, dated October 2026, with minimum native SDK v2.1.1; it fixes timestamp-baseline differences between USB/Ethernet after timestamp reset and a color manual-exposure/gain issue. This is newer than the pinned SDK README's recommendation. **PCN 20250326001** requires updated firmware for units using the revised Jetson Nano DRAM BOM: firmware 1.3.1 supports both old and updated hardware, while legacy 1.2.7 is incompatible with the update. Do not downgrade an unknown/new unit to legacy firmware merely to reproduce an old tutorial. [Actual hardware/firmware PCN PDF](https://github.com/orbbec/OrbbecFirmware/releases/download/Femto-Mega-Firmware/PCN_Firmware.update.enables.integration.with.Updated.NVIDIA.Jetson.Nano.pdf)

### Host requirements and wrappers

The current Mega system-requirements page describes Windows 10/11 x64, Ubuntu 20.04+ x64 and supported ARM/macOS paths, with requirements depending on stream rates and downstream algorithms. Use the native SDK release's platform matrix for the selected package. USB and network have separate access/routing problems; installing USB udev rules alone cannot fix a bad IP route. [Mega host requirements](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/System%20Requirements%20%28Femto%20Mega%29)

For existing Azure Kinect-style software, the [K4A wrapper `v2-main`](https://github.com/orbbec/OrbbecSDK-K4A-Wrapper/tree/v2-main) explicitly supports Mega. Keep matching wrapper/native SDK headers, libraries, extensions and calibration functions. The older network tutorial's XML `EnumerateNetDevice` setting belongs to that wrapper/configuration path; native v2 code can enable enumeration through `Context::enableNetDeviceEnumeration(true)` as in the original example below. Do not mix the two configuration mechanisms without checking the deployed release.

Microsoft Body Tracking is a separate runtime/model/license with higher GPU requirements. Mega's onboard Jetson depth processing does not mean that the host skeleton tracker runs onboard or is supplied with the camera. Establish depth first, then validate the downstream application and its licenses/dependencies.

### Calibration, transforms, clocks and recordings

Query per-device calibration, depth scale and active-profile intrinsics. Transform/deproject through supported SDK APIs; resizing images is not calibrated depth-to-RGB alignment. Optical coordinates and camera-to-installation transforms are separate. Read device timestamps, host arrival timestamps and frame numbers when diagnosing network gaps; a saved frame rate is not proof of simultaneous exposures.

The K4A recorder uses a Matroska container with color, depth, IR, IMU and calibration information. Track indices vary with the enabled streams, so identify tags/UIDs rather than assuming track 1 is depth. Use the playback API for metric data and verify a short recording before an unattended job. The native SDK recorder/playback route is separately documented in its examples; do not promise interchangeability of every native/wrapper recording. [Recording and playback resources](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Femto%20Mega%20Data%20Recording), [SDK examples](https://github.com/orbbec/OrbbecSDK_v2/tree/v2.10.6/examples)

## Getting started

### USB identity and stable depth baseline

1. Place Mega on a stable mount facing a matte target about **1 m** away. Remove optical protective film, keep ventilation open and disconnect sync accessories.
2. Connect the supplied matching DC adapter and USB 3 data cable directly. Wait for boot; confirm a normal power indication. Flashing amber means insufficient power, flashing white indicates a missing USB 3 connection in the USB setup.
3. Install matching SDK/Viewer v2.10.6. Open the camera and confirm **Femto Mega**, serial and firmware. Compare against the exact support row; inspect the actual stored IP before switching interfaces.
4. Start **NFOV unbinned 640 × 576 Y16 at 30 fps**, depth alone. Save the settings and a short baseline result; add color only after depth is stable.
5. Stop streams, close the device, record the actual network settings and prepare a compliant PoE+ network path if needed.

**Expected result:** Viewer identifies Mega, shows a coherent narrow-FOV target plane and reports stable depth frames. A color stream alone does not establish usable depth, correct scale or network readiness. [Official setup](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Set%20up%20Femto%20Mega)

### PoE+ Ethernet first result

1. Stop USB capture and remove the USB data connection so the device is not opened twice. Connect the camera's RJ45 port to an **802.3at PoE+** source with a Gigabit data path; connect the host to that network.
2. Put the host interface on the camera's verified subnet, using a unique address. For the deliberate example pair above, inspect `ip -br address` and `ip route get 192.168.1.10` on Linux; check route/interface before modifying either endpoint.
3. Open the network device in matching Viewer. Confirm model/serial at its stored IP and allow the application on the isolated camera-facing network if firewall policy blocks discovery/data.
4. Start **640 × 576 Y16 depth at 30 fps**, no color/IR initially. Compare sequence gaps and plane behavior against the USB baseline; confirm Gigabit link and host load before increasing bandwidth.
5. Stop streams cleanly and save IP, firmware, SDK, profile, scale and recording metadata. Give each camera a distinct IP before adding more factory-default units.

**Expected result:** Viewer opens the same Mega serial over Ethernet and continuously receives coherent depth. Discovery without open/stream success is not a completed data-path test. Native API code should explicitly enable network enumeration; legacy K4A network access has its own XML setting and minimum firmware. [Official network tutorial](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/K4A%20Access%20Femto%20Mega%20Network%20Mode), [native SDK API](https://github.com/orbbec/OrbbecSDK_v2/blob/v2.10.6/include/libobsensor/hpp/Context.hpp)

### Original example: measure a central patch in millimetres

After Viewer works, close it so that one application owns the camera. This example targets **Orbbec SDK v2.10.6**, one connected camera and **Y16 depth only**. It requests an explicit profile, samples the central 10% × 10% patch, excludes invalid zero samples and reports the median every ten received frames. It deliberately does not turn one center pixel into an obstacle-clearance decision. The SDK's depth scale converts stored values to millimetres; timestamps are device microseconds. [API headers and release](https://github.com/orbbec/OrbbecSDK_v2/tree/v2.10.6/include/libobsensor/hpp)

Save this as `roi_depth.cpp`:

{% code collapsedlinecount="10" %}

```cpp
#include <libobsensor/ObSensor.hpp>
#include <algorithm>
#include <cstdint>
#include <cstring>
#include <iostream>
#include <memory>
#include <stdexcept>
#include <string>
#include <vector>

int main(int argc, char **argv) {
    try {
        if(argc != 5) {
            std::cerr << "Usage: roi_depth WIDTH HEIGHT FPS usb|net\n";
            return 2;
        }
        const int width = std::stoi(argv[1]);
        const int height = std::stoi(argv[2]);
        const int fps = std::stoi(argv[3]);
        const bool network = std::string(argv[4]) == "net";
        if(width < 10 || height < 10 || fps <= 0 ||
           (!network && std::string(argv[4]) != "usb")) return 2;
        ob::Context context;
        context.enableNetDeviceEnumeration(network);
        auto devices = context.queryDeviceList();
        if(devices->getCount() != 1) {
            std::cerr << "Connect exactly one supported camera on this test host.\n";
            return 3;
        }
        auto device = devices->getDevice(0);
        auto info = device->getDeviceInfo();
        std::cout << info->getName() << " serial=" << info->getSerialNumber()
                  << " firmware=" << info->getFirmwareVersion() << '\n';
        ob::Pipeline pipeline(device);
        auto profiles = pipeline.getStreamProfileList(OB_SENSOR_DEPTH);
        auto profile = profiles->getVideoStreamProfile(width, height, OB_FORMAT_Y16, fps);
        auto config = std::make_shared<ob::Config>();
        config->enableStream(profile);
        pipeline.start(config);
        int received = 0;
        for(int attempt = 0; attempt < 120 && received < 60; ++attempt) {
            auto frames = pipeline.waitForFrameset(1000);
            if(!frames) continue;
            auto depth = frames->getDepthFrame();
            if(!depth || depth->getDataSize() < static_cast<uint32_t>(width * height * 2)) continue;
            ++received;
            const auto *bytes = static_cast<const uint8_t *>(depth->getData());
            std::vector<uint16_t> valid;
            const int x0 = width * 45 / 100, x1 = width * 55 / 100;
            const int y0 = height * 45 / 100, y1 = height * 55 / 100;
            for(int y = y0; y < y1; ++y) for(int x = x0; x < x1; ++x) {
                uint16_t value;
                std::memcpy(&value, bytes + 2 * (y * width + x), sizeof value);
                if(value != 0) valid.push_back(value);
            }
            if(received % 10) continue;
            std::cout << "frame=" << depth->getIndex()
                      << " timestamp_us=" << depth->getTimeStampUs()
                      << " valid_roi=" << valid.size() << '/' << (x1-x0)*(y1-y0);
            if(valid.empty()) std::cout << " median_mm=invalid\n";
            else {
                auto middle = valid.begin() + valid.size()/2;
                std::nth_element(valid.begin(), middle, valid.end());
                std::cout << " median_mm=" << *middle * depth->getValueScale() << '\n';
            }
        }
        pipeline.stop();
        if(received < 60) { std::cerr << "Insufficient depth frames\n"; return 4; }
        return 0;
    } catch(const ob::Error &e) {
        std::cerr << "SDK: " << e.getMessage() << '\n';
        return 1;
    } catch(const std::exception &e) {
        std::cerr << e.what() << '\n';
        return 2;
    }
}
```

{% endcode %}

Use an extracted Linux v2.10.6 SDK package matching the host architecture; `SDK_ROOT` below is the **absolute directory you extracted**, containing `include` and `lib`. Save this `CMakeLists.txt` beside the source:

{% code collapsedlinecount="10" %}

```cmake
cmake_minimum_required(VERSION 3.10)
project(roi_depth LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 11)
find_package(OrbbecSDK REQUIRED)
add_executable(roi_depth roi_depth.cpp)
target_link_libraries(roi_depth PRIVATE ob::OrbbecSDK)
```

{% endcode %}

{% code collapsedlinecount="10" %}

```bash
export SDK_ROOT=/absolute/path/to/extracted/OrbbecSDK
cmake -S . -B build -DOrbbecSDK_DIR="$SDK_ROOT/lib"
cmake --build build --config Release
# Keep the SDK extensions alongside the executable when supplied in the package.
cp -R "$SDK_ROOT/lib/extensions" build/
LD_LIBRARY_PATH="$SDK_ROOT/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" ./build/roi_depth 640 576 30 net
```

{% endcode %}

The package layout and imported CMake target follow the [v2.10.6 development guide](https://github.com/orbbec/OrbbecSDK_v2/blob/v2.10.6/docs/tutorial/installation_and_development_guide.md). If an archive places its CMake config elsewhere, point `OrbbecSDK_DIR` at the directory actually containing that config. Do not mix headers and libraries from different SDK releases.

**Expected result:** the process prints six measurement records and exits successfully after receiving 60 depth frames. Each record includes a frame index, `timestamp_us`, valid sample count and `median_mm`; a diffuse target at about 1 m should give a plausible distance near its measured plane position. Those are expected results, not recorded measurements. An unsupported-profile error means enumerate/select a profile the device actually advertises; do not substitute a color format or interpret compressed depth bytes as Y16. Return code 3 means camera selection was ambiguous; 4 means too few frames arrived. A full invalid patch is reported explicitly rather than treated as zero metres.

For the USB baseline, use `./build/roi_depth 640 576 30 usb` with the same library-path setup and supplied DC power. The program's single-camera requirement avoids selecting a different network or USB device by accident.

## Troubleshooting and FAQs

| Symptom                                        | Ordered check / recovery                                                                                                                                      |
| ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| No camera power or amber indicator             | Correct supplied adapter or 802.3at PoE+ port, per-port switch budget and cable; do not downgrade to an unqualified 802.3af injector                          |
| USB path fails                                 | Check USB 3 cable/port, direct connection, device permissions and other applications; keep the service Micro-USB port out of normal capture                   |
| Network discovery but no stream                | Verify actual stored IP, host subnet/route, duplicate IPs, firewall application permission and correct transport enumeration                                  |
| Low network rate                               | Check 1 Gbit/s link, start depth only, lower color bitrate/profile and inspect host load/packet loss; do not infer a depth rate from a 4K color headline      |
| WFOV high-rate profile unavailable             | Inspect enumerated mode/firmware/path; source versions differ in advertised WFOV unbinned rates                                                               |
| Shimmering/bent depth near reflective geometry | Inspect ToF multipath, edges, saturation and weak signal before changing calibration; compare a diffuse planar target                                         |
| Timestamps change after controls               | Set camera controls before streaming or only when necessary, allow settling and retain timestamp domains; avoid control writes inside every capture iteration |
| K4A application cannot open                    | Check matched wrapper/library set and device ownership; compare with the official Viewer before debugging downstream skeleton software                        |
| Recorder playback lacks expected stream        | Inspect recording configuration, tags/track UIDs and calibration attachment; do not decode depth as a normal 8-bit movie                                      |

### Supported firmware recovery boundary

1. Preserve model/serial, current firmware, saved IP and logs. Obtain the **exact original Femto Mega** recovery bundle and matching Linux tools; Mega I and generic Jetson images are different targets.
2. Follow the official recovery procedure using the **registration pin and service Micro-USB** connection while powering up. This is a recovery operation after diagnosis, not the first stream test.
3. In the prescribed Viewer recovery interface select the extracted model-specific firmware folder, start the update and keep power/USB stable until the tool reports completion.
4. After the automatic restart, reconnect through USB-C, reopen Device Information and read back the firmware and network settings before returning to Ethernet operation.

The reviewed [Mega recovery article](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Femto%20Mega%20Firmware%20Upgrade%20Instructions) specifies a Linux workflow and a vendor `nvmflash.sh` bundle. It does not establish that an arbitrary JetPack flash script is compatible. If the correct bundle is unavailable, retain the streaming diagnosis/logs and do not improvise an image.

**Is the camera a general-purpose Jetson Nano computer?** The hardware includes Nano processing, but this guide covers the supported camera firmware/SDK interfaces. A host JetPack installer is not its camera recovery image.

**Can I use Mega I power or sync wiring?** No. It has a different enclosure, connector and firmware scope. Also resolve the documented Mega sync numbering conventions before any custom cable.

## Downloads and technical documents

| Resource                                                                                                                                                                                                                                                                                                                                                                                                                  | Purpose                                                                                               |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- |
| [Mega datasheet v1.1 PDF](https://www.orbbec.com/wp-content/uploads/2023/04/ORBBEC_Datasheet_-Femto-Mega.pdf)                                                                                                                                                                                                                                                                                                             | Power paths, native transports, modes, mechanical and legacy sync-view references                     |
| [Current hardware page](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Femto%20Mega%20Hardware%20Specifications)                                                                                                                                                                                                                                                                              | Current operating modes, dimensions, indicators and thermal requirements                              |
| [2D covered-camera drawing PDF](https://raw.githubusercontent.com/orbbec/OrbbecHardware/main/Femto%20Mega/01_2D%20PDF/011_Femto%20Mega%20with%20covering.pdf) / [covered-camera STEP](https://raw.githubusercontent.com/orbbec/OrbbecHardware/main/Femto%20Mega/02_3D%20STP/021_Femto%20Mega%20with%20covering.stp)                                                                                                       | Actual camera mechanical design; separate no-cover files also exist in the repository                 |
| [Official hardware repository](https://github.com/orbbec/OrbbecHardware/tree/main/Femto%20Mega)                                                                                                                                                                                                                                                                                                                           | Covered/uncovered CAD, connector specifications and reference views                                   |
| [Firmware 1.3.2 archive](https://github.com/orbbec/OrbbecFirmware/releases/download/Femto-Mega-Firmware/FemtoMega_20261019154935_v1.3.2_cbdecb6-543c526.tbz2) / [Mega firmware releases](https://github.com/orbbec/OrbbecFirmware/releases/tag/Femto-Mega-Firmware) / [Linux recovery guide](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Femto%20Mega%20Firmware%20Upgrade%20Instructions) | Exact model images and supported recovery procedure                                                   |
| [Recovery instructions PDF](https://github.com/orbbec/OrbbecFirmware/releases/download/Femto-Mega-Firmware/Femto.Mega.Firmware.Upgrade.Instructions.pdf)                                                                                                                                                                                                                                                                  | Exact Linux recovery connection and UI sequence; not executed here                                    |
| [SDK v2.10.6](https://github.com/orbbec/OrbbecSDK_v2/releases/tag/v2.10.6) / [K4A wrapper v2-main](https://github.com/orbbec/OrbbecSDK-K4A-Wrapper/tree/v2-main)                                                                                                                                                                                                                                                          | Native and compatibility APIs; preserve matching library/extension versions                           |
| [Multi-device synchronization example](https://github.com/orbbec/Multi-Device-Synchronization-Example/tree/v2-main)                                                                                                                                                                                                                                                                                                       | Timing, exposure staggering, network and capture-analysis resources                                   |
| [Mega official document center](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation)                                                                                                                                                                                                                                                                                                               | Setup, depth physics, transforms, IMU, network access, recording/playback, migration and known issues |

### Extended official documentation

These official readers retain the detailed model/concept/sample paths. Use the model and release boundaries above before adapting an advanced example.

| Official reader                                                                                                                                                                                                                                  | Relevant guide section             |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------- |
| [Orbbec GMSL Cameras Supported Hosts and System Requirements](https://doc.orbbec.com/documentation/GMSL%20Camera%20Platform%20Compatibility%20&%20Multi-Camera%20Sync/Orbbec%20GMSL%20Cameras%20Supported%20Hosts%20and%20System%20Requirements) | Software and development resources |
| [Record Multi-Device Synchronized Data with Femto Mega Recorder](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Record%20Multi-Device%20Synchronized%20Data%20with%20Femto%20Mega%20Recorder)                        | Hardware and connections           |
| [Depth Camera (Femto Mega)](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Depth%20Camera%20%28Femto%20Mega%29)                                                                                                      | Software and development resources |
| [Femto Mega Hardware Specifications](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Femto%20Mega%20Hardware%20Specifications)                                                                                        | Hardware and connections           |
| [Access AKDK Application Software with Femto Mega](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Access%20AKDK%20Application%20Software%20with%20Femto%20Mega)                                                      | Software and development resources |
| [K4A Viewer for Femto Mega](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/K4A%20Viewer%20for%20Femto%20Mega)                                                                                                        | Software and development resources |
| [Orbbec SDK and K4A Wrapper Download (Femto Mega)](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Orbbec%20SDK%20and%20K4A%20Wrapper%20Download%20%28Femto%20Mega%29)                                                | Downloads and technical documents  |
| [K4A Viewer for Femto Mega Recorder](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/K4A%20Viewer%20for%20Femto%20Mega%20Recorder)                                                                                    | Software and development resources |
| [System Requirements (Femto Mega)](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/System%20Requirements%20%28Femto%20Mega%29)                                                                                        | Software and development resources |
| [Set up Femto Mega](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Set%20up%20Femto%20Mega)                                                                                                                          | Getting started                    |
| [Femto Mega Firmware Upgrade Instructions](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Femto%20Mega%20Firmware%20Upgrade%20Instructions)                                                                          | Troubleshooting and FAQs           |
| [Set up Cameras for External Synchronization](https://doc.orbbec.com/documentation/Camera%20Accessories/Set%20up%20Cameras%20for%20External%20Synchronization)                                                                                   | Hardware and connections           |
| [K4A Access Femto Mega Network Mode](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/K4A%20Access%20Femto%20Mega%20Network%20Mode)                                                                                    | Software and development resources |
| [Orbbec SDK and K4A Wrapper (Femto Mega)](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Orbbec%20SDK%20and%20K4A%20Wrapper%20%28Femto%20Mega%29)                                                                    | Software and development resources |
| [Generate Your First Femto Mega Application](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Generate%20Your%20First%20Femto%20Mega%20Application)                                                                    | Getting started                    |
| [Orbbec Femto Mega Documentation](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation)                                                                                                                                    | Software and development resources |
| [Synchronize Multiple Femto Mega Devices](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Synchronize%20Multiple%20Femto%20Mega%20Devices)                                                                            | Hardware and connections           |
| [Known Issues and Troubleshooting for Femto Mega](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Known%20Issues%20and%20Troubleshooting%20for%20Femto%20Mega)                                                        | Troubleshooting and FAQs           |
| [Femto Mega Data Recording](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Femto%20Mega%20Data%20Recording)                                                                                                          | Software and development resources |

## References and validation

Reviewed **24 November 2026**, using model datasheet v1.1, current official Mega hardware/setup/recovery articles, hardware CAD repository and pinned native SDK v2.10.6. Source differences in mechanical ordering, WFOV rates and sync numbering are retained rather than silently reconciled. Full camera schematics were not found; connector/CAD files are not a complete schematic or license to modify the unit.

The original procedure and code are source reviewed. **SDK execution, USB/Ethernet camera capture, firmware recovery, body tracking and hardware measurements were not run.** Custom sync wiring remains excluded until the actual connector/cable view is resolved. Official illustrations/downloads and SDK/firmware components retain their original ownership and license terms.

### Reviewed engineering reference chapters

The following chapters preserve the existing wiki’s detailed engineering reference: specifications, calibration and coordinate concepts, metadata, filter behavior, source examples, installation procedures, troubleshooting and manufacturer illustrations. They complement the current commissioning guide above. Revision notes beside affected chapters separate historical SDK or host examples from the model-specific power, firmware and first-result path. No historical command, example output or photograph is a claimed test on this unit.

#### Orbbec Femto Mega 4K RGB + ToF Depth Camera for AI & Robotics <a href="#orbbec-femto-mega-4k-rgb--tof-depth-camera-for-ai-and-robotics" id="orbbec-femto-mega-4k-rgb--tof-depth-camera-for-ai-and-robotics"></a>

[Original store reference](https://openelab.io/products/orbbec-femto-mega-tof-camera)

#### Femto Mega Hardware Specifications <a href="#femto-mega-hardware-specifications" id="femto-mega-hardware-specifications"></a>

*Reviewed source:* [*Femto Mega Hardware Specifications*](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Femto%20Mega%20Hardware%20Specifications)*. Manufacturer figures and source examples retain their original attribution and rights.*

This document details the specifications and some design details of the ORBBEC® Femto Mega 3D camera product for developers’ understanding and use.

![Official Orbbec figure from Femto Mega Hardware Specifications](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2024/01/05013929/image-1.png)

#### 1. Terminology <a href="#id-1.-terminology" id="id-1.-terminology"></a>

The following abbreviation terms are used throughout.

* NFOV (Narrow Field of View depth mode)
* WFOV (Wide Field of View depth mode)
* FOV (Field of View)
* FPS (Frames per Second)
* IMU (Inertial Measurement Unit)
* FoI (Field of Interest)

#### 2. Product Dimensions and Weight <a href="#id-2.-product-dimensions-and-weight" id="id-2.-product-dimensions-and-weight"></a>

The Femto Mega device dimensions and weight are:

* Dimensions: 115.30 × 143.5 × 40.3mm
* Weight: 560g

For more information, please refer to the github <https://github.com/orbbec/OrbbecHardware>

![Official Orbbec figure from Femto Mega Hardware Specifications](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2024/01/05013954/2.png)

#### 3. Operating Environment <a href="#id-3.-operating-environment" id="id-3.-operating-environment"></a>

Femto Mega is intended for use by developers and commercial deployments operating under these environmental conditions:

* Temperature: 10-25°C
* Humidity: 8-90% (non-condensing) relative humidity

Note: Operation outside these conditions may result in device failure and/or abnormal operation. These environment conditions pertain to the ambient environment immediately surrounding the device while in operation under all use cases. If used with an external enclosure, effective temperature control and/or other heat dissipation solutions are recommended to maintain operating conditions within these ranges. A thermal channel is designed between the front face and rear cannister of the device. Do not obstruct this thermal channel when using the device.

#### 4. Depth Camera Supported Operating Modes <a href="#id-4.-depth-camera-supported-operating-modes" id="id-4.-depth-camera-supported-operating-modes"></a>

Femto Mega integrates a 1 megapixel Time-of-Flight (ToF) depth camera. The depth camera supports the following modes as described:

| Mode                 | Resolution | FoI       | FPS        | Operating range\* | Exposure time |
| -------------------- | ---------- | --------- | ---------- | ----------------- | ------------- |
| NFOV unbinned        | 640×576    | 75°x65°   | 5、15、25、30 | 0.5 – 3.86 m      | 12.8 ms       |
| NFOV 2×2 binned (SW) | 320×288    | 75°x65°   | 5、15、25、30 | 0.5 – 5.46 m      | 12.8 ms       |
| WFOV 2×2 binned      | 512×512    | 120°x120° | 5、15、25、30 | 0.25 – 2.88 m     | 12.8 ms       |
| WFOV unbinned        | 1024×1024  | 120°x120° | 5、15、25    | 0.25 – 2.21 m     | 20.3 ms       |
| Passive IR           | 1024×1024  | N/A       | 5、15、25、30 | N/A               | 1.6 ms        |

\*850nm at 15% to 95% reflectivity, 2.2 μW/cm2/nm, standard deviation of random error ≤ 17 mm, typical system error < 11 mm + 0.1% of distance (no multi-path interference). Depth can be provided beyond the indicated operating range depending on object reflectivity.

#### 5. Color Camera Supported Operating Modes <a href="#id-5.-color-camera-supported-operating-modes" id="id-5.-color-camera-supported-operating-modes"></a>

The native operating modes are listed below:

| RGB Camera Resolution (HxV) | Aspect Ratio | Format Options         | Frame Rates (FPS) | Nominal FOV (HxV)(post-processed) |
| --------------------------- | ------------ | ---------------------- | ----------------- | --------------------------------- |
| 3840×2160                   | 16:9         | MJPEG/YUY2/H.264/H.265 | 5、15、25           | 80°x51°                           |
| 2560×1440                   | 16:9         | MJPEG/YUY2/H.264/H.265 | 5、15、25           | 80°x51°                           |
| 1920×1080                   | 16:9         | MJPEG/YUY2/H.264/H.265 | 5、15、25、30        | 80°x51°                           |
| 1280×720                    | 16:9         | MJPEG/YUY2/H.264/H.265 | 5、15、25、30        | 80°x51°                           |
| 1280×960                    | 4:3          | MJPEG/YUY2/H.264/H.265 | 5、15、25、30        | 65°x51°                           |

Note: The SDK can provide color images in BGRA pixel format. This is not a natively supported mode by the device and will result in increased CPU load. The host CPU is used to convert from the MJPEG images received from the device.

#### 6. Depth Sensor Raw Timing <a href="#id-6.-depth-sensor-raw-timing" id="id-6.-depth-sensor-raw-timing"></a>

| Depth Mode                                    | IR Pulses | Pulse Width | Idle Periods | Idle Time | Exposure Time |
| --------------------------------------------- | --------- | ----------- | ------------ | --------- | ------------- |
| NFOV Unbinned NFOV 2×2 Binned WFOV 2×2 Binned | 9         | 125 us      | 8            | 1450 us   | 12.8 ms       |
| WFOV Unbinned                                 | 9         | 125 us      | 8            | 2390 us   | 20.3 ms       |

#### 7. Camera Fields of View <a href="#id-7.-camera-fields-of-view" id="id-7.-camera-fields-of-view"></a>

The image below shows the depth and RGB camera fields of view (what the sensors see). The 16:9 mode RGB camera is shown below.

![Official Orbbec figure from Femto Mega Hardware Specifications](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/12/07033321/image005.jpg)

This depicts the camera fields of view at a distance of 2000 mm straight ahead.

![Official Orbbec figure from Femto Mega Hardware Specifications](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/12/07033326/image007-1-e1701920140190.png)

Note: For depth in NFOV mode, RGB camera pixel overlap is better in 4:3 mode than 16:9 mode.

#### 8. Inertial Measurement Unit (IMU) <a href="#id-8.-inertial-measurement-unit-imu" id="id-8.-inertial-measurement-unit-imu"></a>

The embedded Inertial Measurement Unit (IMU) is a LSM6DSMUS, containing accelerometer and gyroscope. 6-axis accelerometer & 6-axis gyroscope, data format is float, frequency range is 50-2000Hz.

#### 9. Indicator Lights <a href="#id-9.-indicator-lights" id="id-9.-indicator-lights"></a>

An indicator light on the front of the device signals the working status of the device, on by default and can be manually switched off.

A status LED on the back of the device indicates:

| When the light is | It means                                                 |
| ----------------- | -------------------------------------------------------- |
| Solid white       | Device is on and working properly.                       |
| Flashing white    | Device is on but doesn’t have a USB 3.0 data connection. |
| Flashing amber    | Device doesn’t have enough power to operate.             |

#### 10. Powering the Device <a href="#id-10.-powering-the-device" id="id-10.-powering-the-device"></a>

{% hint style="info" %}
Use the documented PoE+ or adapter/USB arrangement and the actual power budget. Ordinary Ethernet is not proof of powered PoE, and a host USB connection alone is not the baseline full-power configuration.
{% endhint %}

The device can be powered in three ways:

1. Using the supplied power adapter. The power connector has an outer diameter of 5.5mm and an inner diameter of 2.1mm.
2. Power and data transfer via a Type-C to Type-C cable.
3. Power over Ethernet (PoE) supply + Gigabit Ethernet data transmission

Note: The supplied power cable is a USB Type-A to barrel jack. Use this cable along with the supplied wall adapter. Two standard USB Type-A ports do not provide sufficient power for this device.

The USB cable is very important, a quality cable is recommended and functionality should be validated before remote deployment of the unit.

Tips for a good Type-C to Type-C cable:

* USB certified cable – must support power and data transfer
* Passive cables should be less than 1.5m length, use active for longer
* Cable needs to support at least 1.5A current, otherwise external power required
* Test cable:
  * Connect device to host PC with cable
  * Verify all devices appear correctly in Windows Device Manager. Depth and RGB cameras should appear as shown in example below.

![Official Orbbec figure from Femto Mega Hardware Specifications](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2024/01/05095157/3-2.png)

* Verify cable reliably streams all sensor data in K4A Viewer with these settings:
  * Depth camera: NFOV unbinned
  * RGB camera: 2160p

#### 11. Power Consumption <a href="#id-11.-power-consumption" id="id-11.-power-consumption"></a>

{% hint style="info" %}
Use the documented PoE+ or adapter/USB arrangement and the actual power budget. Ordinary Ethernet is not proof of powered PoE, and a host USB connection alone is not the baseline full-power configuration.
{% endhint %}

Femto Mega peak power consumption is 16W with DC power + Type-C data transfer; 14W with Type-C power + Type-C data transfer.17W with Power over Ethernet (PoE) .Power consumption is use case dependent.

#### 12. Calibration <a href="#id-12.-calibration" id="id-12.-calibration"></a>

Femto Mega devices are calibrated at the factory. Calibration parameters for the visual sensors and inertial sensors can be programmatically queried via the Sensor SDK.

#### System Requirements (Femto Mega) <a href="#system-requirements-femto-mega" id="system-requirements-femto-mega"></a>

*Reviewed source:* [*System Requirements (Femto Mega)*](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/System%20Requirements%20%28Femto%20Mega%29)*. Manufacturer figures and source examples retain their original attribution and rights.*

{% hint style="info" %}
The chapter retains its documented SDK/API generation. Older `deviceCount()`, `name()` and K4A examples are reference implementations, not a claim that they compile against Orbbec SDK v2.10.6. Use the original version-pinned first-result program above for that release. Package names, OS baselines, wrappers and firmware must be matched independently; no retained example or installer was executed in this review.

PASS and Not tested entries below are the manufacturer’s results for its listed host/OS/SDK configuration, not tests performed for this guide. Recheck the current release platform matrix before applying an older host result to a new SDK or kernel.
{% endhint %}

This document details the system requirements to install the SDK and successfully deploy Femto Mega.

#### 1. Supported Operating Systems and Architectures <a href="#id-1.-supported-operating-systems-and-architectures" id="id-1.-supported-operating-systems-and-architectures"></a>

The Femto Mega features a built-in TOF depth computing capability, directly outputting depth data with minimal dependency on the host system. The FemtoMega supports both USB and network modes

* Windows 10/11 x64 systems, compatible with both FemotMega network and USB modes.
* Ubuntu 20.04 x64 and above, also supports both FemotMega network and USB modes.
* ArmLinux 32/64, supports both FemotMega network and USB modes.
* Mac OS 11 and above, M1/M2/Intel, compatible with both FemotMega network and USB modes.
* Support for Android and iOS will also be available soon

#### 2. Development Environment Requirements <a href="#id-2.-development-environment-requirements" id="id-2.-development-environment-requirements"></a>

To contribute to the Sensor SDK, visit [Github](https://github.com/orbbec) .

#### 3. Minimum Host PC Hardware Requirements <a href="#id-3.-minimum-host-pc-hardware-requirements" id="id-3.-minimum-host-pc-hardware-requirements"></a>

{% hint style="info" %}
PASS and Not tested entries below are the manufacturer’s results for its listed host/OS/SDK configuration, not tests performed for this guide. Recheck the current release platform matrix before applying an older host result to a new SDK or kernel.
{% endhint %}

The hardware requirements for the host PC depend on the application/algorithms/sensor frame rates/resolutions run on the host. The minimum Sensor SDK configuration recommended for Windows is:

* 7th Generation Intel® CoreTM i3 Processor (Dual-Core 2.4 GHz with HD620 or faster GPU)
* 4 GB Memory
* Dedicated USB3 port
* Graphics driver supporting OpenGL 4.4 or DirectX 11.0

Lower-end or older CPUs may also work depending on the specific use case.

Additionally, performance varies based on Windows/Linux OS and graphics drivers used.

#### 4. Host PC Hardware Requirements for Body Tracking <a href="#id-4.-host-pc-hardware-requirements-for-body-tracking" id="id-4.-host-pc-hardware-requirements-for-body-tracking"></a>

{% hint style="info" %}
PASS and Not tested entries below are the manufacturer’s results for its listed host/OS/SDK configuration, not tests performed for this guide. Recheck the current release platform matrix before applying an older host result to a new SDK or kernel.
{% endhint %}

The requirements for a body tracking host PC are higher than for a general host PC. The minimum body tracking SDK configuration recommended for Windows is:

* 7th Generation Intel® CoreTM i5 Processor (Quad-Core 2.4 GHz or faster)
* 4 GB Memory
* NVIDIA GEFORCE GTX 1050 or equivalent
* Dedicated USB3 port

The minimum recommended assumes K4A\_DEPTH\_MODE\_NFOV\_UNBINNED depth mode at 30fps tracking 5 people. Lower-end or older CPU and NVIDIA GPUs may also work depending on the specific use case.

#### 5. USB3 <a href="#id-5.-usb3" id="id-5.-usb3"></a>

Some known USB host controller compatibility issues can be found in Troubleshooting.

#### Set up Femto Mega <a href="#set-up-femto-mega" id="set-up-femto-mega"></a>

*Reviewed source:* [*Set up Femto Mega*](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Set%20up%20Femto%20Mega)*. Manufacturer figures and source examples retain their original attribution and rights.*

{% hint style="info" %}
Use the documented PoE+ or adapter/USB arrangement and the actual power budget. Ordinary Ethernet is not proof of powered PoE, and a host USB connection alone is not the baseline full-power configuration.
{% endhint %}

This quickstart provides guidance on how to set up your Femto Mega, including how to test 3D camera stream visualization and use associated capabilities.

#### 1. System Requirements <a href="#id-1.-system-requirements" id="id-1.-system-requirements"></a>

{% hint style="info" %}
The chapter retains its documented SDK/API generation. Older `deviceCount()`, `name()` and K4A examples are reference implementations, not a claim that they compile against Orbbec SDK v2.10.6. Use the original version-pinned first-result program above for that release. Package names, OS baselines, wrappers and firmware must be matched independently; no retained example or installer was executed in this review.

PASS and Not tested entries below are the manufacturer’s results for its listed host/OS/SDK configuration, not tests performed for this guide. Recheck the current release platform matrix before applying an older host result to a new SDK or kernel.
{% endhint %}

Review the [Hardware Specifications](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Femto%20Mega%20Hardware%20Specifications) to verify your host computer configuration meets all minimum requirements for Femto Mega.

#### 2. Set up Hardware <a href="#id-2.-set-up-hardware" id="id-2.-set-up-hardware"></a>

Note: Make sure to remove the protective film from the camera prior to use.

1. Insert the power connector into the power jack on the back of the device. Connect the USB power adapter to the other end of the cable, then plug the adapter into a power outlet.
2. Connect one end of the USB data cable to the device and the other end to a USB 3.0 port on your PC.

Note: For best results, connect cables directly to the device and computer. Avoid extenders or additional adapters in connections.

1. Verify the power indicator LED (next to the USB cable) is solid white.

It takes a few seconds for the device to power on. The device is ready for use when the streaming LED indicator on the front goes out.

For details on the power indicator LED, see [Hardware Specifications](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Femto%20Mega%20Hardware%20Specifications).

![Official Orbbec figure from Set up Femto Mega](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2024/01/05015211/image-2.png)

#### 3. Download the SDK <a href="#id-3.-download-the-sdk" id="id-3.-download-the-sdk"></a>

1. Go to the [Orbbec SDK and K4A Wrapper](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Orbbec%20SDK%20and%20K4A%20Wrapper%20Download%20%28Femto%20Mega%29)download link.
2. Install the SDK on your PC.

#### 4. Update Firmware <a href="#id-4.-update-firmware" id="id-4.-update-firmware"></a>

{% hint style="info" %}
Read the camera identity and current firmware first, save settings, stop streams, and use only the exact model/hardware package. The older Viewer screenshots describe an update workflow, not permission to flash another model or repeat updates through an unresolved power/network fault. Use the release/firmware pairing in the core software section; restore power only at the updater’s documented checkpoint.

For Nano-board BOM changes, the current release/PCN boundary in the core recovery section takes precedence over an older screenshot or filename. Do not downgrade a new-BOM unit to an incompatible older image.
{% endhint %}

The latest firmware version is required for the SDK to function properly. To check and update the firmware version, follow the steps in [Update Femto Mega Firmware](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Femto%20Mega%20Firmware%20Upgrade%20Instructions).

#### 5. Verify Device Streams Data <a href="#id-5.-verify-device-streams-data" id="id-5.-verify-device-streams-data"></a>

1. Launch the [K4A Viewer Tool](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/K4A%20Viewer%20for%20Femto%20Mega), either from the command line or by double clicking.
2. In the Femto Mega Viewer, select "Open Device" > "Start". ![Official Orbbec figure from Set up Femto Mega](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/12/04083718/202312041-e1701679272579.png)
3. Verify the tool visualizes each sensor stream:

* * Depth camera
  * Color camera
  * Infrared camera
  * IMU

![Official Orbbec figure from Set up Femto Mega](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/12/04083723/202312042.png)

Femto Mega setup is now complete. You can now start developing applications.

If you encounter any issues, check out [Femto Mega Troubleshooting](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Known%20Issues%20and%20Troubleshooting%20for%20Femto%20Mega).

#### 6. Next Steps <a href="#id-6.-next-steps" id="id-6.-next-steps"></a>

With your Femto Mega up and running, you can also learn how to: [Record data to file](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/K4A%20Wrapper%20Recording%20File%20Format%20%28Femto%20Mega%29)

#### Orbbec SDK and K4A Wrapper (Femto Mega) <a href="#orbbec-sdk-and-k4a-wrapper-femto-mega" id="orbbec-sdk-and-k4a-wrapper-femto-mega"></a>

*Reviewed source:* [*Orbbec SDK and K4A Wrapper (Femto Mega)*](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Orbbec%20SDK%20and%20K4A%20Wrapper%20%28Femto%20Mega%29)*. Manufacturer figures and source examples retain their original attribution and rights.*

![Official Orbbec figure from Orbbec SDK and K4A Wrapper (Femto Mega)](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/08/14021931/Femto-Mega-%E6%AD%A3%E5%8F%B345%C2%B0%E8%A7%86%E5%9B%BE-2-1.png)

Femto Mega is a programmable multi-mode Depth and RGB camera with real-time streaming of processed images over Ethernet or USB connections. The camera uses Microsoft’s industry proven ToF technology and the NVIDIA® Jetson™ platform to deliver a comprehensive Depth and RGB vision platform for computer vision and AI developers. With a wide field of view (FOV) and high resolution depth sensor, it’s ideal for robotics, manufacturing, logistics and healthtech applications.

The Femto Mega development environment consists of several SDKs:

* Orbbec SDK K4A Wrapper or Orbbec SDK for accessing the device.
* Human Skeleton Tracking SDK for tracking 3D human bodies.

**Note:**

Using only Orbbec SDK without Orbbec SDK K4A Wrapper cannot use AKDK’s skeleton tracking algorithm.

#### 1. Orbbec SDK and Orbbec SDK K4A Wrapper <a href="#id-1.-orbbec-sdk-and-orbbec-sdk-k4a-wrapper" id="id-1.-orbbec-sdk-and-orbbec-sdk-k4a-wrapper"></a>

Orbbec Femto Mega is a reliable alternative product to Microsoft Azure Kinect DK. We provide two SDKs for this product: Orbbec SDK and Orbbec SDK K4A Wrapper.Since Orbbec cannot provide upgrades and maintenance of the original AKDK development tools, from a long-term perspective, we recommend that you try and use Orbbec SDK that Orbbec has been maintaining and updating as soon as possible. Using Orbbec SDK with Femto Mega will give you richer and more powerful features.To help users who have developed applications using K4A get started with Orbbec Femto Mega more quickly, and achieve seamless replacement of Microsoft AKDK. On top of Orbbec SDK, we encapsulated Orbbec SDK K4A Wrapper that is maximally compatible with K4A API. Using this Wrapper, users basically don’t need to modify their application code.Orbbec SDK and Orbbec SDK K4A Wrapper provide access to complete Femto Mega hardware sensor and device configuration.For more information on Orbbec SDK and Orbbec SDK K4A Wrapper, please refer to

[Using Orbbec SDK K4A Wrapper](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Bolt%20Documentation/Using%20Orbbec%20SDK%20K4A%20Wrapper)

**1.1 Orbbec SDK Features**

Orbbec SDK is the native SDK for Orbbec Femto Mega and can use all the features of Femto Mega:

* Depth camera access, resolution and frame rate control (including passive IR mode)
* RGB camera access, resolution, frame rate and image effect control (e.g. exposure, white balance, mirroring)
* IMU (gyroscope and accelerometer) access, sampling rate and range control
* Hardware synchronization of depth and color cameras and software synchronization (match by frame timestamp to achieve software synchronization) on the SDK side, configurable inter-camera delay
* External device synchronization control, configurable inter-device delay offset
* Free Run mode enables different frame rate configurations for depth and color cameras
* Access camera frame metadata for handling image resolution, timestamps, etc.
* Access to device calibration data
* Utility filters such as color image format conversion, point cloud data generation
* Depth data stream output aligned to color (i.e. D2C, output depth coordinate system and image resolution consistent with RGB)
* Complete setting information acquisition (device name, firmware version, SN, device temperature, etc.)
* Data recording function supports data compression
* Native C/C++ API and Python, ROS1, ROS2, Android wrappers

In addition, Orbbec SDK also supports almost all Orbbec’s mainstream cameras.

**1.2 Orbbec SDK K4A Wrapper Features**

Orbbec SDK and Orbbec SDK K4A Wrapper provide the following features that can run on Femto Mega once installed:

* Depth camera access and mode control (passive IR mode, wide field-of-view and narrow field-of-view depth modes)
* RGB camera access and control (e.g. exposure and white balance)
* Motion sensor (gyroscope and accelerometer) access
* Synchronized depth and RGB camera streams with configurable inter-camera delay
* External device synchronization control with configurable inter-device delay offset
* Access camera frame metadata for handling image resolution, timestamps, etc.
* Access device calibration data

**1.3 Femto Mega SDK Tools**

Orbbec SDK K4A Wrapper provides the following tools:

* Viewer tool that can be used to monitor device data streams and configure different modes
* Sensor recording tool and playback reader API using Matroska container format

#### 2. Human Skeleton Tracking SDK <a href="#id-2.-human-skeleton-tracking-sdk" id="id-2.-human-skeleton-tracking-sdk"></a>

The human skeleton tracking algorithm SDK uses Microsoft’s human skeleton tracking algorithm, namely: Azure Kinect Body Tracking SDK.To use the human skeleton tracking algorithm on Femto Mega hardware, please refer to:Azure Kinect Body Tracking Features

**2.1 Access AKDK Applications with Femto Mega**

Femto Mega supports accessing Azure Kinect Body Tracking SDK to obtain human body tracking features and effects completely consistent with using AKDK:

* Provides human image segmentation
* Skeletons of partial or full bodies within the FOV range
* Provides unique identification for each human body
* Can track human bodies in real time

**2.2 Azure Kinect Body Tracking Tools**

After accessing Azure Kinect Body Tracking SDK with Femto Mega, the following functions can be supported using the viewer tool in this SDK:

* The body tracker provides a viewer tool to see how it tracks 3D human bodies.

#### 3. Femto Mega Hardware Requirements <a href="#id-3.-femto-mega-hardware-requirements" id="id-3.-femto-mega-hardware-requirements"></a>

Femto Mega is a high performance iToF 3D camera jointly developed by Orbbec and Microsoft. The camera uses the same depth module as Azure Kinect DK, continuing the same depth modes and performance. For details, please refer to

[Hardware Specifications.](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Femto%20Mega%20Hardware%20Specifications)

#### 4. Next Steps <a href="#id-4.-next-steps" id="id-4.-next-steps"></a>

Now that you have a preliminary understanding of Femto Mega, please go in depth into its various functions and make corresponding settings! Quick Start:

[Hardware Specifications](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Femto%20Mega%20Hardware%20Specifications),

[Set up Femto Mega](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Set%20up%20Femto%20Mega)

#### Generate Your First Femto Mega Application <a href="#generate-your-first-femto-mega-application" id="generate-your-first-femto-mega-application"></a>

*Reviewed source:* [*Generate Your First Femto Mega Application*](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Generate%20Your%20First%20Femto%20Mega%20Application)*. Manufacturer figures and source examples retain their original attribution and rights.*

{% hint style="info" %}
The chapter retains its documented SDK/API generation. Older `deviceCount()`, `name()` and K4A examples are reference implementations, not a claim that they compile against Orbbec SDK v2.10.6. Use the original version-pinned first-result program above for that release. Package names, OS baselines, wrappers and firmware must be matched independently; no retained example or installer was executed in this review.
{% endhint %}

Want to get started with your Femto Mega? This quickstart guide will help you get your device powered on and running successfully!

This document will introduce the following functions:

* [k4a\_device\_get\_installed\_count()](https://orbbec.github.io/docs/OrbbecSDK_K4A_Wrapper/main/group___functions.html#ga4a94d1a30b614cd9c1a42e7a9aa79b13)
* [k4a\_device\_open()](https://orbbec.github.io/docs/OrbbecSDK_K4A_Wrapper/main/group___functions.html#gae9972f1c1a771813e3f6c7e75fefd96a)
* [k4a\_device\_get\_serialnum()](https://orbbec.github.io/docs/OrbbecSDK_K4A_Wrapper/main/group___functions.html#gad9f91d0ff216404332b25752ab9b3721)
* [k4a\_device\_start\_cameras()](https://orbbec.github.io/docs/OrbbecSDK_K4A_Wrapper/main/group___functions.html#gadcba304c93173494cc3f065623bf62ae)
* [k4a\_device\_stop\_cameras()](https://orbbec.github.io/docs/OrbbecSDK_K4A_Wrapper/main/group___functions.html#ga5dc4ae0635c75c85fd73011f0796375d)
* [k4a\_device\_close()](https://orbbec.github.io/docs/OrbbecSDK_K4A_Wrapper/main/group___functions.html#ga22e23c55a90f8e07d1c8a3fb7b3db6af)

#### 1. Prerequisites <a href="#id-1.-prerequisites" id="id-1.-prerequisites"></a>

1. You have completed [Set up Femto Mega](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Set%20up%20Femto%20Mega).
2. The SDK is installed from [Download Orbbec SDK and K4A Wrapper](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Orbbec%20SDK%20and%20K4A%20Wrapper%20Download%20%28Femto%20Mega%29).

*Retained chapter example or transcript; source/API revision applies. Not executed or compiled for this guide.*

{% code collapsedlinecount="10" %}

```
#include <k4a/k4a.h>
```

{% endcode %}

#### 2. Header Files <a href="#id-2.-header-files" id="id-2.-header-files"></a>

Just one header file is needed, k4a.h. Make sure your chosen compiler is set up to use the SDK libraries and include folder. The k4a.lib and k4a.dll files will also need to be linked.

*Retained chapter example or transcript; source/API revision applies. Not executed or compiled for this guide.*

{% code collapsedlinecount="10" %}

```
uint32_t count = k4a_device_get_installed_count();
```

{% endcode %}

#### 3. Find Femto Mega Device <a href="#id-3.-find-femto-mega-device" id="id-3.-find-femto-mega-device"></a>

Multiple Femto Mega devices can be connected to a computer. First, we’ll use the [k4a\_device\_get\_installed\_count()](https://orbbec.github.io/docs/OrbbecSDK_K4A_Wrapper/main/group___functions.html#ga4a94d1a30b614cd9c1a42e7a9aa79b13) function to determine if any devices are connected, or how many there are. This function should work right away without any additional setup.

*Retained chapter example or transcript; source/API revision applies. Not executed or compiled for this guide.*

{% code collapsedlinecount="10" %}

```
uint32_t count = k4a_device_get_installed_count();
```

{% endcode %}

Once a device is found to be connected to the computer, it can be opened with [k4a\_device\_open()](https://orbbec.github.io/docs/OrbbecSDK_K4A_Wrapper/main/group___functions.html#gae9972f1c1a771813e3f6c7e75fefd96a). The index of the device to open can be provided, or just K4A\_DEVICE\_DEFAULT for the first device.

*Retained chapter example or transcript; source/API revision applies. Not executed or compiled for this guide.*

{% code collapsedlinecount="10" %}

```
// Open the first plugged in Kinect device
k4a_device_t device = NULL;
k4a_device_open(K4A_DEVICE_DEFAULT, &device);
```

{% endcode %}

As with most things in the Azure Kinect library, when you open something, you should also close it when finished! Make sure to call [k4a\_device\_close()](https://orbbec.github.io/docs/OrbbecSDK_K4A_Wrapper/main/group___functions.html#ga22e23c55a90f8e07d1c8a3fb7b3db6af) when closing.

*Retained chapter example or transcript; source/API revision applies. Not executed or compiled for this guide.*

{% code collapsedlinecount="10" %}

```
k4a_device_close(device);
```

{% endcode %}

After opening the device, we can test it is working properly. Let’s read the device serial number!

*Retained chapter example or transcript; source/API revision applies. Not executed or compiled for this guide.*

{% code collapsedlinecount="10" %}

```
// Get the size of the serial number
size_t serial_size = 0;
k4a_device_get_serialnum(device, NULL, &serial_size);

// Allocate memory for the serial, then acquire it
char *serial = (char*)(malloc(serial_size));
k4a_device_get_serialnum(device, serial, &serial_size);
printf("Opened device: %s\n", serial);
free(serial);
```

{% endcode %}

#### 4. Start Cameras <a href="#id-4.-start-cameras" id="id-4.-start-cameras"></a>

After opening the device, the cameras need to be configured using a [k4a\_device\_configuration\_t](https://orbbec.github.io/docs/OrbbecSDK_K4A_Wrapper/main/group___structures.html#gaa3764c9309d6fae0a927be1327965633) object. There are many different options available in the camera configuration. Choose settings most appropriate for your scenario.

*Retained chapter example or transcript; source/API revision applies. Not executed or compiled for this guide.*

{% code collapsedlinecount="10" %}

```
// Configure a stream of 3840x2160 BRGA color data at 15 frames per second
k4a_device_configuration_t config = K4A_DEVICE_CONFIG_INIT_DISABLE_ALL;
config.camera_fps       = K4A_FRAMES_PER_SECOND_15;
config.color_format     = K4A_IMAGE_FORMAT_COLOR_BGRA32;
config.color_resolution = K4A_COLOR_RESOLUTION_2160P;

// Start the camera with the given configuration
k4a_device_start_cameras(device, &config);

// ...Camera capture and application specific code would go here...

// Shut down the camera when finished with application logic
k4a_device_stop_cameras(device);
```

{% endcode %}

#### 5. Error Handling <a href="#id-5.-error-handling" id="id-5.-error-handling"></a>

For brevity, error handling will not be shown in all examples. But error handling is always important! Many functions return a regular success/failure type [k4a\_result\_t](https://orbbec.github.io/docs/OrbbecSDK_K4A_Wrapper/main/group___enumerations.html#ga4b419a99aa2220b076a4520dc2afd1e5), or more specific variables with extra details like [k4a\_wait\_result\_t](https://orbbec.github.io/docs/OrbbecSDK_K4A_Wrapper/main/group___enumerations.html#ga44c7c0c1cfba7c879e9e2da1a869e4ee). Check the documentation for each function or IntelliSense to see expected error messages the function can return!

We can check function results with the [K4A\_SUCCEEDED](https://orbbec.github.io/docs/OrbbecSDK_K4A_Wrapper/main/group___macros.html#ga8e5b48150bc243c6052793bd830c2fcd) and [K4A\_FAILED](https://orbbec.github.io/docs/OrbbecSDK_K4A_Wrapper/main/group___macros.html#ga8e5b48150bc243c6052793bd830c2fcd) macros. So in addition to opening the Femto Mega device, we can also protect function calls like:

*Retained chapter example or transcript; source/API revision applies. Not executed or compiled for this guide.*

{% code collapsedlinecount="10" %}

```
// Open the first plugged in Kinect device
k4a_device_t device = NULL;
if ( K4A_FAILED( k4a_device_open(K4A_DEVICE_DEFAULT, &device) ) )
{
  printf("Failed to open k4a device!\n");
  return;
}
```

{% endcode %}

#### 6. Full Source <a href="#id-6.-full-source" id="id-6.-full-source"></a>

*Retained chapter example or transcript; source/API revision applies. Not executed or compiled for this guide.*

{% code collapsedlinecount="10" %}

```
#pragma comment(lib, "k4a.lib")
#include <k4a/k4a.h>
#include <stdio.h>
#include <stdlib.h>

int main()
{
  uint32_t count = k4a_device_get_installed_count();
  if (count == 0)
  {
    printf("No k4a devices attached!\n");
    return 1;
  }

  // Open the first plugged in Kinect device
  k4a_device_t device = NULL;
  if (K4A_FAILED(k4a_device_open(K4A_DEVICE_DEFAULT, &device))) 
  {
    printf("Failed to open k4a device!\n");
    return 1;
  }

  // Get the size of the serial number 
  size_t serial_size = 0;
  k4a_device_get_serialnum(device, NULL, &serial_size);

  // Allocate memory for the serial, then acquire it
  char *serial = (char*)(malloc(serial_size));
  k4a_device_get_serialnum(device, serial, &serial_size);

  printf("Opened device: %s\n", serial);
  free(serial);

  // Configure a stream of 3840x2160 BRGA color data at 15 frames per second
  k4a_device_configuration_t config = K4A_DEVICE_CONFIG_INIT_DISABLE_ALL;
  config.camera_fps = K4A_FRAMES_PER_SECOND_15; 
  config.color_format = K4A_IMAGE_FORMAT_COLOR_BGRA32;
  config.color_resolution = K4A_COLOR_RESOLUTION_2160P;

  // Start the camera with the given configuration
  if (K4A_FAILED(k4a_device_start_cameras(device, &config)))
  {
    printf("Failed to start cameras!\n");
    k4a_device_close(device);
    return 1;
  }

  // Camera capture and application specific code would go here

  // Shut down the camera when finished with application logic 
  k4a_device_stop_cameras(device);
  k4a_device_close(device);

  return 0;
}
```

{% endcode %}

#### K4A Access Femto Mega Network Mode <a href="#k4a-access-femto-mega-network-mode" id="k4a-access-femto-mega-network-mode"></a>

*Reviewed source:* [*K4A Access Femto Mega Network Mode*](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/K4A%20Access%20Femto%20Mega%20Network%20Mode)*. Manufacturer figures and source examples retain their original attribution and rights.*

{% hint style="info" %}
The chapter retains its documented SDK/API generation. Older `deviceCount()`, `name()` and K4A examples are reference implementations, not a claim that they compile against Orbbec SDK v2.10.6. Use the original version-pinned first-result program above for that release. Package names, OS baselines, wrappers and firmware must be matched independently; no retained example or installer was executed in this review.
{% endhint %}

Do you want to start using the network to access Femto Mega? This quick start guide will help you start and run the device successfully!

This topic describes the following functions:

* [k4a\_device\_get\_installed\_count()](https://orbbec.github.io/docs/OrbbecSDK_K4A_Wrapper/main/group___functions.html#ga4a94d1a30b614cd9c1a42e7a9aa79b13)
* [k4a\_device\_open()](https://orbbec.github.io/docs/OrbbecSDK_K4A_Wrapper/main/group___functions.html#gae9972f1c1a771813e3f6c7e75fefd96a)
* [k4a\_device\_get\_serialnum()](https://orbbec.github.io/docs/OrbbecSDK_K4A_Wrapper/main/group___functions.html#gad9f91d0ff216404332b25752ab9b3721)
* [k4a\_device\_start\_cameras()](https://orbbec.github.io/docs/OrbbecSDK_K4A_Wrapper/main/group___functions.html#gadcba304c93173494cc3f065623bf62ae)
* [k4a\_device\_stop\_cameras()](https://orbbec.github.io/docs/OrbbecSDK_K4A_Wrapper/main/group___functions.html#ga5dc4ae0635c75c85fd73011f0796375d)
* [k4a\_device\_close()](https://orbbec.github.io/docs/OrbbecSDK_K4A_Wrapper/main/group___functions.html#ga22e23c55a90f8e07d1c8a3fb7b3db6af)

#### 1. Precondition <a href="#id-1.-precondition" id="id-1.-precondition"></a>

1. [Set up Femto Mega](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Set%20up%20Femto%20Mega)And upgrade the firmware version to the latest version 1.2.7 or later FemtoMega;
2. The SDK is installed from [Download Orbbec SDK and K4A Wrapper](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Orbbec%20SDK%20and%20K4A%20Wrapper%20Download%20%28Femto%20Mega%29).
3. Make sure that the FemtoMega and Host are in the same LAN (for device discovery)

#### 2. Header File <a href="#id-2.-header-file" id="id-2.-header-file"></a>

Only one header file, namely k4a.h, is required. Make sure that the selected compiler is set to use the SDK library and contains folders. In addition, you need to link the k4a.lib and k4a.dll files.

*Retained chapter example or transcript; source/API revision applies. Not executed or compiled for this guide.*

{% code collapsedlinecount="10" %}

```
#include <k4a/k4a.h>
```

{% endcode %}

#### 3. Find Femto Mega device <a href="#id-3.-find-femto-mega-device-1" id="id-3.-find-femto-mega-device-1"></a>

You can connect multiple Femto Mega devices to a computer.

The network discovery function must be enabled by default (only valid for LAN)

Modify the OrbbecSDKConfig\_v1.0.xml to change the value of EnumerateNetDevice from false to true

![Official Orbbec figure from K4A Access Femto Mega Network Mode](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2024/01/05020927/1-2.png)

First, we will use[k4a\_device\_get\_installed\_count()](https://orbbec.github.io/docs/OrbbecSDK_K4A_Wrapper/main/group___functions.html#ga4a94d1a30b614cd9c1a42e7a9aa79b13)Function to determine the number of devices or whether any devices are connected. This function should run immediately without additional settings.

*Retained chapter example or transcript; source/API revision applies. Not executed or compiled for this guide.*

{% code collapsedlinecount="10" %}

```
uint32_t count = k4a_device_get_installed_count();
```

{% endcode %}

After confirming that a device is connected to a computer, you can use[k4a\_device\_open()](https://orbbec.github.io/docs/OrbbecSDK_K4A_Wrapper/main/group___functions.html#gae9972f1c1a771813e3f6c7e75fefd96a)Open it. You can provide the index of the device you want to open, or use K4A\_DEVICE\_DEFAULT only for the first device.

*Retained chapter example or transcript; source/API revision applies. Not executed or compiled for this guide.*

{% code collapsedlinecount="10" %}

```
// Open the first plugged in Kinect device
k4a_device_t device = NULL;
k4a_device_open(K4A_DEVICE_DEFAULT, &device);
```

{% endcode %}

Like most content in the Azure Kinect library, when you open a certain content, you should also close it when it is used up! When disabled, remember to call[k4a\_device\_close()](https://orbbec.github.io/docs/OrbbecSDK_K4A_Wrapper/main/group___functions.html#ga22e23c55a90f8e07d1c8a3fb7b3db6af).

*Retained chapter example or transcript; source/API revision applies. Not executed or compiled for this guide.*

{% code collapsedlinecount="10" %}

```
k4a_device_close(device);
```

{% endcode %}

After the device is turned on, it can be tested to ensure that it works properly. Let’s read the serial number of the device!

*Retained chapter example or transcript; source/API revision applies. Not executed or compiled for this guide.*

{% code collapsedlinecount="10" %}

```
// Get the size of the serial number
size_t serial_size = 0;
k4a_device_get_serialnum(device, NULL, &serial_size);
```

{% endcode %}

*Retained chapter example or transcript; source/API revision applies. Not executed or compiled for this guide.*

{% code collapsedlinecount="10" %}

```
// Allocate memory for the serial, then acquire it
char *serial = (char*)(malloc(serial_size));
k4a_device_get_serialnum(device, serial, &serial_size);
printf("Opened device: %s\n", serial);
free(serial);
```

{% endcode %}

#### 4. Start Camera <a href="#id-4.-start-camera" id="id-4.-start-camera"></a>

After the device is turned on, you need to use[k4a\_device\_configuration\_t](https://orbbec.github.io/docs/OrbbecSDK_K4A_Wrapper/main/group___structures.html#gaa3764c9309d6fae0a927be1327965633)Object configuration camera. The camera configuration contains a large number of different options. Select the setting that best suits your solution.

*Retained chapter example or transcript; source/API revision applies. Not executed or compiled for this guide.*

{% code collapsedlinecount="10" %}

```
// Configure a stream of 3840×2160 BRGA color data at 15 frames per second
k4a_device_configuration_t config = K4A_DEVICE_CONFIG_INIT_DISABLE_ALL;
config.camera_fps       = K4A_FRAMES_PER_SECOND_15;
config.color_format     = K4A_IMAGE_FORMAT_COLOR_BGRA32;
config.color_resolution = K4A_COLOR_RESOLUTION_2160P;
```

{% endcode %}

*Retained chapter example or transcript; source/API revision applies. Not executed or compiled for this guide.*

{% code collapsedlinecount="10" %}

```
// Start the camera with the given configuration
k4a_device_start_cameras(device, &config);
```

{% endcode %}

*Retained chapter example or transcript; source/API revision applies. Not executed or compiled for this guide.*

{% code collapsedlinecount="10" %}

```
// …Camera capture and application specific code would go here…
```

{% endcode %}

*Retained chapter example or transcript; source/API revision applies. Not executed or compiled for this guide.*

{% code collapsedlinecount="10" %}

```
// Shut down the camera when finished with application logic
k4a_device_stop_cameras(device);
```

{% endcode %}

#### 5. Error Handling <a href="#id-5.-error-handling-1" id="id-5.-error-handling-1"></a>

For simplicity, we will not show error handling in some examples. However, error handling is always important! Many functions return the success/failure type of the regular.[k4a\_result\_t](https://orbbec.github.io/docs/OrbbecSDK_K4A_Wrapper/main/group___enumerations.html#ga4b419a99aa2220b076a4520dc2afd1e5), or more specific variables that contain detailed information, such[k4a\_wait\_result\_t](https://orbbec.github.io/docs/OrbbecSDK_K4A_Wrapper/main/group___enumerations.html#ga44c7c0c1cfba7c879e9e2da1a869e4ee). Check the documentation or IntelliSense of each function for expected error messages!

Can be used[K4A\_SUCCEEDED](https://orbbec.github.io/docs/OrbbecSDK_K4A_Wrapper/main/group___macros.html#ga8e5b48150bc243c6052793bd830c2fcd)And[K4A\_FAILED](https://orbbec.github.io/docs/OrbbecSDK_K4A_Wrapper/main/group___macros.html#ga8e5b48150bc243c6052793bd830c2fcd)The result of the macro check function. Therefore, in addition to opening Femto Mega device, we can also protect function calls as follows:

*Retained chapter example or transcript; source/API revision applies. Not executed or compiled for this guide.*

{% code collapsedlinecount="10" %}

```
// Open the first plugged in Kinect device
k4a_device_t device = NULL;
if ( K4A_FAILED( k4a_device_open(K4A_DEVICE_DEFAULT, &device) ) )
{
printf("Failed to open k4a device!\n");
return;
}
```

{% endcode %}

#### 6. Complete Source Code <a href="#id-6.-complete-source-code" id="id-6.-complete-source-code"></a>

*Retained chapter example or transcript; source/API revision applies. Not executed or compiled for this guide.*

{% code collapsedlinecount="10" %}

```
#pragma comment(lib, "k4a.lib")
#include <k4a/k4a.h>

#include <stdio.h>
#include <stdlib.h>

int main()
{
uint32_t count = k4a_device_get_installed_count();
if (count == 0)
{
printf("No k4a devices attached!\n");
return 1;
}

// Open the first plugged in Kinect device
k4a_device_t device = NULL;
if (K4A_FAILED(k4a_device_open(K4A_DEVICE_DEFAULT, &device)))
{
printf("Failed to open k4a device!\n");
return 1;
}

// Get the size of the serial number
size_t serial_size = 0;
k4a_device_get_serialnum(device, NULL, &serial_size);

// Allocate memory for the serial, then acquire it
char *serial = (char*)(malloc(serial_size));
k4a_device_get_serialnum(device, serial, &serial_size);
printf("Opened device: %s\n", serial);
free(serial);

// Configure a stream of 3840×2160 BRGA color data at 15 frames per second
k4a_device_configuration_t config = K4A_DEVICE_CONFIG_INIT_DISABLE_ALL;
config.camera_fps       = K4A_FRAMES_PER_SECOND_15;
config.color_format     = K4A_IMAGE_FORMAT_COLOR_BGRA32;
config.color_resolution = K4A_COLOR_RESOLUTION_2160P;

// Start the camera with the given configuration
if (K4A_FAILED(k4a_device_start_cameras(device, &config)))
{
printf("Failed to start cameras!\n");
k4a_device_close(device);
return 1;
}

// Camera capture and application specific code would go here

// Shut down the camera when finished with application logic
k4a_device_stop_cameras(device);
k4a_device_close(device);

return 0;
}
```

{% endcode %}

#### Access AKDK Application Software with Femto Mega <a href="#access-akdk-application-software-with-femto-mega" id="access-akdk-application-software-with-femto-mega"></a>

*Reviewed source:* [*Access AKDK Application Software with Femto Mega*](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Access%20AKDK%20Application%20Software%20with%20Femto%20Mega)*. Manufacturer figures and source examples retain their original attribution and rights.*

{% hint style="info" %}
The chapter retains its documented SDK/API generation. Older `deviceCount()`, `name()` and K4A examples are reference implementations, not a claim that they compile against Orbbec SDK v2.10.6. Use the original version-pinned first-result program above for that release. Package names, OS baselines, wrappers and firmware must be matched independently; no retained example or installer was executed in this review.
{% endhint %}

#### 1. Overview <a href="#id-1.-overview" id="id-1.-overview"></a>

Orbbec SDK K4A Wrapper is designed and encapsulated based on Orbbec SDK, converting Orbbec SDK to Azure Kinect Sensor SDK interfaces. It mainly implements data stream reception, color parameter setting, D2C and point cloud functions, recording and playback, consistent APIs with Azure Kinect Sensor SDK, allowing users to quickly switch to Orbbec Femto Mega and Orbbec Femto Mega cameras without modifying the application code.

Orbbec SDK K4A Wrapper open source link: <https://github.com/orbbec/OrbbecSDK-K4A-Wrapper>

The implementation principle of Orbbec SDK K4A Wrapper is as follows:

The characteristics of Orbbec SDK K4A Wrapper are as follows:

![Official Orbbec figure from Access AKDK Application Software with Femto Mega](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/12/05062757/image000-e1701758018713.png)

* Maintain the original interfaces of Azure Kinect Sensor SDK unchanged.
* Modify the implementation (impl) of Azure Kinect Sensor SDK C API, call Orbbec SDK internally to get video frames and control Femto Mega and Femto Mega cameras.
* Coordinate transformation, D2C, C2D, point cloud reuse Azure Kinect Sensor SDK.

Orbbec SDK K4A Wrapper currently supports the following cameras:

\*\*Orbbec Femto Bolt:\*\*Win10 x86/x64, Ubuntu18.04 x64, Ubuntu20.04 x64

\*\*Orbbec Femto Mega:\*\*Win10 x86/x64, Ubuntu20.04 x64

**Note:**

The FemtoMega comes with a built-in depth engine, eliminating the need for the depth engine library files within the SDK

#### 2. How AKDK applications switch to Orbbec SDK K4A Wrapper <a href="#id-2.-how-akdk-applications-switch-to-orbbec-sdk-k4a-wrapper" id="id-2.-how-akdk-applications-switch-to-orbbec-sdk-k4a-wrapper"></a>

This chapter mainly shows how to implement code project switching and adaptation to Femto Mega cameras by replacing Azure Kinect Sensor SDK library files and header files with Orbbec SDK K4A Wrapper under the user application code project.

For compiled application executables, you can also directly switch by replacing the libk4a library file linked by the application executable with Orbbec SDK K4A Wrapper.

**2.1 Windows Platform Application**

**2.1.1 Environment Configuration: Modify Registry**

Due to the Windows system mechanism, for UVC protocol devices, if you need to get timestamp and other metadata information, you need to register in the registry first. You can execute the obsensor\_metadata\_win10.ps1 script to complete automatic registration according to the obsensor\_metadata\_win10.md document guide.

![Official Orbbec figure from Access AKDK Application Software with Femto Mega](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/12/05062801/image001.png)

**2.1.2 Replace Header Files**

Orbbec SDK K4A Wrapper is developed based on Azure Kinect Sensor SDK V1.4.1 version. The header files directly use the original K4A library header files. If the user project originally used Azure Kinect Sensor SDK V1.4.1 version, this step can be ignored.

* Find the header files in Orbbec SDK K4A Wrapper

![Official Orbbec figure from Access AKDK Application Software with Femto Mega](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/12/05062809/image003.png)

* Replace the corresponding header files in Azure Kinect Sensor SDK

![Official Orbbec figure from Access AKDK Application Software with Femto Mega](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/12/05062818/image005.png)

**2.1.3 Replace Library Files**

**Compile**

* First copy the k4a.lib and k4arecord.lib library files from the Orbbec SDK K4A Wrapper to the corresponding path of the Azure Kinect Sensor SDK.

![Official Orbbec figure from Access AKDK Application Software with Femto Mega](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/12/07064736/202312071.png)

* Replace the corresponding k4a.lib and k4arecord.lib library files in the Azure Kinect Sensor SDK.

![Official Orbbec figure from Access AKDK Application Software with Femto Mega](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/12/07064758/202312072.png)

* Then, copy the dll file from Orbbec SDK K4A Wrapper to the corresponding path in Azure Kinect Sensor SDK.

![Official Orbbec figure from Access AKDK Application Software with Femto Mega](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/12/07064825/202312073.png)

* Replace the corresponding dll in Azure Kinect Sensor SDK.

![Official Orbbec figure from Access AKDK Application Software with Femto Mega](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/12/07064841/202312074.png)

**Run**

* Find k4a.dll, k4arecord.dll, OrbbecSDK.dll, depthengine\_2\_0.dll library files in Orbbec SDK K4A Wrapper

![Official Orbbec figure from Access AKDK Application Software with Femto Mega](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/12/05062842/image011.png)

Copy the above library files to the original executable application path of Azure Kinect Sensor SDK, and replace the original k4a.dll, k4arecord.dll, depthengine\_2\_0.dll library files to run the application program.

![Official Orbbec figure from Access AKDK Application Software with Femto Mega](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/12/05062852/image013.png)

**2.2 Linux Platform Application**

**2.2.1 Environment Configuration: Install udev rules Configuration**By default, Linux systems require root permissions for direct access to USB devices, which can be solved through the rules configuration file. Orbbec SDK K4A Wrapper provides a 99-obsensor-libusb.rules configuration file and install\_udev\_rules.sh installation script to complete the installation by executing the install\_udev\_rules.sh script.

![Official Orbbec figure from Access AKDK Application Software with Femto Mega](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/12/05062901/image015.png)

Execution method:

*Retained chapter example or transcript; source/API revision applies. Not executed or compiled for this guide.*

{% code collapsedlinecount="10" %}

```
sudo chmod +x ./install.sh # Make sure the installation script is executable
sudo ./install.sh # Execute the script with sudo
```

{% endcode %}

**2.2.2 Replace Header Files**

*Orbbec SDK K4A Wrapper is developed based on Azure Kinect Sensor SDK V1.4.1 version. The header files directly use the original K4A library header files. If the user project originally used Azure Kinect Sensor SDK V1.4.1 version, this step can be ignored.*

Find the original header files of Orbbec SDK K4A Wrapper and replace the corresponding header files under Azure Kinect Sensor SDK.

![Official Orbbec figure from Access AKDK Application Software with Femto Mega](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/12/05062908/image017.png)

**2.2.3 Replace Library Files**

* Find the library files in Orbbec SDK K4A Wrapper, including: libdepthengine, libk4a, libk4arecord, libOrbbecSDK.so.

![Official Orbbec figure from Access AKDK Application Software with Femto Mega](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/12/05062918/image019.png)

* Copy the above library files to the /usr/lib/x86\_64-linux-gnu directory to replace the Azure Kinect Sensor SDK libraries to compile and use the application program with Orbbec SDK K4A Wrapper.

![Official Orbbec figure from Access AKDK Application Software with Femto Mega](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/12/05062927/image021.png)

#### 3. AKDK User Skeleton Algorithm Adaptation <a href="#id-3.-akdk-user-skeleton-algorithm-adaptation" id="id-3.-akdk-user-skeleton-algorithm-adaptation"></a>

The following uses the Azure Kinect Body Tracking SDK Sample as an example to describe how to obtain skeleton data by using Orbbec Femto Mega camera data after replacing Azure Kinect Sensor SDK through Azure Kinect Body Tracking SDK (hereinafter referred to as K4ABT). (Users can switch by directly replacing the library files without recompiling)

**3.1 Windows Platform**

**3.1.1 Skeleton Installation Package Download and Installation**

Complete the installation according to Microsoft’s installation documentation: <https://learn.microsoft.com/en-us/azure/kinect-dk/body-sdk-setup>

Download Azure Kinect Body Tracking SDK 1.1.2.msi, then execute the file to complete the installation.

![Official Orbbec figure from Access AKDK Application Software with Femto Mega](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/12/05062937/image023.png)

**3.1.2 Demonstrate Skeleton Algorithm Effects**

Complete the environment configuration (metadata registration) according to Chapter 2, then replace the following libraries of Azure kinect Sensor SDK in the installation directory with Orbbec SDK K4A Wrapper libraries (k4a.dll, OrbbecSDK.dll, k4arecord.dll, depthengine\_2\_0.dll), then run simple\_3d\_viewer.exe with administrator rights.

The effect of the skeleton algorithm is as follows:

![Official Orbbec figure from Access AKDK Application Software with Femto Mega](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/12/05062948/image025.png)

**3.1.3 Skeleton Algorithm Secondary Development (sample compilation)**

1. Download Azure Kinect Samples

URL: <https://github.com/microsoft/Azure-Kinect-Samples>

Clone code:

> {% code collapsedlinecount="10" %}
>
> ```
> git clone https://github.com/microsoft/Azure-Kinect-Samples.git
> ```
>
> {% endcode %}

2. Open Microsoft skeleton sample with Visual Studio

Microsoft skeleton sample only supports opening with visual studio. Use VS2019 to open the following projects.

![Official Orbbec figure from Access AKDK Application Software with Femto Mega](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/12/05062957/image027.png)

3. Use Orbbec SDK K4A Wrapper header files and library files to replace Azure Kinect Sensor SDK header files and library files. (dll, OrbbecSDK.dll, k4arecord.dll, depthengine\_2\_0.dll).

* Replace header files

![Official Orbbec figure from Access AKDK Application Software with Femto Mega](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/12/05063007/image029.png)

* Replace library files

![Official Orbbec figure from Access AKDK Application Software with Femto Mega](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/12/05090318/image.png)

4. Compile & Run

* The simple\_3d\_viewer.exe example relies on the following 2 libraries, which are copied from the installation package to the bin directory where the compiled application is generated.

![Official Orbbec figure from Access AKDK Application Software with Femto Mega](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/12/05063015/image031.png)

* Copy the dependent libraries to the running directory:

![Official Orbbec figure from Access AKDK Application Software with Femto Mega](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/12/05063026/image033.png)

* Compilation running interface:

![Official Orbbec figure from Access AKDK Application Software with Femto Mega](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/12/05063037/image035.png)

**3.2 Running Kinect Skeleton Algorithm on Linux**

The historical wrapper procedure below uses the Ubuntu 18.04 Microsoft package feed. These retained commands describe that source environment; they are not an installation recommendation for an arbitrary current host. Match the wrapper, Sensor SDK, Body Tracking SDK, GPU driver and host release before using a package command.

**3.2.1 Install Azure Kinect Sensor SDK**

Refer to the Linux installation instructions section of Microsoft’s installation documentation to complete the installation. Document link:

[Azure Kinect Sensor SDK download | Microsoft Learn](https://learn.microsoft.com/en-us/azure/kinect-dk/sensor-sdk-download)

Installation instructions:

*Retained chapter example or transcript; source/API revision applies. Not executed or compiled for this guide.*

{% code collapsedlinecount="10" %}

```
curl -sSL -O https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb 
sudo apt-get update
sudo apt-get install libk4a1.4-dev
sudo apt-get install k4a-tools
```

{% endcode %}

**3.2.2 Install Azure Kinect Body Tracking SDK**

Refer to the Linux installation instructions section of Microsoft’s installation documentation to complete the installation. Document link:

[Azure Kinect Body Tracking SDK download | Microsoft Learn](https://learn.microsoft.com/en-us/azure/kinect-dk/body-sdk-download)

The following instructions were executed during installation of Azure Kinect Sensor SDK and do not need to be repeated:

*Retained chapter example or transcript; source/API revision applies. Not executed or compiled for this guide.*

{% code collapsedlinecount="10" %}

```
curl -sSL -O https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb
sudo apt-get update
```

{% endcode %}

Install libk4abt:

*Retained chapter example or transcript; source/API revision applies. Not executed or compiled for this guide.*

{% code collapsedlinecount="10" %}

```
sudo apt install libk4abt1.1-dev
```

{% endcode %}

**3.2.3 Use Orbbec SDK K4A Wrapper to Replace Azure Kinect Sensor SDK Library**

Complete the environment configuration (udev rules script installation) according to Chapter 2, then replace the Azure Kinect Sensor SDK library files with the library files in the Orbbec SDK K4A Wrapper package (libk4a.so, libOrbbecSDK.so, depthengine2). After replacing and connecting the Orbbec camera, enter the simple\_3d\_viewer command in the terminal to see the following running effect:

![Official Orbbec figure from Access AKDK Application Software with Femto Mega](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/12/05063046/image037.png)

#### 4. Differences between Orbbec SDK K4A Wrapper and Azure Kinect Sensor SDK <a href="#id-4.-differences-between-orbbec-sdk-k4a-wrapper-and-azure-kinect-sensor-sdk" id="id-4.-differences-between-orbbec-sdk-k4a-wrapper-and-azure-kinect-sensor-sdk"></a>

**4.1 Functional points with differences**

| No. | Function Point | Orbbec SDK K4A Wrapper                                                                                                                                                                                                                                                                                                                                                          | Azure Kinect Sensor SDK                                                                                                                                                                                                                                                                                                                                                         | Impact on Application                                                   |
| --- | -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------- |
| 1   | Recording      | c++ typedef struct \_k4a\_record\_configuration\_t { /\*\* \* The timestamp offset of the start of the recording. All recorded timestamps are offset by this value such that \* the recording starts at timestamp 0. This value can be used to synchronize timestamps between 2 recording files. \*/ uint64\_t start\_timestamp\_offset\_usec; } k4a\_record\_configuration\_t; | c++ typedef struct \_k4a\_record\_configuration\_t { /\*\* \* The timestamp offset of the start of the recording. All recorded timestamps are offset by this value such that \* the recording starts at timestamp 0. This value can be used to synchronize timestamps between 2 recording files. \*/ uint32\_t start\_timestamp\_offset\_usec; } k4a\_record\_configuration\_t; | Need to replace and recompile the header file of Orbbec SDK K4a Wrapper |

**4.2 Unimplemented interfaces in Orbbec SDK K4A Wrapper (return empty value or exception state)**

| No. | Azure Kinect Sensor SDK Interface Meaning                                                                                                                                                        | Impact of Differences                                                                                                 |
| --- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------- |
| 1   | c++ k4a\_result\_t k4a\_set\_allocator(k4a\_memory\_allocate\_cb\_t allocate, k4a\_memory\_destroy\_cb\_t free) Pass in external user-defined memory manager for SDK internal memory application | User cannot use their custom memory manager for SDK internal use. Basic functioning of SDK itself is barely affected. |
| 2   | c++ void k4a\_capture\_set\_temperature\_c(k4a\_capture\_t capture\_handle, float temperature\_c) Set temperature information for capture                                                        | User cannot modify this value, impacting storage of custom values                                                     |
| 3   | c++ float k4a\_capture\_get\_temperature\_c(k4a\_capture\_t capture\_handle) Get temperature information for capture                                                                             | User cannot get this value, impacting algorithms or applications that rely on this value                              |
| 4   | c++ void k4a\_image\_set\_exposure\_usec(k4a\_image\_t image\_handle, uint64\_t exposure\_usec) Set exposure value for image                                                                     | User cannot modify this value, impacting storage of custom values                                                     |
| 5   | c++ void k4a\_image\_set\_white\_balance(k4a\_image\_t image\_handle, uint32\_t white\_balance) Set white balance value for image                                                                | User cannot modify this value, impacting storage of custom values                                                     |
| 6   | c++ void k4a\_image\_set\_iso\_speed(k4a\_image\_t image\_handle, uint32\_t iso\_speed) Set ISO speed for image                                                                                  | User cannot modify this value, impacting storage of custom values                                                     |
| 7   | c++ uint64\_t k4a\_image\_get\_exposure\_usec(k4a\_image\_t image\_handle) Get exposure value for image                                                                                          | User cannot get this value, impacting algorithms or applications that rely on this value                              |
| 8   | c++ uint32\_t k4a\_image\_get\_white\_balance(k4a\_image\_t image\_handle) Get white balance value for image                                                                                     | User cannot get this value, impacting algorithms or applications that rely on this value                              |
| 9   | c++ uint32\_t k4a\_image\_get\_iso\_speed(k4a\_image\_t image\_handle) Read ISO speed for image                                                                                                  | User cannot get this value, impacting algorithms or applications that rely on this value                              |
| 10  | c++ k4a\_result\_t k4a\_device\_get\_sync\_jack(k4a\_device\_t device\_handle, bool \*sync\_in\_jack\_connected, bool \*sync\_out\_jack\_connected) Get sync cable connection status for device  | User application cannot rely on this interface to determine multi-camera sync cable linkage status                    |

#### Femto Mega Data Recording <a href="#femto-mega-data-recording" id="femto-mega-data-recording"></a>

*Reviewed source:* [*Femto Mega Data Recording*](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Femto%20Mega%20Data%20Recording)*. Manufacturer figures and source examples retain their original attribution and rights.*

{% hint style="info" %}
Retained `-e -8` recorder examples use older exposure syntax. The [reviewed K4A v2-main parser](https://github.com/orbbec/OrbbecSDK-K4A-Wrapper/blob/c469e24e63958d0aa62e3a0cb44b0cfb3095e721/tools/k4arecorder/main.cpp) instead accepts `-e` in 100–409500 microseconds; `sub` and `subordinate` are both accepted. Match the installed binary; inspect `--help` before adapting exposure. Typographic long dashes in command flags are normalized to ASCII below.
{% endhint %}

This quickstart provides information on how to use the K4A recorder tool to record the data streams emitted from the Sensor SDK to a file.

#### 1. Prerequisites <a href="#id-1.-prerequisites-2" id="id-1.-prerequisites-2"></a>

* Femto Mega is connected to the host computer and powered on properly.
* You have completed [Set up Femto Mega](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Set%20up%20Femto%20Mega).

#### 2. Create Recording <a href="#id-2.-create-recording" id="id-2.-create-recording"></a>

{% hint style="info" %}
Retained `-e -8` recorder examples use older exposure syntax. The [reviewed K4A v2-main parser](https://github.com/orbbec/OrbbecSDK-K4A-Wrapper/blob/c469e24e63958d0aa62e3a0cb44b0cfb3095e721/tools/k4arecorder/main.cpp) instead accepts `-e` in 100–409500 microseconds; `sub` and `subordinate` are both accepted. Match the installed binary; inspect `--help` before adapting exposure. Typographic long dashes in command flags are normalized to ASCII below.
{% endhint %}

1. Open a command prompt, providing the path to k4arecorder.exe, located in the k4arecorder tool install location. For example: F:\OrbbecSDK\_K4A\_Wrapper\_v1.8.1\_20231011\_win\_x64\_release\bin\k4arecorder.exe
2. Record for 5 seconds k4arecorder.exe -l 5 output.mkv
3. By default, the recorder captures content with NFOV unbinned depth mode, 1080p RGB @ 30 fps (including IMU data).

#### 3. Play Recording <a href="#id-3.-play-recording" id="id-3.-play-recording"></a>

{% hint style="info" %}
Retained `-e -8` recorder examples use older exposure syntax. The [reviewed K4A v2-main parser](https://github.com/orbbec/OrbbecSDK-K4A-Wrapper/blob/c469e24e63958d0aa62e3a0cb44b0cfb3095e721/tools/k4arecorder/main.cpp) instead accepts `-e` in 100–409500 microseconds; `sub` and `subordinate` are both accepted. Match the installed binary; inspect `--help` before adapting exposure. Typographic long dashes in command flags are normalized to ASCII below.
{% endhint %}

You can play back the recording using the [K4A Viewer tool](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/K4A%20Viewer%20for%20Femto%20Mega).

1. Launch k4aviewer.exe
2. Expand the "Open Recording" tab and open your recording.

#### 4. Next Steps <a href="#id-4.-next-steps-1" id="id-4.-next-steps-1"></a>

You now know how to record sensor streams to file, next you can generate your first application.

#### K4A Viewer for Femto Mega <a href="#k4a-viewer-for-femto-mega" id="k4a-viewer-for-femto-mega"></a>

*Reviewed source:* [*K4A Viewer for Femto Mega*](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/K4A%20Viewer%20for%20Femto%20Mega)*. Manufacturer figures and source examples retain their original attribution and rights.*

The Femto Mega Viewer (found in the tools install directory as k4aviewer.exe) can visualize all device data streams. For example, the path is *C:\Program Files\Orbbec-SDK-K4A-Wrapper-vX.Y.Z\tools\k4aviewer.exe* , where X.Y.Z is the installed SDK version.

The viewer can be used to:

* Verify sensors are working properly.
* Aid device positioning.
* Experiment with different camera settings.
* Read device configurations.
* Play recordings made with the Recorder.

#### 1. Using the Viewer <a href="#id-1.-using-the-viewer" id="id-1.-using-the-viewer"></a>

The viewer can capture live data from the sensors or play back recorded files.

**1.1 Launching the Application**

Run *k4aviewer.exe* to start the application.

![Official Orbbec figure from K4A Viewer for Femto Mega](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/12/07021915/image002-3.gif)

**1.2 Using the Viewer with Live Data**

1. In the "Open Device" section, select the device "Serial Number (Device S/N)" to open it. If the device is not listed, select "Refresh Devices".
2. Click the "Open Device" button.
3. Select "Start" to begin streaming data with default settings.

**1.3 Using the Viewer with Recorded Data**

In the "Open Recording" section, navigate to and select the recorded file.

#### 2. Checking Device Firmware Version <a href="#id-2.-checking-device-firmware-version" id="id-2.-checking-device-firmware-version"></a>

{% hint style="info" %}
Read the camera identity and current firmware first, save settings, stop streams, and use only the exact model/hardware package. The older Viewer screenshots describe an update workflow, not permission to flash another model or repeat updates through an unresolved power/network fault. Use the release/firmware pairing in the core software section; restore power only at the updater’s documented checkpoint.

For Nano-board BOM changes, the current release/PCN boundary in the core recovery section takes precedence over an older screenshot or filename. Do not downgrade a new-BOM unit to an incompatible older image.
{% endhint %}

As shown below, the device firmware versions can be accessed in the configuration window.

![Official Orbbec figure from K4A Viewer for Femto Mega](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/12/07021918/image004.jpg)

For example, in this case the depth camera ISP is running FW 1.0.6.

#### 3. Depth Camera <a href="#id-3.-depth-camera" id="id-3.-depth-camera"></a>

The depth camera viewer will display two windows:

* One named "Active IR" showing a grayscale image of the IR brightness.
* Another named "Depth" representing the depth data in different colors.

Hovering over a pixel in the depth window shows the value from the depth sensor, as below.

![Official Orbbec figure from K4A Viewer for Femto Mega](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/12/07021922/image006-3.gif)

#### 4. RGB Camera <a href="#id-4.-rgb-camera" id="id-4.-rgb-camera"></a>

The image below shows the color camera view.

![Official Orbbec figure from K4A Viewer for Femto Mega](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/12/07021926/image008-3.gif)

The RGB camera settings can be controlled via the configuration window during streaming.

![Official Orbbec figure from K4A Viewer for Femto Mega](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/12/07021930/image010-2.gif)

#### 5. Inertial Measurement Unit (IMU) <a href="#id-5.-inertial-measurement-unit-imu" id="id-5.-inertial-measurement-unit-imu"></a>

The IMU window contains two components: the accelerometer and gyroscope.

The top portion is the accelerometer, showing linear acceleration in m/s^2. This includes gravity, so the Z-axis may show around -9.8 m/s^2 if placed flat on a table.

The bottom portion is the gyroscope, showing rotational motion in radians/second.

![Official Orbbec figure from K4A Viewer for Femto Mega](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/12/07021933/image012-3.gif)

#### 6. Point Cloud Visualization <a href="#id-6.-point-cloud-visualization" id="id-6.-point-cloud-visualization"></a>

The depth visualized in 3D allows moving through the image using the directional keys.

![Official Orbbec figure from K4A Viewer for Femto Mega](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/12/07021936/image014-3.gif)

#### 7. Sync Control <a href="#id-7.-sync-control" id="id-7.-sync-control"></a>

{% hint style="info" %}
Connector numbering, electrical levels and pulse widths belong to the exact model, connector view and synchronization accessory. The core hardware section identifies the documented source conflicts. These retained timing/mode explanations are not approval to build a custom trigger harness: keep optional sync disconnected for the first result and resolve the exact revision/view before applying a signal. A hub output level must not be treated as the camera GPIO limit.
{% endhint %}

When configuring multi-device sync, the viewer can set a device to standalone (default), master, or subordinate modes. Select "Refresh" when changing configurations or inserting/removing sync cables.

![Official Orbbec figure from K4A Viewer for Femto Mega](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/12/07021940/image016-3.gif)

#### 8. Next Steps <a href="#id-8.-next-steps" id="id-8.-next-steps"></a>

[Synchronize Multiple Devices](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Synchronize%20Multiple%20Femto%20Mega%20Devices)

#### K4A Viewer for Femto Mega Recorder <a href="#k4a-viewer-for-femto-mega-recorder" id="k4a-viewer-for-femto-mega-recorder"></a>

*Reviewed source:* [*K4A Viewer for Femto Mega Recorder*](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/K4A%20Viewer%20for%20Femto%20Mega%20Recorder)*. Manufacturer figures and source examples retain their original attribution and rights.*

{% hint style="info" %}
Retained `-e -8` recorder examples use older exposure syntax. The [reviewed K4A v2-main parser](https://github.com/orbbec/OrbbecSDK-K4A-Wrapper/blob/c469e24e63958d0aa62e3a0cb44b0cfb3095e721/tools/k4arecorder/main.cpp) instead accepts `-e` in 100–409500 microseconds; `sub` and `subordinate` are both accepted. Match the installed binary; inspect `--help` before adapting exposure. Typographic long dashes in command flags are normalized to ASCII below.
{% endhint %}

This document covers using the k4arecorder command line utility to record data streams emitted from the Sensor SDK to a file.

#### 1. Recorder Options <a href="#id-1.-recorder-options" id="id-1.-recorder-options"></a>

{% hint style="info" %}
Retained `-e -8` recorder examples use older exposure syntax. The [reviewed K4A v2-main parser](https://github.com/orbbec/OrbbecSDK-K4A-Wrapper/blob/c469e24e63958d0aa62e3a0cb44b0cfb3095e721/tools/k4arecorder/main.cpp) instead accepts `-e` in 100–409500 microseconds; `sub` and `subordinate` are both accepted. Match the installed binary; inspect `--help` before adapting exposure. Typographic long dashes in command flags are normalized to ASCII below.
{% endhint %}

k4arecorder provides various command line arguments for specifying the output file and recording modes.

Recordings are stored in Matroska .mkv format. Recordings contain color and depth images over multiple video tracks, along with camera calibration and other metadata.

*Retained chapter example or transcript; source/API revision applies. Not executed or compiled for this guide.*

{% code collapsedlinecount="10" %}

```
k4arecorder [options] output.mkv

Options:
-h, --help Prints this help
--list List the currently connected K4A devices 
--device Specify the device index to use (default: 0)
-l, --record-length Limit the recording to N seconds (default: infinite)
-c, --color-mode Set the color sensor mode (default: 1080p),  
           Available options: 
           3072p, 2160p, 1536p, 1440p, 1080p, 720p, 
           720p_NV12, 720p_YUY2, OFF
-d, --depth-mode Set the depth sensor mode (default: NFOV_UNBINNED),
           Available options:
           NFOV_2X2BINNED, NFOV_UNBINNED, WFOV_2X2BINNED, 
           WFOV_UNBINNED, PASSIVE_IR, OFF
--depth-delay Set the time offset between color and depth frames 
               in microseconds (default: 0)
           A negative value means depth frames will arrive 
           before color frames.
           The delay must be less than 1 frame period.
-r, --rate Set the camera frame rate in Frames per Second
           Default is the maximum rate supported by the  
           camera modes.
           Available options: 30, 15, 5
--imu Set the IMU recording mode (ON, OFF, default: ON) 
--external-sync Set the external sync mode (Master, Subordinate, 
                      Standalone default: Standalone)
--sync-delay Set the external sync delay off the master camera in
             microseconds (default: 0)
             This setting is only valid if the camera is in 
             Subordinate mode.
-e, --exposure-control Set manual exposure value (-11 to 1) for the RGB
                        camera (default: auto exposure)
```

{% endcode %}

#### 2. Recording Files <a href="#id-2.-recording-files" id="id-2.-recording-files"></a>

{% hint style="info" %}
Retained `-e -8` recorder examples use older exposure syntax. The [reviewed K4A v2-main parser](https://github.com/orbbec/OrbbecSDK-K4A-Wrapper/blob/c469e24e63958d0aa62e3a0cb44b0cfb3095e721/tools/k4arecorder/main.cpp) instead accepts `-e` in 100–409500 microseconds; `sub` and `subordinate` are both accepted. Match the installed binary; inspect `--help` before adapting exposure. Typographic long dashes in command flags are normalized to ASCII below.
{% endhint %}

**Example 1.** Record depth NFOV Unbinned (640×576) mode RGB 1080p @ 30 fps (including IMU) content. Press CTRL-C keys to stop recording.

*Retained chapter example or transcript; source/API revision applies. Not executed or compiled for this guide.*

{% code collapsedlinecount="10" %}

```
k4arecorder.exe output.mkv
```

{% endcode %}

**Example 2.** Record WFOV Unbinned (1MP) RGB 2160p @ 15 fps (no IMU) content for 10 seconds.

*Retained chapter example or transcript; source/API revision applies. Not executed or compiled for this guide.*

{% code collapsedlinecount="10" %}

```
k4arecorder.exe -d WFOV_UNBINNED -c 2160p -r 15 -l 10 --imu OFF output.mkv
```

{% endcode %}

**Example 3.** Record WFOV 2×2 Binned 30 fps content for 5 seconds and save to output.mkv.

*Retained chapter example or transcript; source/API revision applies. Not executed or compiled for this guide.*

{% code collapsedlinecount="10" %}

```
k4arecorder.exe -d WFOV_2X2BINNED -c OFF --imu OFF -l 5 output.mkv
```

{% endcode %}

\*\*Tip:\*\*The RGB camera controls (e.g. setting manual white balance) can be configured with the Viewer before recording.

#### 3. Verifying Recording <a href="#id-3.-verifying-recording" id="id-3.-verifying-recording"></a>

{% hint style="info" %}
Retained `-e -8` recorder examples use older exposure syntax. The [reviewed K4A v2-main parser](https://github.com/orbbec/OrbbecSDK-K4A-Wrapper/blob/c469e24e63958d0aa62e3a0cb44b0cfb3095e721/tools/k4arecorder/main.cpp) instead accepts `-e` in 100–409500 microseconds; `sub` and `subordinate` are both accepted. Match the installed binary; inspect `--help` before adapting exposure. Typographic long dashes in command flags are normalized to ASCII below.
{% endhint %}

The [K4A Viewer for Femto Mega](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/K4A%20Viewer%20for%20Femto%20Mega)output .mkv file can be opened with the Viewer.

To extract tracks or view file info, tools like mkvinfo from the [MKVToolNix](https://mkvtoolnix.download/) toolkit can be used.

#### 4. Next Steps <a href="#id-4.-next-steps-2" id="id-4.-next-steps-2"></a>

* [K4A Viewer for Femto Mega](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/K4A%20Viewer%20for%20Femto%20Mega)
* [Record Multi-Device Synchronized Data with Femto Mega](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Record%20Multi-Device%20Synchronized%20Data%20with%20Femto%20Mega%20Recorder)

#### Depth Camera (Femto Mega) <a href="#depth-camera-femto-mega" id="depth-camera-femto-mega"></a>

*Reviewed source:* [*Depth Camera (Femto Mega)*](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Depth%20Camera%20%28Femto%20Mega%29)*. Manufacturer figures and source examples retain their original attribution and rights.*

This page describes how to use the depth camera in Femto Mega. The depth camera is the second of two cameras. As described in earlier sections, the other camera is the RGB camera.

#### 1. Working PrincipleThe Femto Mega depth camera uses amplitude modulated continuous wave (AMCW) time-of-flight (ToF) principles. The camera projects modulated light in the near infrared (NIR) spectrum into the scene. It then records an indirect measurement of the time it takes for the light to travel from the camera to the scene and back.

{% hint style="info" %}
Retained `-e -8` recorder examples use older exposure syntax. The [reviewed K4A v2-main parser](https://github.com/orbbec/OrbbecSDK-K4A-Wrapper/blob/c469e24e63958d0aa62e3a0cb44b0cfb3095e721/tools/k4arecorder/main.cpp) instead accepts `-e` in 100–409500 microseconds; `sub` and `subordinate` are both accepted. Match the installed binary; inspect `--help` before adapting exposure. Typographic long dashes in command flags are normalized to ASCII below.
{% endhint %}

Processing these measurements can produce a depth frame. A depth frame consists of Z-coordinates in millimeters corresponding to each pixel in the image.

Along with the depth frame, we also get what are known as Active IR readings. The pixel values in the Active IR correspond to the amount of light returned from the scene. This image looks similar to a conventional IR image. The image below shows a sample depth frame (left) and its corresponding Active IR image (right).

![Official Orbbec figure from Depth Camera (Femto Mega)](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/12/05105156/image002-1.gif)

#### 2. Key Capabilities <a href="#id-2.-key-capabilities" id="id-2.-key-capabilities"></a>

Key capabilities of the depth camera include:

* 1 megapixel ToF imaging chip with advanced pixel techniques for higher modulation frequency and depth accuracy.
* Two NIR laser diodes for near and wide field-of-view (FoV) depth modes.
* World’s smallest 3.5μm x 3.5μm ToF pixels.
* Auto pixel gain selection enables larger dynamic range, allowing sharp capture of both near and far objects.
* Global shutter helps improve daylight capture performance.
* Multi-phase depth computation method enables reliable accuracy even with chip, laser, and power variations.
* Low system error and random error.

![Official Orbbec figure from Depth Camera (Femto Mega)](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/12/05105159/image004-1.gif)

The depth camera streams the raw modulated IR images to the PC host. On the PC, GPU accelerated depth engine software converts the raw signal into depth frames. The depth camera supports several modes. The narrow field-of-view (FoV) mode works well for scenes with a small X,Y extent but a large Z extent. For scenes with a large X,Y extent but small Z extent, the wide FoV mode is more appropriate.

The depth camera supports a 2×2 binned mode which can extend the Z range compared to the unbinned modes. The tradeoff for binning is reduced image resolution. All modes can run at frame rates up to 30 frames/second (fps), except for the 1 megapixel (MP) mode which has a maximum frame rate of 15 fps. The depth camera also provides a Passive IR mode. In this mode, the illuminators on the camera are not activated and only ambient light can be observed.

#### 3. Camera Performance <a href="#id-3.-camera-performance" id="id-3.-camera-performance"></a>

The performance of the camera is measured by the system error and random error.

**3.1 System Error**

The system error is defined as the difference between the measured depth after denoising and the true (ground truth) depth. We calculate a temporal mean over many frames of a static scene to remove as much depth noise as possible. More specifically, the system error is defined as:![Official Orbbec figure from Depth Camera (Femto Mega)](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/12/05105202/image006-1.gif)

Where d\_t is the measured depth at time t, N is the number of frames used in the averaging process, and d\_gt is the ground truth depth.

The system error specification for the depth camera does not include multi-path interference (MPI). MPI occurs when a sensor pixel integrates light reflected from multiple objects. Using a higher modulation frequency, as well as depth invalidations described shortly, can partially mitigate MPI in the depth camera.

**3.2 Random Error**

Suppose we capture 100 images of the same object without moving the camera. Across these 100 images, the object depth varies slightly in each image. This variation is caused by speckle noise. Speckle occurs because the number of photons striking the sensor fluctuates randomly for some reason. We define this random error in a static scene as the standard deviation of depth over time according to:![Official Orbbec figure from Depth Camera (Femto Mega)](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/12/05105206/image008-1.gif)

Where N is the number of depth measurements, d\_t is the depth measurement at time t, and d is the mean computed over all depth measurements d\_t.

#### 4. Invalidations <a href="#id-4.-invalidations" id="id-4.-invalidations"></a>

In some cases, the depth camera may be unable to provide correct values for some pixels. In these cases, the depth pixel is invalidated. Invalid pixels are indicated by a depth value of 0. Reasons the depth engine cannot produce a correct value include:

* Outside active IR illumination mask
* IR signal saturation
* Low IR signal strength
* Filtering anomalies
* Multi-path interference

**4.1 Illumination Mask**

Pixels outside the active IR illumination mask will be invalidated. We do not recommend using the signal from such pixels to compute depth. The image below shows an example of pixel invalidations from being outside the illumination mask. Invalid pixels include the black pixels outside the circle in the wide FoV mode (left) and the hexagon in the narrow FoV mode (right).

![Official Orbbec figure from Depth Camera (Femto Mega)](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/12/05105209/image010.jpg)

**4.2 Signal Strength**

Pixels with a saturated IR signal will be invalidated. Phase information is lost when a pixel saturates. The image below shows an example of pixel invalidations from IR signal saturation. Notice the arrows pointing to example pixels in the depth image and IR image.

![Official Orbbec figure from Depth Camera (Femto Mega)](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/12/05105212/image012-1.gif)

Pixels can also be invalidated if the IR signal strength is too low to produce valid depth. The image below shows an example of pixel invalidations from low IR signal strength. Again notice the arrows pointing to example pixels in the depth image and IR image.

![Official Orbbec figure from Depth Camera (Femto Mega)](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/12/05105215/image014-1.gif)

**4.3 Ambiguous Depth**

Pixels can also be invalidated if they receive signals from multiple objects in the scene. This commonly occurs around corners. Due to scene geometry, IR light emitted from the camera reflects off one wall onto another. This reflected light leads to ambiguous measured pixel depths. Filters in the depth algorithm detect these ambiguous signals and invalidate the pixels.

The image below shows an example of multi-path detection causing pixel invalidations. You can also observe how the same surface area invalidated in one camera view (top row) reappears in the other camera view (bottom row). This demonstrates surfaces invalidated in one perspective may be visible in another.

![Official Orbbec figure from Depth Camera (Femto Mega)](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/12/05105219/image016-1.gif)

**4.4 Multi-Path Mixing**

Another common case of multi-path is when a pixel contains a mix of signals from foreground and background (e.g. around object edges). More invalidated pixels around edges may be noticeable in fast motion scenes. This is due to the exposure interval of the raw depth capture.

![Official Orbbec figure from Depth Camera (Femto Mega)](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/12/05105223/image018-1.gif)

#### 5. Next Steps <a href="#id-5.-next-steps" id="id-5.-next-steps"></a>

[Coordinate Systems](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Bolt%20Documentation/Coordinate%20Systems%20%28iToF%20Camera%29)

#### Femto Mega Firmware Upgrade Instructions <a href="#femto-mega-firmware-upgrade-instructions" id="femto-mega-firmware-upgrade-instructions"></a>

*Reviewed source:* [*Femto Mega Firmware Upgrade Instructions*](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Femto%20Mega%20Firmware%20Upgrade%20Instructions)*. Manufacturer figures and source examples retain their original attribution and rights.*

{% hint style="info" %}
Read the camera identity and current firmware first, save settings, stop streams, and use only the exact model/hardware package. The older Viewer screenshots describe an update workflow, not permission to flash another model or repeat updates through an unresolved power/network fault. Use the release/firmware pairing in the core software section; restore power only at the updater’s documented checkpoint.

For Nano-board BOM changes, the current release/PCN boundary in the core recovery section takes precedence over an older screenshot or filename. Do not downgrade a new-BOM unit to an incompatible older image.
{% endhint %}

Currently only Linux systems support firmware upgrades for Femto Mega devices. Ubuntu16.04 and above systems are recommended.

#### 1. Materials Needed <a href="#id-1.-materials-needed" id="id-1.-materials-needed"></a>

1.1 Femto Mega device.

1.2. Latest version of OrbbecViewer tool and [firmware package](https://github.com/orbbec/OrbbecFirmware/releases/tag/Femto-Mega-Firmware) for upgrading (available on Orbbec’s official website or by contacting after-sales support), unzip both.

1.3. Fine needle, used to trigger the device to enter upgrade mode.

1.4. USB data cable: one Micro USB data cable and one USB Type-C data cable.

#### 2. Upgrade Steps <a href="#id-2.-upgrade-steps" id="id-2.-upgrade-steps"></a>

2.1 Modify the permissions of the nvmflash.sh file to add executable permissions.

sudo chmod 777 ./nvmflash.sh

![Official Orbbec figure from Femto Mega Firmware Upgrade Instructions](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2024/01/05015852/1-1.png)

2.2 On the Linux system computer terminal, switch to the tool directory and run OrbbecViewer with root permission.

sudo ./OrbbecViewer

2.3 Find a small hole marked "Registration Pin" on the front of the device body, and a Micro USB port at the bottom of the device.

![Official Orbbec figure from Femto Mega Firmware Upgrade Instructions](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2024/01/05015406/2-1.png)

2.4 Insert a fine needle into the small hole and press down, while keeping it pressed, connect power to the device; and use a Micro USB cable to connect the device to the computer.

2.5 After completing the above steps, you can see the following interface in OrbbecViewer (if not, please retry step 4).

![Official Orbbec figure from Femto Mega Firmware Upgrade Instructions](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2024/01/05015409/3-1.png)

2.6 In OrbbecViewer, click![Official Orbbec figure from Femto Mega Firmware Upgrade Instructions](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2024/01/05020055/6.png) button to select the folder path where you unzipped firmware file in upgrade file directory box , then click![Official Orbbec figure from Femto Mega Firmware Upgrade Instructions](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2024/01/05020123/7-1.png) button to start firmware upgrade.

2.7 Wait for upgrade to complete , during upgrade process , tool Log box will have `Ongoing processes` output , when upgrade is done there will be `Flash complete (SUCCESS)` output; after upgrade is complete device will automatically restart.

![Official Orbbec figure from Femto Mega Firmware Upgrade Instructions](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2024/01/05015412/4-1.png)

2.8 After device restarts you can use USB Type-C cable to connect device to computer , when connection is successful OrbbecViewer will automatically open device , you can check firmware version number on device information page to confirm whether upgrade was successful.

![Official Orbbec figure from Femto Mega Firmware Upgrade Instructions](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2024/01/05015417/5.png)

#### Synchronize Multiple Femto Mega Devices <a href="#synchronize-multiple-femto-mega-devices" id="synchronize-multiple-femto-mega-devices"></a>

*Reviewed source:* [*Synchronize Multiple Femto Mega Devices*](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Synchronize%20Multiple%20Femto%20Mega%20Devices)*. Manufacturer figures and source examples retain their original attribution and rights.*

{% hint style="info" %}
Connector numbering, electrical levels and pulse widths belong to the exact model, connector view and synchronization accessory. The core hardware section identifies the documented source conflicts. These retained timing/mode explanations are not approval to build a custom trigger harness: keep optional sync disconnected for the first result and resolve the exact revision/view before applying a signal. A hub output level must not be treated as the camera GPIO limit.
{% endhint %}

Each Femto Mega device has an 8-pin GPIO sync port that can be used to interconnect multiple devices. Once connected, the devices can be coordinated via software to trigger captures at synchronized times.

This document covers how to connect and synchronize multiple devices.

#### 1. Benefits of Using Multiple Femto Mega Devices <a href="#id-1.-benefits-of-using-multiple-femto-mega-devices" id="id-1.-benefits-of-using-multiple-femto-mega-devices"></a>

There are several reasons to use multiple Femto Mega devices, including:

* Filling occlusion zones. Although the Femto Mega data transform generates a single image, the two cameras (depth and RGB) are actually spaced a small distance apart. This offset allows for occlusion. Occlusion refers to situations where a foreground object blocks part of the background scene from one of the cameras on the device. In the generated color image, the foreground object appears to cast a shadow over the background object.

For example, in the image below, the left camera can see the gray pixel "P2". But the white foreground object blocks the IR view from the right camera. The right camera cannot acquire data for "P2". Adding synchronized devices can provide data for the occlusion.

![Official Orbbec figure from Synchronize Multiple Femto Mega Devices](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/12/07062541/image001-1.png)

* Scanning 3D objects.
* Increasing valid frame rate to 30 frames per second (fps) or higher.
* Capturing multiple 4K color images of the same scene with exposures aligned within 100 microseconds (us).
* Increasing spatial coverage of the cameras.

#### 2. Planning Multi-Device Configuration <a href="#id-2.-planning-multi-device-configuration" id="id-2.-planning-multi-device-configuration"></a>

Be sure to review the Hardware Specifications and Depth Camera sections before beginning.

#### 3. Selecting a Device Configuration <a href="#id-3.-selecting-a-device-configuration" id="id-3.-selecting-a-device-configuration"></a>

Device configurations can be accomplished using either:

* Star configuration – One master device synced with up to eight subordinate devices.

![Official Orbbec figure from Synchronize Multiple Femto Mega Devices](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2024/01/05014515/3.png)

* Daisy chain configuration – One master device synced with up to eight subordinate devices.

![Official Orbbec figure from Synchronize Multiple Femto Mega Devices](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2024/01/05014538/4.png)

**3.1 Introduction to camera synchronous interface and synchronous wire (Multi-camera Sync Cable)**

The camera uses 8-pin GPIO ports to realize synchronization. The specific interfaces are described in the following table:

| Pin | Definition       | Function                                                                                                                                                                                                                                                                                                                                                            |
| --- | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 1   | SYNC\_VCC        | ● Input & continuous level signal ● I/O level setting signal: the I/O level of the 8-pin synchronous interface is set to 1.8V by default; If the level voltage of 3.3V or 5V is provided on the SYNC\_VCC interface, the I/O level setting can be adjusted to 3.3V or 5V to improve the transmission stability and transmission distance of the synchronous signal. |
| 2   | GPIO\_OUT        | ● Output & pulse signal ● Synchronous driving signal: IR exposure synchronous signal; Typical application is to drive external supplementary light                                                                                                                                                                                                                  |
| 3   | VSYNC\_OUT       | ● Output & pulse signal ● Synchronous trigger signal: used to trigger the synchronous acquisition of data by the subsequent equipment                                                                                                                                                                                                                               |
| 4   | TIMER\_SYNC\_OUT | ● Output & pulse signal ● Hardware timestamp reset signal: used to reset the hardware timestamp of the subsequent device                                                                                                                                                                                                                                            |
| 5   | RESET\_IN        | ● Input & pulse signal ● Camera hard reset signal: trigger the camera to power down first, and automatically power on to reset                                                                                                                                                                                                                                      |
| 6   | VSYNC\_IN        | ● Input & pulse signal ● Synchronous trigger signal: the synchronous acquisition trigger signal sent by the pre-sequence device                                                                                                                                                                                                                                     |
| 7   | TIMER\_SYNC\_IN  | ● Input & pulse signal ● Hardware timestamp reset signal: the hardware timestamp reset instruction sent by the pre-sequence device                                                                                                                                                                                                                                  |
| 8   | GND              | ● Input/Output & continuous level signal ● Grounding signal: reference of synchronous signal                                                                                                                                                                                                                                                                        |

Multi-camera Sync Cable introduction, as shown in the following figure, the professional version of the Multi-camera Sync Cable, the left Connector 8-pin interface is connected to the camera terminal, the right RJ45 interface is connected to the network Cable terminal.

![Official Orbbec figure from Synchronize Multiple Femto Mega Devices](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/12/07062559/image007-2-1024x352.png)

**3.2 Using External Trigger**

In both configurations, the master device provides the trigger signal to subordinates. But you can use a custom external source as the sync trigger instead. For example, this option can enable syncing captures with other equipment. The external trigger source connects to the VSYNC\_IN port on devices whether in star or daisy chain configurations.

The external trigger source must operate the same as the master device. It must provide a sync signal with:

* Rising edge trigger
* High pulse width: >1ms
* Trigger level: 1.8V/3.3V/5V
* Frequency support: exactly 30FPS, 25FPS, 15FPS and 5FPS (the frequency of the master camera’s VSYNC\_IN signal)

The trigger source must use a Multi-camera Sync Cable to relay the signal to the sync signal input port on subordinates.

Multi-camera synchronization of Primary connected to the Multi-camera Sync hub Pro diagram

![Official Orbbec figure from Synchronize Multiple Femto Mega Devices](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/12/07062611/image011-2-1024x431.png)

Multi-camera synchronization of Secondary connected to the Multi-camera Sync hub Pro diagram

![Official Orbbec figure from Synchronize Multiple Femto Mega Devices](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/12/07062617/image013-1-1024x428.png)

#### 4. Planning Camera Settings and Software Configurations <a href="#id-4.-planning-camera-settings-and-software-configurations" id="id-4.-planning-camera-settings-and-software-configurations"></a>

See Orbbec SDK and Orbbec SDK K4A Wrapper for info on setting up the software to control cameras and use image data.

This section discusses factors that affect synchronized devices together rather than individual devices. The software should account for these factors.

**4.1 Exposure Considerations**

To precisely align device exposure timing, we recommend using manual exposure. With auto exposure, each color camera may dynamically change the actual exposure value. Since the exposure duration affects timing, such changes impact sync effectiveness.

Avoid repeating the same exposure settings in image capture loops unless necessary. Call the API just once if possible.

**4.2 Avoiding Interference Between Depth Cameras**

If multiple depth cameras image overlapping fields of view, each must image using its own associated laser. To prevent interference between lasers, the camera captures should be offset from each other by 160us or more.

For each depth camera capture, the laser fires 9 times, active for just 125us each time. The laser then idles for 1450us or 2390us depending on mode. This behavior means the offset calculation starts from 125us.

In addition, the difference between the camera clock and device firmware clock increases the minimum offset to 160us. To calculate a more precise offset based on your configuration, note the depth mode used and reference the Depth Sensor Raw Timing table. Using the data in this table, the minimum offset (exposure time for each camera) can be computed as:

Where:

* Infrared pulse = Number of laser pulses per exposure, which is 9
* Pulse width = Duration laser is active per pulse
* Idle cycle = Number of idle periods per exposure, which is 8
* Idle time = Duration of each idle period

With a 160us offset, up to 9 additional depth cameras can be configured so that when one laser fires, the others remain idle.

In software, use depth\_delay\_off\_color\_usec or subordinate\_delay\_off\_master\_usec to ensure each infrared laser fires within its corresponding 160us window, or has a different field of view.

**Note:** The actual pulse width is 125us but we state 160us to provide some margin. As an example with NFOV UNBINNED, after each 125us pulse there is a 1450us idle. Adding those up – (9 x 125) + (8 x 1450) – gives the exposure time of 12.8ms. The trick to interleaving exposure across two devices is to have the first pulse of the second camera land in the first idle period of the first camera. The delay between the first and second camera can be as little as 125us (the pulse width) but we recommend a margin, so we state 160us. Given 160us, up to 10 cameras could interleave exposure times.

#### 5. Preparing Devices and Other Hardware <a href="#id-5.-preparing-devices-and-other-hardware" id="id-5.-preparing-devices-and-other-hardware"></a>

In addition to configuring multiple Femto Mega devices, other hosts and hardware may be needed to support the configuration you intend to build. Use the info in this section to ensure all devices and hardware are ready before starting setup.

**5.1 Femto Mega Devices**

For each Femto Mega device to be synced:

* Ensure the latest firmware is installed on the device. See Update Femto Mega Firmware for details on updating firmware.
* Note the serial number of each device. This will be needed later during setup.

**5.2 Host PCs**

It is typical to connect multiple Femto Megas to dedicated host PCs individually, with dedicated host controllers depending on how the devices are used and the amount of data transferred over USB connections.

Ensure Orbbec SDK or Orbbec SDK K4A Wrapper is installed on the hosts. See Download Orbbec SDK and K4A Wrapper for details on installing the SDK.

**5.3 Linux Machines: USB Memory on Ubuntu**

By default, Linux-based hosts allocate just 16MB kernel memory for USB transfers per controller to handle USB transfers. This is often sufficient for a single Femto Mega device. But more memory per controller is needed to support multiple devices. To increase the memory:

1. Edit /etc/default/grub.
2. Find the line: GRUB\_CMDLINE\_LINUX\_DEFAULT="quiet splash"
3. Change it to: GRUB\_CMDLINE\_LINUX\_DEFAULT="quiet splash usbcore.usbfs\_memory\_mb=128"
4. Run sudo update-grub.
5. Reboot the machine.

**Note:** These commands set the USB memory to 128MB. This example is 8X the default setting. Much larger values can be set as appropriate for the solution.

**5.4 Cables**

To interconnect devices and connect to hosts, Multi-camera Sync Cables, network cables, and a sync hub must be used. Network cable lengths should be less than 10m.

The number of cables needed depends on the number of devices and the specific device configuration. Sync cables and hub are not included with Femto Mega cameras. Sync cables, hub, and network cables must be purchased separately.

#### 6. Connecting Devices in Star Configuration <a href="#id-6.-connecting-devices-in-star-configuration" id="id-6.-connecting-devices-in-star-configuration"></a>

1. Connect each Femto Mega device to power.
2. Connect each device to its own host computer.
3. Choose one device to be the master and connect its sync cable.
4. Connect the other end of that sync cable to a T568B to T568B network cable, with the network cable going into the Primary In port on the professional star sync hub.
5. To connect another device, attach its sync cable to the Femto Mega sync port and connect it via network cable to the other sync cable end, with the network cable going into the first subordinate port on the hub: Secondary Cam 1. The second subordinate connects to Secondary Cam 2, and so on.
6. Repeat for all devices.

#### 7. Connecting Devices in Daisy Chain Configuration <a href="#id-7.-connecting-devices-in-daisy-chain-configuration" id="id-7.-connecting-devices-in-daisy-chain-configuration"></a>

1. Connect each Femto Mega device to power.
2. Connect each device to its own host computer.
3. Choose one device to be the master and connect its sync cable.
4. Connect the other end of that sync cable to the Primary In port on the daisy chain sync hub.
5. To connect another device, attach its sync cable to the Femto Mega sync port and connect the other end to the first subordinate port on the hub: Secondary Cam 1. The second subordinate connects to Secondary Cam 2, and so on.
6. Repeat for all devices.

**Note:** The daisy chain connection provides a developer version of sync hub and cables not supporting network cable connections like the professional star version hub. See the Multi-Camera Sync Hub Specs for details.

#### 8. Verifying Devices Are Connected and Communicating <a href="#id-8.-verifying-devices-are-connected-and-communicating" id="id-8.-verifying-devices-are-connected-and-communicating"></a>

To verify devices are connected properly, use the K4A Viewer. Repeat this process as needed to test each subordinate device paired with the master.

**Important:** During testing, you must know the serial number of each Femto Mega.

1. Open two instances of the K4A Viewer.
2. Under "Open Device", select the serial number of the subordinate device to test.

![Official Orbbec figure from Synchronize Multiple Femto Mega Devices](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/12/07062620/image015-1.png)

3.Under External Sync options, select Sub.

![Official Orbbec figure from Synchronize Multiple Femto Mega Devices](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/12/07062623/image017-1.png)

4.Select Start.

**Note:** Since this is a subordinate device, the K4A Viewer will not show images after starting the device. Images are not displayed until the subordinate receives the sync signal from the master.

1. After starting the subordinate, use the other instance of the K4A Viewer to open the master device.
2. Under External Sync options, select Master.
3. Select Start.

Once the Femto Mega master starts, both instances of the K4A Viewer should display images.

**Note:** In K4A Viewer, Master corresponds to Primary master, and Sub corresponds to Secondary subordinate.

#### 9. Calibrating Synchronized Multi-Device Setups <a href="#id-9.-calibrating-synchronized-multi-device-setups" id="id-9.-calibrating-synchronized-multi-device-setups"></a>

{% hint style="info" %}
Connector numbering, electrical levels and pulse widths belong to the exact model, connector view and synchronization accessory. The core hardware section identifies the documented source conflicts. These retained timing/mode explanations are not approval to build a custom trigger harness: keep optional sync disconnected for the first result and resolve the exact revision/view before applying a signal. A hub output level must not be treated as the camera GPIO limit.
{% endhint %}

Once devices are verified communicating, they can be calibrated to generate images in a unified domain.

Within a single device, the depth and RGB cameras are factory calibrated to work together. But when using multiple devices together, they must be calibrated to determine how to transform images from the camera domain they were captured in to the camera domain used for processing the images.

Several options exist for cross calibrating devices. A GitHub green screen code sample using OpenCV methods is provided [here](https://github.com/orbbec/OrbbecSDK-K4A-Wrapper/tree/main/examples/green_screen). The readme with this code example provides more details and guidance on calibrating devices.

See Calibration Functions for more on calibration.

#### Record Multi-Device Synchronized Data with Femto Mega Recorder <a href="#record-multi-device-synchronized-data-with-femto-mega-recorder" id="record-multi-device-synchronized-data-with-femto-mega-recorder"></a>

*Reviewed source:* [*Record Multi-Device Synchronized Data with Femto Mega Recorder*](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Record%20Multi-Device%20Synchronized%20Data%20with%20Femto%20Mega%20Recorder)*. Manufacturer figures and source examples retain their original attribution and rights.*

{% hint style="info" %}
Connector numbering, electrical levels and pulse widths belong to the exact model, connector view and synchronization accessory. The core hardware section identifies the documented source conflicts. These retained timing/mode explanations are not approval to build a custom trigger harness: keep optional sync disconnected for the first result and resolve the exact revision/view before applying a signal. A hub output level must not be treated as the camera GPIO limit.

Retained `-e -8` recorder examples use older exposure syntax. The [reviewed K4A v2-main parser](https://github.com/orbbec/OrbbecSDK-K4A-Wrapper/blob/c469e24e63958d0aa62e3a0cb44b0cfb3095e721/tools/k4arecorder/main.cpp) instead accepts `-e` in 100–409500 microseconds; `sub` and `subordinate` are both accepted. Match the installed binary; inspect `--help` before adapting exposure. Typographic long dashes in command flags are normalized to ASCII below.
{% endhint %}

This document covers how to record data from multiple primary-secondary synchronized devices.

#### 1. Prerequisites <a href="#id-1.-prerequisites-3" id="id-1.-prerequisites-3"></a>

* [Synchronize Multiple Devices](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Synchronize%20Multiple%20Femto%20Mega%20Devices)

#### 2. External Sync Constraints <a href="#id-2.-external-sync-constraints" id="id-2.-external-sync-constraints"></a>

{% hint style="info" %}
Connector numbering, electrical levels and pulse widths belong to the exact model, connector view and synchronization accessory. The core hardware section identifies the documented source conflicts. These retained timing/mode explanations are not approval to build a custom trigger harness: keep optional sync disconnected for the first result and resolve the exact revision/view before applying a signal. A hub output level must not be treated as the camera GPIO limit.
{% endhint %}

First, connect the master and subordinate devices according to the product multi-device sync documentation.

* All master and subordinate devices must use the same camera configuration (fps and resolution).
* All master and subordinate devices must run the same device firmware ( [Update Device Firmware](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Femto%20Mega%20Firmware%20Upgrade%20Instructions)).
* It is recommended to start all subordinate devices first, then the master device.
* The same exposure values should be set on all devices.
* The "Subordinate Delay Off Master" is set per subordinate device relative to the master.

#### 3. Recording with Each Device on Separate Host PC <a href="#id-3.-recording-with-each-device-on-separate-host-pc" id="id-3.-recording-with-each-device-on-separate-host-pc"></a>

{% hint style="info" %}
PASS and Not tested entries below are the manufacturer’s results for its listed host/OS/SDK configuration, not tests performed for this guide. Recheck the current release platform matrix before applying an older host result to a new SDK or kernel.

Retained `-e -8` recorder examples use older exposure syntax. The [reviewed K4A v2-main parser](https://github.com/orbbec/OrbbecSDK-K4A-Wrapper/blob/c469e24e63958d0aa62e3a0cb44b0cfb3095e721/tools/k4arecorder/main.cpp) instead accepts `-e` in 100–409500 microseconds; `sub` and `subordinate` are both accepted. Match the installed binary; inspect `--help` before adapting exposure. Typographic long dashes in command flags are normalized to ASCII below.
{% endhint %}

In the following example, each device has its own dedicated host PC. We recommend dedicating devices to PCs to avoid USB bandwidth and CPU/GPU usage issues.

**3.1 Subordinate-1**

1. Set up recorder on first unit k4arecorder.exe --external-sync sub -e -8 -r 5 -l 10 sub1.mkv
2. Device starts waiting

Console:

*Retained chapter example or transcript; source/API revision applies. Not executed or compiled for this guide.*

{% code collapsedlinecount="10" %}

```
Device serial number: 000011590212
Device version: Rel; C: 1.5.78; D: 1.5.60[6109.6109]; A: 1.5.13
Device started
[subordinate mode] Waiting for signal from master
```

{% endcode %}

**3.2 Subordinate-2**

1. Set up recorder on second unit k4arecorder.exe --external-sync sub -e -8 -r 5 -l 10 sub2.mkv
2. Device starts waiting

Console:

*Retained chapter example or transcript; source/API revision applies. Not executed or compiled for this guide.*

{% code collapsedlinecount="10" %}

```
Device serial number: 000011590212
Device version: Rel; C: 1.5.78; D: 1.5.60[6109.6109]; A: 1.5.13
Device started
[subordinate mode] Waiting for signal from master
```

{% endcode %}

**3.3 Master**

1. Start recording on master device

> k4arecorder.exe --external-sync master -e -8 -r 5 -l 10 master.mkv

2. Wait for recording to complete

#### 4. Recording with Multiple Devices Connected to Single Host PC <a href="#id-4.-recording-with-multiple-devices-connected-to-single-host-pc" id="id-4.-recording-with-multiple-devices-connected-to-single-host-pc"></a>

{% hint style="info" %}
PASS and Not tested entries below are the manufacturer’s results for its listed host/OS/SDK configuration, not tests performed for this guide. Recheck the current release platform matrix before applying an older host result to a new SDK or kernel.

Retained `-e -8` recorder examples use older exposure syntax. The [reviewed K4A v2-main parser](https://github.com/orbbec/OrbbecSDK-K4A-Wrapper/blob/c469e24e63958d0aa62e3a0cb44b0cfb3095e721/tools/k4arecorder/main.cpp) instead accepts `-e` in 100–409500 microseconds; `sub` and `subordinate` are both accepted. Match the installed binary; inspect `--help` before adapting exposure. Typographic long dashes in command flags are normalized to ASCII below.
{% endhint %}

Multiple Femto Megas can be connected to a single host PC. However, this may require high USB bandwidth and host compute requirements. To reduce demands:

* Connect each device to its own USB host controller
* Use a powerful GPU that can handle the depth engine for each device
* Only record required sensors and use lower frame rates
* Always start subordinate devices first, master device last

**4.1 Subordinate-1**

1. Start recorder on subordinate device

*Retained chapter example or transcript; source/API revision applies. Not executed or compiled for this guide.*

{% code collapsedlinecount="10" %}

```
>k4arecorder.exe --device 1 --external-sync subordinate --imu OFF -e -8 -r 5 -l 5 output-2.mkv
```

{% endcode %}

1. Device enters waiting state

**4.2 Master**

1. Start master device

> k4arecorder.exe --device 0 --external-sync master --imu OFF -e -8 -r 5 -l 5 output-1.mkv

2. Wait for recording to complete

#### 5. Playing Back Recordings <a href="#id-5.-playing-back-recordings" id="id-5.-playing-back-recordings"></a>

{% hint style="info" %}
Retained `-e -8` recorder examples use older exposure syntax. The [reviewed K4A v2-main parser](https://github.com/orbbec/OrbbecSDK-K4A-Wrapper/blob/c469e24e63958d0aa62e3a0cb44b0cfb3095e721/tools/k4arecorder/main.cpp) instead accepts `-e` in 100–409500 microseconds; `sub` and `subordinate` are both accepted. Match the installed binary; inspect `--help` before adapting exposure. Typographic long dashes in command flags are normalized to ASCII below.
{% endhint %}

Use [K4A Viewer for Femto Mega](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/K4A%20Viewer%20for%20Femto%20Mega) to play back recordings.

#### 6. Tips <a href="#id-6.-tips" id="id-6.-tips"></a>

* Record with manual exposure on synchronized cameras. RGB camera auto exposure can affect timing sync.
* Restarting a subordinate device will lose sync.
* Some [Hardware Specifications](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Femto%20Mega%20Hardware%20Specifications)have max 15 fps support. We recommend not mixing modes/frame rates between devices.
* Connecting multiple units to a single PC can easily saturate USB bandwidth, consider dedicating host PCs per device. Also be mindful of CPU/GPU compute.
* Disable IMU if not needed to improve reliability.

See [Known Issues and Troubleshooting for Femto Mega](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Known%20Issues%20and%20Troubleshooting%20for%20Femto%20Mega)for any issues.

#### Known Issues and Troubleshooting for Femto Mega <a href="#known-issues-and-troubleshooting-for-femto-mega" id="known-issues-and-troubleshooting-for-femto-mega"></a>

*Reviewed source:* [*Known Issues and Troubleshooting for Femto Mega*](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Known%20Issues%20and%20Troubleshooting%20for%20Femto%20Mega)*. Manufacturer figures and source examples retain their original attribution and rights.*

This page contains known issues that may be encountered when using Orbbec SDK K4A Wrapper with Femto Mega, along with troubleshooting tips.

#### 1. Collecting Logs <a href="#id-1.-collecting-logs" id="id-1.-collecting-logs"></a>

Orbbec SDK K4A Wrapper logs are output by the underlying Orbbec SDK, by default to the Log directory under the application working directory. Logs are output in a cyclical overwrite manner to a fixed 4 files, with a default maximum of 100MB per file. It is recommended to package log files when reporting issues.

#### 2. Device Not Listed in Device Manager <a href="#id-2.-device-not-listed-in-device-manager" id="id-2.-device-not-listed-in-device-manager"></a>

* Check the indicator light on the back – if blinking orange, power is insufficient. Try powering with the power adapter again. If it blinks white at that point, the USB connection is abnormal.
* Verify the power cable is connected and a USB3 port is being used for data transfer.
* Try a different USB3 port for the data connection (ports near the motherboard are recommended, e.g. rear USB ports on a PC).
* Inspect cable condition – damaged or poor quality cables can cause unreliable listings (device "blinking" in device manager).
* If connected to a laptop running on battery, the port power may be restricted.
* Restart the host computer.
* If the issue persists, there may be a compatibility problem.

#### 3. K4A Viewer Cannot Open Camera <a href="#id-3.-k4a-viewer-cannot-open-camera" id="id-3.-k4a-viewer-cannot-open-camera"></a>

* First check the device appears in Windows Device Manager.

![Official Orbbec figure from Known Issues and Troubleshooting for Femto Mega](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2024/01/05095157/3-2.png)

* Verify no other applications are using the device (e.g. Windows Camera app). Only one application can access the device at a time.
* Check log files for error messages.
* Open the Windows Camera app to verify it works properly.
* Power cycle the device, wait for streaming LED to go out, then retry using the device.
* Restart the host computer.
* Ensure latest graphics drivers are installed on the computer.
* If using your own SDK build, try the official release version if possible to resolve the issue.

#### 4. Device Firmware Update Issues <a href="#id-4.-device-firmware-update-issues" id="id-4.-device-firmware-update-issues"></a>

{% hint style="info" %}
Read the camera identity and current firmware first, save settings, stop streams, and use only the exact model/hardware package. The older Viewer screenshots describe an update workflow, not permission to flash another model or repeat updates through an unresolved power/network fault. Use the release/firmware pairing in the core software section; restore power only at the updater’s documented checkpoint.

For Nano-board BOM changes, the current release/PCN boundary in the core recovery section takes precedence over an older screenshot or filename. Do not downgrade a new-BOM unit to an incompatible older image.
{% endhint %}

* If the reported version number after update is incorrect, closing and reopening the device may be needed.
* If the device firmware update process was interrupted, repowering the device before retrying the update.

#### 5. Image Quality Issues <a href="#id-5.-image-quality-issues" id="id-5.-image-quality-issues"></a>

* Launch the K4A Viewer to inspect device positioning for interference, sensor occlusion, or lens dirt.
* If the issue occurs in a specific mode, try different operating modes to narrow down the investigation.
* To work with the team on image quality issues:
  * Grab a paused snapshot from the K4A Viewer and screenshot
  * Record with the K4A Recorder, e.g. k4arecorder.exe -l 5 -r 5 output.mkv

#### 6. Inconsistent or Unexpected Device Timestamps <a href="#id-6.-inconsistent-or-unexpected-device-timestamps" id="id-6.-inconsistent-or-unexpected-device-timestamps"></a>

Calling*k4a\_device\_set\_color\_control* can temporarily trigger timing changes in the device that may take a few captures to stabilize. Avoid calling the API in image capture loops to avoid resetting internal timing calculations per new image. Call it instead before starting cameras or when values need to change within image capture loops. Specifically avoid *k4a\_device\_set\_color\_control(K4A\_COLOR\_CONTROL\_AUTO\_EXPOSURE\_PRIORITY)*.

#### 7. Using Body Tracking SDK with Unreal <a href="#id-7.-using-body-tracking-sdk-with-unreal" id="id-7.-using-body-tracking-sdk-with-unreal"></a>

To use the Body Tracking SDK with Unreal, ensure \tools is added to the PATH environment variable, and *dnn\_model\_2\_0.onnx* + *cudnn64\_7.dll* are copied to *Program Files/Epic Games/UE\_4.23/Engine/Binaries/Win64*.

#### 8. Missing C# Documentation <a href="#id-8.-missing-c-documentation" id="id-8.-missing-c-documentation"></a>

Sensor SDK C++ documentation is located [here](https://microsoft.github.io/Azure-Kinect-Sensor-SDK/master/namespace_microsoft_1_1_azure_1_1_kinect_1_1_sensor.html).

Body Tracking SDK C++ documentation is located [here](https://microsoft.github.io/Azure-Kinect-Body-Tracking/release/1.x.x/namespace_microsoft_1_1_azure_1_1_kinect_1_1_body_tracking.html).

#### Development Resources <a href="#development-resources" id="development-resources"></a>

* [Official Femto Mega documentation](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation)
* [Orbbec SDK v2](https://github.com/orbbec/OrbbecSDK_v2)
* [Orbbec SDK v2 documentation](https://orbbec.github.io/OrbbecSDK_v2/)
* [Orbbec SDK ROS 2 wrapper](https://github.com/orbbec/OrbbecSDK_ROS2)
* [Orbbec SDK Python wrapper](https://github.com/orbbec/pyorbbecsdk)
* [Femto Mega CAD files](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Download%20CAD%20Files%20%28Femto%20Mega%29)

  It is typical to connect multiple Femto Megas to dedicated host PCs individually, with dedicated host controllers depending on how the devices are used and the amount of data transferred over USB connections.

  Ensure Orbbec SDK or Orbbec SDK K4A Wrapper is installed on the hosts. See Download Orbbec SDK and K4A Wrapper for details on installing the SDK.

  **5.3 Linux Machines: USB Memory on Ubuntu**

  By default, Linux-based hosts allocate just 16MB kernel memory for USB transfers per controller to handle USB transfers. This is often sufficient for a single Femto Mega device. But more memory per controller is needed to support multiple devices. To increase the memory:

  1. Edit /etc/default/grub.
  2. Find the line: GRUB\_CMDLINE\_LINUX\_DEFAULT="quiet splash"
  3. Change it to: GRUB\_CMDLINE\_LINUX\_DEFAULT="quiet splash usbcore.usbfs\_memory\_mb=128"
  4. Run sudo update-grub.
  5. Reboot the machine.

  **Note:** These commands set the USB memory to 128MB. This example is 8X the default setting. Much larger values can be set as appropriate for the solution.

  **5.4 Cables**

  To interconnect devices and connect to hosts, Multi-camera Sync Cables, network cables, and a sync hub must be used. Network cable lengths should be less than 10m.

  The number of cables needed depends on the number of devices and the specific device configuration. Sync cables and hub are not included with Femto Mega cameras. Sync cables, hub, and network cables must be purchased separately.

  #### **6. Connecting Devices in Star Configuration** <a href="#id-6.-connecting-devices-in-star-configuration-1" id="id-6.-connecting-devices-in-star-configuration-1"></a>

  1. Connect each Femto Mega device to power.
  2. Connect each device to its own host computer.
  3. Choose one device to be the master and connect its sync cable.
  4. Connect the other end of that sync cable to a T568B to T568B network cable, with the network cable going into the Primary In port on the professional star sync hub.
  5. To connect another device, attach its sync cable to the Femto Mega sync port and connect it via network cable to the other sync cable end, with the network cable going into the first subordinate port on the hub: Secondary Cam 1. The second subordinate connects to Secondary Cam 2, and so on.
  6. Repeat for all devices.

  #### **7. Connecting Devices in Daisy Chain Configuration** <a href="#id-7.-connecting-devices-in-daisy-chain-configuration-1" id="id-7.-connecting-devices-in-daisy-chain-configuration-1"></a>

  1. Connect each Femto Mega device to power.
  2. Connect each device to its own host computer.
  3. Choose one device to be the master and connect its sync cable.
  4. Connect the other end of that sync cable to the Primary In port on the daisy chain sync hub.
  5. To connect another device, attach its sync cable to the Femto Mega sync port and connect the other end to the first subordinate port on the hub: Secondary Cam 1. The second subordinate connects to Secondary Cam 2, and so on.
  6. Repeat for all devices.

  **Note:** The daisy chain connection provides a developer version of sync hub and cables not supporting network cable connections like the professional star version hub. See the Multi-Camera Sync Hub Specs for details.

  #### **8. Verifying Devices Are Connected and Communicating** <a href="#id-8.-verifying-devices-are-connected-and-communicating-1" id="id-8.-verifying-devices-are-connected-and-communicating-1"></a>

  To verify devices are connected properly, use the K4A Viewer. Repeat this process as needed to test each subordinate device paired with the master.

  **Important:** During testing, you must know the serial number of each Femto Mega.

  1. Open two instances of the K4A Viewer.
  2. Under "Open Device", select the serial number of the subordinate device to test.

  ![Official Orbbec figure from Synchronize Multiple Femto Mega Devices](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/12/07062620/image015-1.png)

  3.Under External Sync options, select Sub.

  ![Official Orbbec figure from Synchronize Multiple Femto Mega Devices](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2023/12/07062623/image017-1.png)

  4.Select Start.

  **Note:** Since this is a subordinate device, the K4A Viewer will not show images after starting the device. Images are not displayed until the subordinate receives the sync signal from the master.

  1. After starting the subordinate, use the other instance of the K4A Viewer to open the master device.
  2. Under External Sync options, select Master.
  3. Select Start.

  Once the Femto Mega master starts, both instances of the K4A Viewer should display images.

  **Note:** In K4A Viewer, Master corresponds to Primary master, and Sub corresponds to Secondary subordinate.

  #### **9. Calibrating Synchronized Multi-Device Setups** <a href="#id-9.-calibrating-synchronized-multi-device-setups-1" id="id-9.-calibrating-synchronized-multi-device-setups-1"></a>

  Once devices are verified communicating, they can be calibrated to generate images in a unified domain.

  Within a single device, the depth and RGB cameras are factory calibrated to work together. But when using multiple devices together, they must be calibrated to determine how to transform images from the camera domain they were captured in to the camera domain used for processing the images.

  Several options exist for cross calibrating devices. A GitHub green screen code sample using OpenCV methods is provided [here](https://github.com/orbbec/OrbbecSDK-K4A-Wrapper/tree/main/examples/green_screen). The readme with this code example provides more details and guidance on calibrating devices.

  See Calibration Functions for more on calibration.

  ### Record Multi-Device Synchronized Data with Femto Mega Recorder <a href="#record-multi-device-synchronized-data-with-femto-mega-recorder-1" id="record-multi-device-synchronized-data-with-femto-mega-recorder-1"></a>

  This document covers how to record data from multiple primary-secondary synchronized devices.

  #### **1. Prerequisites** <a href="#id-1.-prerequisites-1" id="id-1.-prerequisites-1"></a>

  * [Synchronize Multiple Devices](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Synchronize%20Multiple%20Femto%20Mega%20Devices)

  #### **2. External Sync Constraints** <a href="#id-2.-external-sync-constraints-1" id="id-2.-external-sync-constraints-1"></a>

  First, connect the master and subordinate devices according to the product multi-device sync documentation.

  * All master and subordinate devices must use the same camera configuration (fps and resolution).
  * All master and subordinate devices must run the same device firmware ( [Update Device Firmware](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Femto%20Mega%20Firmware%20Upgrade%20Instructions)).
  * It is recommended to start all subordinate devices first, then the master device.
  * The same exposure values should be set on all devices.
  * The "Subordinate Delay Off Master" is set per subordinate device relative to the master.

  #### **3. Recording with Each Device on Separate Host PC** <a href="#id-3.-recording-with-each-device-on-separate-host-pc-1" id="id-3.-recording-with-each-device-on-separate-host-pc-1"></a>

  In the following example, each device has its own dedicated host PC. We recommend dedicating devices to PCs to avoid USB bandwidth and CPU/GPU usage issues.

  **3.1 Subordinate-1**

  1. Set up recorder on first unit k4arecorder.exe --external-sync sub -e -8 -r 5 -l 10 sub1.mkv
  2. Device starts waiting

  Console:

  <pre data-collapsed-line-count="10"><code>Device serial number: 000011590212
  Device version: Rel; C: 1.5.78; D: 1.5.60[6109.6109]; A: 1.5.13
  Device started
  [subordinate mode] Waiting for signal from master
  </code></pre>

  **3.2 Subordinate-2**

  1. Set up recorder on second unit k4arecorder.exe --external-sync sub -e -8 -r 5 -l 10 sub2.mkv
  2. Device starts waiting

  Console:

  <pre data-collapsed-line-count="10"><code>Device serial number: 000011590212
  Device version: Rel; C: 1.5.78; D: 1.5.60[6109.6109]; A: 1.5.13
  Device started
  [subordinate mode] Waiting for signal from master
  </code></pre>

  **3.3 Master**

  1. Start recording on master device

  > k4arecorder.exe --external-sync master -e -8 -r 5 -l 10 master.mkv

  2. Wait for recording to complete

  #### **4. Recording with Multiple Devices Connected to Single Host PC** <a href="#id-4.-recording-with-multiple-devices-connected-to-single-host-pc-1" id="id-4.-recording-with-multiple-devices-connected-to-single-host-pc-1"></a>

  Multiple Femto Megas can be connected to a single host PC. However, this may require high USB bandwidth and host compute requirements. To reduce demands:

  * Connect each device to its own USB host controller
  * Use a powerful GPU that can handle the depth engine for each device
  * Only record required sensors and use lower frame rates
  * Always start subordinate devices first, master device last

  **4.1 Subordinate-1**

  1. Start recorder on subordinate device

  <pre data-collapsed-line-count="10"><code>>k4arecorder.exe --device 1 --external-sync subordinate --imu OFF -e -8 -r 5 -l 5 output-2.mkv
  </code></pre>

  1. Device enters waiting state

  **4.2 Master**

  1. Start master device

  > k4arecorder.exe --device 0 --external-sync master --imu OFF -e -8 -r 5 -l 5 output-1.mkv

  2. Wait for recording to complete

  #### **5. Playing Back Recordings** <a href="#id-5.-playing-back-recordings-1" id="id-5.-playing-back-recordings-1"></a>

  Use [K4A Viewer for Femto Mega](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/K4A%20Viewer%20for%20Femto%20Mega) to play back recordings.

  #### **6. Tips** <a href="#id-6.-tips-1" id="id-6.-tips-1"></a>

  * Record with manual exposure on synchronized cameras. RGB camera auto exposure can affect timing sync.
  * Restarting a subordinate device will lose sync.
  * Some [Hardware Specifications](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Femto%20Mega%20Hardware%20Specifications)have max 15 fps support. We recommend not mixing modes/frame rates between devices.
  * Connecting multiple units to a single PC can easily saturate USB bandwidth, consider dedicating host PCs per device. Also be mindful of CPU/GPU compute.
  * Disable IMU if not needed to improve reliability.

  See [Known Issues and Troubleshooting for Femto Mega](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Known%20Issues%20and%20Troubleshooting%20for%20Femto%20Mega)for any issues.

  ### Known Issues and Troubleshooting for Femto Mega <a href="#known-issues-and-troubleshooting-for-femto-mega-1" id="known-issues-and-troubleshooting-for-femto-mega-1"></a>

  This page contains known issues that may be encountered when using Orbbec SDK K4A Wrapper with Femto Mega, along with troubleshooting tips.

  #### **1. Collecting Logs** <a href="#id-1.-collecting-logs-1" id="id-1.-collecting-logs-1"></a>

  Orbbec SDK K4A Wrapper logs are output by the underlying Orbbec SDK, by default to the Log directory under the application working directory. Logs are output in a cyclical overwrite manner to a fixed 4 files, with a default maximum of 100MB per file. It is recommended to package log files when reporting issues.

  #### **2. Device Not Listed in Device Manager** <a href="#id-2.-device-not-listed-in-device-manager-1" id="id-2.-device-not-listed-in-device-manager-1"></a>

  * Check the indicator light on the back – if blinking orange, power is insufficient. Try powering with the power adapter again. If it blinks white at that point, the USB connection is abnormal.
  * Verify the power cable is connected and a USB3 port is being used for data transfer.
  * Try a different USB3 port for the data connection (ports near the motherboard are recommended, e.g. rear USB ports on a PC).
  * Inspect cable condition – damaged or poor quality cables can cause unreliable listings (device "blinking" in device manager).
  * If connected to a laptop running on battery, the port power may be restricted.
  * Restart the host computer.
  * If the issue persists, there may be a compatibility problem.

  #### **3. K4A Viewer Cannot Open Camera** <a href="#id-3.-k4a-viewer-cannot-open-camera-1" id="id-3.-k4a-viewer-cannot-open-camera-1"></a>

  * First check the device appears in Windows Device Manager.

  ![Official Orbbec figure from Known Issues and Troubleshooting for Femto Mega](https://new-orbbec3d-s3.s3.amazonaws.com/wp-content/uploads/2024/01/05095157/3-2.png)

  * Verify no other applications are using the device (e.g. Windows Camera app). Only one application can access the device at a time.
  * Check log files for error messages.
  * Open the Windows Camera app to verify it works properly.
  * Power cycle the device, wait for streaming LED to go out, then retry using the device.
  * Restart the host computer.
  * Ensure latest graphics drivers are installed on the computer.
  * If using your own SDK build, try the official release version if possible to resolve the issue.

  #### **4. Device Firmware Update Issues** <a href="#id-4.-device-firmware-update-issues-1" id="id-4.-device-firmware-update-issues-1"></a>

  * If the reported version number after update is incorrect, closing and reopening the device may be needed.
  * If the device firmware update process was interrupted, repowering the device before retrying the update.

  #### **5. Image Quality Issues** <a href="#id-5.-image-quality-issues-1" id="id-5.-image-quality-issues-1"></a>

  * Launch the K4A Viewer to inspect device positioning for interference, sensor occlusion, or lens dirt.
  * If the issue occurs in a specific mode, try different operating modes to narrow down the investigation.
  * To work with the team on image quality issues:
    * Grab a paused snapshot from the K4A Viewer and screenshot
    * Record with the K4A Recorder, e.g. k4arecorder.exe -l 5 -r 5 output.mkv

  #### **6. Inconsistent or Unexpected Device Timestamps** <a href="#id-6.-inconsistent-or-unexpected-device-timestamps-1" id="id-6.-inconsistent-or-unexpected-device-timestamps-1"></a>

  Calling*k4a\_device\_set\_color\_control* can temporarily trigger timing changes in the device that may take a few captures to stabilize. Avoid calling the API in image capture loops to avoid resetting internal timing calculations per new image. Call it instead before starting cameras or when values need to change within image capture loops. Specifically avoid *k4a\_device\_set\_color\_control(K4A\_COLOR\_CONTROL\_AUTO\_EXPOSURE\_PRIORITY)*.

  #### **7. Using Body Tracking SDK with Unreal** <a href="#id-7.-using-body-tracking-sdk-with-unreal-1" id="id-7.-using-body-tracking-sdk-with-unreal-1"></a>

  To use the Body Tracking SDK with Unreal, ensure \tools is added to the PATH environment variable, and *dnn\_model\_2\_0.onnx* + *cudnn64\_7.dll* are copied to *Program Files/Epic Games/UE\_4.23/Engine/Binaries/Win64*.

  #### **8. Missing C# Documentation** <a href="#id-8.-missing-c-documentation-1" id="id-8.-missing-c-documentation-1"></a>

  Sensor SDK C++ documentation is located [here](https://microsoft.github.io/Azure-Kinect-Sensor-SDK/master/namespace_microsoft_1_1_azure_1_1_kinect_1_1_sensor.html).

  Body Tracking SDK C++ documentation is located [here](https://microsoft.github.io/Azure-Kinect-Body-Tracking/release/1.x.x/namespace_microsoft_1_1_azure_1_1_kinect_1_1_body_tracking.html).

  ### Development Resources <a href="#development-resources-1" id="development-resources-1"></a>

  * [Official Femto Mega documentation](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation)
  * [Orbbec SDK v2](https://github.com/orbbec/OrbbecSDK_v2)
  * [Orbbec SDK v2 documentation](https://orbbec.github.io/OrbbecSDK_v2/)
  * [Orbbec SDK ROS 2 wrapper](https://github.com/orbbec/OrbbecSDK_ROS2)
  * [Orbbec SDK Python wrapper](https://github.com/orbbec/pyorbbecsdk)
  * [Femto Mega CAD files](https://doc.orbbec.com/documentation/Orbbec%20Femto%20Mega%20Documentation/Download%20CAD%20Files%20%28Femto%20Mega%29)
