Use the following links to jump over the step by step intro and dive straight into Luxonis SDK and the full OAK software stack: DepthAI API, tools and examples across OAK USB, PoE and OAK4 cameras.
DepthAI API (Python/C++)
DepthAI v3 SDK library for building pipelines and apps on OAK and OAK4 cameras.
After you have your camera connected, the quickest way to start is by running OAK Viewer.
OAK Viewer
OAK Viewer is a desktop GUI application that allows you to visualize the camera's streams and interact with the device. It is available for Windows, macOS and Linux.Warning: In OAK Viewer, you can test only the selected Luxonis Models Zoo models included in Viewer. You cannot upload custom models or use other Zoo models. For custom-model upload and validation, see the Use custom models on Luxonis Hub tutorial.
1# Connect to the device2oakctl connect
3# Clone the repo4git clone --depth 1 --branch main https://github.com/luxonis/oak-examples.git
5# Change directory to the generic-example6cd oak-examples/neural-networks/generic-example/
7# Run the app and follow instructions to open the web viewer8oakctl app run .
You just ran the App in Standalone mode.
See below for the difference between Standalone and Peripheral mode.
1# Clone the repo2git clone --depth 1 --branch main https://github.com/luxonis/oak-examples.git
3# Change directory to the generic-example4cd oak-examples/neural-networks/generic-example/
5# Create and enter virtual python environment6python3 -m venv venv
7source venv/bin/activate
8# Install requirements into the environment9pip install -r requirements.txt
10# Run the app and follow instructions to open the web viewer11python3 main.py
Windows
Command Line
1# Clone the repo2git clone --depth 1 --branch main https://github.com/luxonis/oak-examples.git
3# Change directory to the generic-example4cd oak-examples\neural-networks\generic-example\5# Install requirements6pip install -r requirements.txt
7# Run the app and follow instructions to open the web viewer8python main.py
You just ran the App in Peripheral mode.
See below for the difference between Standalone and Peripheral mode.
Standalone: The App is run only on the camera. Apps are deployed via oakctl.
Peripheral: The App runs on the host computer, and the camera runs the App's pipeline. The host stays connected to the camera over USB or Ethernet. Apps are run using the DepthAI API. Best used for quick prototyping and development.
The quickest way to build your own app is to start from an example in oak-examples. The generic-example app from the steps above runs on OAK and OAK4 devices and has the files that an OAK App needs: main.py, requirements.txt and oakapp.toml. Copy it and change it for your use case.See OAK Apps for the app structure and how to deploy an app.
We suggest you continue exploring the ecosystem in one of the following ways.
OAK Apps
Build, package, and manage containerized computer vision apps for OAK devices.