Skip to content

Instantly share code, notes, and snippets.

@papr
Last active February 14, 2020 23:16
Show Gist options
  • Save papr/0f13943e2aebd768ab6b1508d466caae to your computer and use it in GitHub Desktop.
Save papr/0f13943e2aebd768ab6b1508d466caae to your computer and use it in GitHub Desktop.
import logging
from plugin import Plugin
DEPTH_FRAME_KEY = 'depth_frame'
logger = logging.getLogger(__name__)
class Depth_Frame_Accessor(Plugin):
def recent_events(self, events):
if DEPTH_FRAME_KEY in events:
z16_depth = events[DEPTH_FRAME_KEY].depth
logger.info(f'Depth values: shape={z16_depth.shape}, dtype={z16_depth.dtype}')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment