RGB & TinyYolo with spatial data ================================ This example shows how to run Yolo on the RGB input frame, and how to display both the RGB preview, detections, depth map and spatial information (X,Y,Z). It's similar to example :ref:`RGB & MobilenetSSD with spatial data` except it is running TinyYolo network. X,Y,Z coordinates are relative to the center of depth map. setNumClasses - number of YOLO classes setCoordinateSize - size of coordinate setAnchors - yolo anchors setAnchorMasks - anchorMasks26, anchorMasks13 (anchorMasks52 - additionally for full YOLOv4) setIouThreshold - intersection over union threshold setConfidenceThreshold - confidence threshold above which objects are detected .. rubric:: Similar samples: - :ref:`Spatial location calculator` - :ref:`Spatial object tracker on RGB` - :ref:`RGB & MobilenetSSD with spatial data` - :ref:`Mono & MobilenetSSD with spatial data` Demo #### .. raw:: html
Setup ##### .. include:: /includes/install_from_pypi.rst .. include:: /includes/install_req.rst Source code ########### .. tabs:: .. tab:: Python Also `available on GitHub `__ .. literalinclude:: ../../../../examples/SpatialDetection/spatial_tiny_yolo.py :language: python :linenos: .. tab:: C++ Also `available on GitHub `__ .. literalinclude:: ../../../../depthai-core/examples/SpatialDetection/spatial_tiny_yolo.cpp :language: cpp :linenos: .. include:: /includes/footer-short.rst