Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 1.9 KB

camera_component.rst

File metadata and controls

38 lines (27 loc) · 1.9 KB

CameraComponent

CameraComponent abstracts ColorCamera and MonoCamera nodes and supports mocking the camera when recording is passed during OakCamera initialization. When using :ref:`Replaying` feature, this component will mock the camera by sending frames from the host to the OAK device (via XLinkIn node).

Usage

from depthai_sdk import OakCamera

with OakCamera() as oak:
    # Create color camera
    color = oak.create_camera('color')

    # Visualize color camera frame stream
    oak.visualize(color.out.main, fps=True)
    # Start the pipeline, continuously poll
    oak.start(blocking=True)

Component outputs

Reference

.. autoclass:: depthai_sdk.components.CameraComponent
    :members:
    :undoc-members: