OakCamera ========= The **OakCamera** class abstracts: - DepthAI API pipeline building with :ref:`Components`. - Stream :ref:`recording ` and :ref:`replaying `. - Debugging features (such as ``oak.show_graph()``). - :ref:`AI model ` sourcing and decoding. - Message syncing & visualization, and much more. .. note:: This class will be in **alpha stage** until **depthai-sdk 2.0.0**, so there will likely be some API changes. Interoperability with DepthAI API --------------------------------- DepthAI SDK was developed with `DepthAI API `__ interoperability in mind. Users can access all depthai API nodes inside components, along with the `dai.Pipeline `__ (``oak.pipeline``) and `dai.Device `__ (``oak.device``) objects. .. literalinclude:: ../../examples/mixed/api_interop.py :language: python Examples -------- Below there are a few basic examples. **See** `all examples here `__. Here are a few demos that have been developed with DepthAI SDK: #. `age-gender `__, #. `emotion-recognition `__, #. `full-fov-nn `__, #. `head-posture-detection `__, #. `pedestrian-reidentification `__, #. `people-counter `__, #. `people-tracker `__, #. `mask-detection `__, #. `yolo `__. #. `Roboflow `__. Preview color and mono cameras ****************************** .. literalinclude:: ../../examples/CameraComponent/rgb_mono_preview.py :language: python Run MobilenetSSD on color camera ******************************** .. literalinclude:: ../../examples/NNComponent/mobilenet.py :language: python Run face-detection-retail-0004 on left camera ********************************************* .. literalinclude:: ../../examples/NNComponent/face_detection_left.py :language: python Deploy models from Roboflow and Roboflow Universe with Depth SDK **************************************************************** .. literalinclude:: ../../examples/NNComponent/roboflow_integration.py :language: python Reference ######### .. autoclass:: depthai_sdk.OakCamera :members: :undoc-members: .. include:: includes/footer-short.rst