microsoft / HoloLensForCV

Sample code and documentation for using the Microsoft HoloLens for Computer Vision research
MIT License
475 stars 154 forks source link

Null frames in Streamer #24

Closed doughtmw closed 6 years ago

doughtmw commented 6 years ago

Overview

Testing the Streamer function for accessing Research Mode streams (on RS4 with Research Mode enabled) I am getting errors for null frames in the Visible Light Left/Right Front and Short Throw ToF Depth (but not the Short Throw ToF Reflectivity) data streams. The sensors are recognized and initialized properly, but then when the stream begins I get a bunch of errors for null frames.

MediaFrameSourceGroup::GetSensorType:: found sensor name 'Short Throw ToF Depth' in MF_MT_USER_DATA (blob has 44 bytes)
MediaFrameSourceGroup::GetSubtypeForFrameReader: evaluating MediaFrameSourceKind::Depth with format Video-D16 @15/1Hz
MediaFrameSourceGroup::InitializeMediaSourceWorkerAsync: created the 'ShortThrowToFDepth' frame reader
The thread 0xda4 has exited with code 0 (0x0).

MediaFrameReaderContext::FrameArrived: _sensorType=ShortThrowToFDepth (1), frame is null

Attached is a screenshot of the data stream when running Streamer. 20180517_151858_hololens

Steps to reproduce

Running Streamer from Master branch with default settings.

RS4 Update 6 - Build 17134.1011 - Research Mode enabled VS 2017 Community - V 15.7.1

FracturedShader commented 6 years ago

Null frames can happen. The output rate of the hardware won't necessarily match the capture rate. I wouldn't worry about it.