Skip to main content

DepthAI Python Library

Project description

DepthAI Python Library

Python bindings for C++ depthai-core library

Documentation

Documentation is available over at Luxonis DepthAI Python API

Installation

Prebuilt wheels are available in Luxonis repository Make sure pip is upgraded

python3 -m pip install -U pip
python3 -m pip install --extra-index-url https://artifacts.luxonis.com/artifactory/luxonis-python-snapshot-local/ depthai

Building from source

Dependencies

  • cmake >= 3.2
  • C/C++11 compiler (clang, gcc, msvc, ...)
  • Python

Along these, dependencies of depthai-core are also required See: depthai-core dependencies

Building

To build a shared library from source perform the following:

mkdir build && cd build
cmake ..
cmake --build . --parallel

To build a wheel, execute the following

python3 -m pip wheel . -w wheelhouse

Tested platforms

  • Windows 10
  • Ubuntu 16.04, 18.04;
  • Raspbian 10;
  • macOS 10.14.6, 10.15.4;

Troubleshooting

  1. Build failure on Ubuntu 18.04 ("relocation ..." link error) with gcc 7.4.0 (default) - issue #3
    • the solution was to upgrade gcc to version 8:

      sudo apt install g++-8
      sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 70
      sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 70
      

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

depthai-0.4.1.1.tar.gz (84.7 kB view hashes)

Uploaded Source

Built Distributions

depthai-0.4.1.1-cp39-cp39-win_amd64.whl (3.0 MB view hashes)

Uploaded CPython 3.9 Windows x86-64

depthai-0.4.1.1-cp39-cp39-win32.whl (2.9 MB view hashes)

Uploaded CPython 3.9 Windows x86

depthai-0.4.1.1-cp39-cp39-manylinux2014_x86_64.whl (3.4 MB view hashes)

Uploaded CPython 3.9

depthai-0.4.1.1-cp39-cp39-macosx_10_9_x86_64.whl (2.9 MB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

depthai-0.4.1.1-cp38-cp38-win_amd64.whl (3.0 MB view hashes)

Uploaded CPython 3.8 Windows x86-64

depthai-0.4.1.1-cp38-cp38-win32.whl (2.9 MB view hashes)

Uploaded CPython 3.8 Windows x86

depthai-0.4.1.1-cp38-cp38-manylinux2014_x86_64.whl (3.4 MB view hashes)

Uploaded CPython 3.8

depthai-0.4.1.1-cp38-cp38-macosx_10_9_x86_64.whl (2.9 MB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

depthai-0.4.1.1-cp37-cp37m-win_amd64.whl (3.0 MB view hashes)

Uploaded CPython 3.7m Windows x86-64

depthai-0.4.1.1-cp37-cp37m-win32.whl (2.9 MB view hashes)

Uploaded CPython 3.7m Windows x86

depthai-0.4.1.1-cp37-cp37m-manylinux2014_x86_64.whl (3.4 MB view hashes)

Uploaded CPython 3.7m

depthai-0.4.1.1-cp37-cp37m-macosx_10_9_x86_64.whl (2.9 MB view hashes)

Uploaded CPython 3.7m macOS 10.9+ x86-64

depthai-0.4.1.1-cp37-cp37m-linux_armv7l.whl (4.3 MB view hashes)

Uploaded CPython 3.7m

depthai-0.4.1.1-cp36-cp36m-win_amd64.whl (3.0 MB view hashes)

Uploaded CPython 3.6m Windows x86-64

depthai-0.4.1.1-cp36-cp36m-win32.whl (2.9 MB view hashes)

Uploaded CPython 3.6m Windows x86

depthai-0.4.1.1-cp36-cp36m-manylinux2014_x86_64.whl (3.4 MB view hashes)

Uploaded CPython 3.6m

depthai-0.4.1.1-cp36-cp36m-macosx_10_9_x86_64.whl (2.9 MB view hashes)

Uploaded CPython 3.6m macOS 10.9+ x86-64

depthai-0.4.1.1-cp35-cp35m-manylinux2014_x86_64.whl (3.4 MB view hashes)

Uploaded CPython 3.5m

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page