Last active
February 14, 2020 23:16
-
-
Save papr/0f13943e2aebd768ab6b1508d466caae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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