Download doc/tutorials/gapi/oak_devices/oak_devices.markdown from tgollogly/test: direct link, hf CLI and curl.
- Browser
- Download file 1.15 kB
-
https://huggingface.co/tgollogly/test/resolve/main/doc/tutorials/gapi/oak_devices/oak_devices.markdown
- Command line
-
hf download hf://tgollogly/test/doc/tutorials/gapi/oak_devices/oak_devices.markdown
-
curl -L -o oak_devices.markdown https://huggingface.co/tgollogly/test/resolve/main/doc/tutorials/gapi/oak_devices/oak_devices.markdown
1.15 kB
| Using DepthAI Hardware / OAK depth sensors {#tutorial_gapi_oak_devices} | |
| ======================================================================= | |
| @tableofcontents | |
| @prev_tutorial{tutorial_gapi_face_beautification} | |
|  | |
| Depth sensors compatible with Luxonis DepthAI library are supported through OpenCV Graph API (or G-API) module. RGB image and some other formats of output can be retrieved by using familiar interface of G-API module. | |
| In order to use DepthAI sensor with OpenCV you should do the following preliminary steps: | |
| -# Install Luxonis DepthAI library [depthai-core](https://github.com/luxonis/depthai-core). | |
| -# Configure OpenCV with DepthAI library support by setting `WITH_OAK` flag in CMake. If DepthAI library is found in install folders OpenCV will be built with depthai-core (see a status `WITH_OAK` in CMake log). | |
| -# Build OpenCV. | |
| Source code | |
| ----------- | |
| You can find source code how to process heterogeneous graphs in the `modules/gapi/samples/oak_basic_infer.cpp` of the OpenCV source code library. | |
| @add_toggle_cpp | |
| @include modules/gapi/samples/oak_basic_infer.cpp | |
| @end_toggle | |